Skip to content

Commit

Permalink
Suppress obsolete warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jjonescz committed Jun 15, 2023
1 parent 44aa5b7 commit 9395345
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ internal override bool IsNotSerialized
{
get
{
#pragma warning disable SYSLIB0050 // 'TypeAttributes.Serializable' is obsolete
return (_flags & FieldAttributes.NotSerialized) != 0;
#pragma warning restore SYSLIB0050
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2240,7 +2240,9 @@ internal override CharSet MarshallingCharSet

public override bool IsSerializable
{
#pragma warning disable SYSLIB0050 // 'TypeAttributes.Serializable' is obsolete
get { return (_flags & TypeAttributes.Serializable) != 0; }
#pragma warning restore SYSLIB0050
}

public override bool IsRefLikeType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols.Metadata.PE

Friend Overrides ReadOnly Property IsNotSerialized As Boolean
Get
#Disable Warning SYSLIB0050 ' 'TypeAttributes.Serializable' is obsolete
Return (_flags And FieldAttributes.NotSerialized) <> 0
#Enable Warning SYSLIB0050
End Get
End Property

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols.Metadata.PE

Public Overrides ReadOnly Property IsSerializable As Boolean
Get
#Disable Warning SYSLIB0050 ' 'TypeAttributes.Serializable' is obsolete
Return (_flags And TypeAttributes.Serializable) <> 0
#Enable Warning SYSLIB0050
End Get
End Property

Expand Down

0 comments on commit 9395345

Please sign in to comment.