Resharper complains about not used Parameters on OnSerialized Attrib Method

using System;
using System.Runtime.Serialization;

namespace ClassLibrary1
{

public class Class1
{
private bool isSerialized;

public bool IsSerialized
{
get
{
return isSerialized;
}
set { isSerialized = value; }
}


// Resharper says here that context is not used
// but the OnSerializing Attribute expects the Function to have the Streaming Context
// So its really used

private void Serializing(StreamingContext context)
{
isSerialized = false;
}

// Resharper says here that context is not used
// but the OnSerialized Attribute expects the Function to have the Streaming Context
// So its really used

private void Serialized(StreamingContext context)
{
isSerialized = true;
}
}
}

Please sign in to leave a comment.