I came across this code while working through code-analysis warnings on our code base. I want to change the name, but not if it will cause a serialization issue. While it looks to me like there is no point in it being serializable, I just wanted to check to make sure I'm not missing something before I strip the attribute.
[Serializable]
public class FileIsNotReadonlyVerifier : IFileVerifier
{
#region IFileVerifier Members
public void Verify(FileInfo file, FlatFileTrafficSystem system)
{
if ((file.Attributes & FileAttributes.ReadOnly) == FileAttributes.ReadOnly)
{
throw new VerificationException(Resources.VerificationException_FileIsReadonly);
}
}
#endregion
}