Fixing CA2237: Mark ISerializable types with SerializableAttribute code analysis error.