Skip to content

Commit

Permalink
Remove [Serializable] from VB types (dotnet#21046)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephentoub authored and ViktorHofer committed Jun 15, 2017
1 parent 7aeb0c1 commit b59a500
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ Namespace Microsoft.VisualBasic.CompilerServices

End Class

<Serializable()>
Public NotInheritable Class InternalErrorException
Inherits System.Exception

Expand All @@ -75,10 +74,6 @@ Namespace Microsoft.VisualBasic.CompilerServices
MyBase.New(GetResourceString(SR.InternalError))
End Sub

Private Sub New(ByVal info As System.Runtime.Serialization.SerializationInfo, ByVal context As System.Runtime.Serialization.StreamingContext)
MyBase.New(info, context)
End Sub

End Class

End Namespace
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,11 @@
Namespace Global.Microsoft.VisualBasic.CompilerServices
<Global.System.Diagnostics.DebuggerNonUserCode()>
<Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)>
<Global.System.Serializable>
Public Class IncompleteInitialization
Inherits Global.System.Exception
Public Sub New()
MyBase.New()
End Sub

#Disable Warning CA2229 ' Rule wants ctor to be protected, but private to match desktop
<Global.System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)>
Private Sub New(ByVal info As System.Runtime.Serialization.SerializationInfo, ByVal context As System.Runtime.Serialization.StreamingContext)
MyBase.New(info, context)
End Sub
#Enable Warning CA2229 ' Implement Serialization constructor

End Class
End Namespace
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
Namespace Global.Microsoft.VisualBasic.CompilerServices
<Global.System.Diagnostics.DebuggerNonUserCode()>
<Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)>
<Global.System.Serializable()>
Public Class StaticLocalInitFlag
Public State As Short
End Class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netstandard-Debug|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netstandard-Release|AnyCPU'" />
<ItemGroup>
<Compile Include="SerializationTests.cs" />
<Compile Include="StringsTests.cs" />
<Compile Include="$(CommonTestPath)\System\PlatformDetection.cs">
<Link>CommonTest\System\PlatformDetection.cs</Link>
Expand All @@ -17,4 +16,4 @@
</Compile>
</ItemGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
</Project>
</Project>
23 changes: 0 additions & 23 deletions src/Microsoft.VisualBasic/tests/SerializationTests.cs

This file was deleted.

0 comments on commit b59a500

Please sign in to comment.