Skip to content

Commit

Permalink
Suppress a few RCS1213 warnings from Roslynator
Browse files Browse the repository at this point in the history
The RCS1213 'Remove unused member declaration' warnings occur on
private properties that are used for DataContract serialization.
  • Loading branch information
0xC0000054 committed Aug 13, 2018
1 parent ca64471 commit 716c6d6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions PSApi/FilterCaseInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ public byte Flags2
"CA1811:AvoidUncalledPrivateCode",
Justification = "Required to allow WCF to serialize unknown enum values.")]
[DataMember(Name = "InputHandling")]
#pragma warning disable RCS1213 // Remove unused member declaration.
private byte InputHandlingValue
#pragma warning restore RCS1213 // Remove unused member declaration.
{
get
{
Expand All @@ -100,7 +102,9 @@ private byte InputHandlingValue
"CA1811:AvoidUncalledPrivateCode",
Justification = "Required to allow WCF to serialize unknown enum values.")]
[DataMember(Name = "OutputHandling")]
#pragma warning disable RCS1213 // Remove unused member declaration.
private byte OutputHandlingValue
#pragma warning restore RCS1213 // Remove unused member declaration.
{
get
{
Expand All @@ -117,7 +121,9 @@ private byte OutputHandlingValue
"CA1811:AvoidUncalledPrivateCode",
Justification = "Required to allow WCF to serialize unknown enum values.")]
[DataMember(Name = "Flags1")]
#pragma warning disable RCS1213 // Remove unused member declaration.
private byte Flags1Value
#pragma warning restore RCS1213 // Remove unused member declaration.
{
get
{
Expand Down

0 comments on commit 716c6d6

Please sign in to comment.