Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Remove [Serializable] from VB types #21046

Merged
merged 1 commit into from
Jun 14, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.