ulrichb / SerializationInspections

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

⚠️ This extension isn't maintained anymore here but has found a new home at matkoch/SerializationInspections ❤️

Serialization Inspections ReSharper Extension

Build status Gitter Line Coverage Branch Coverage

ReSharper Gallery Page

History of changes

Description

Serialization Inspections is simple ReSharper extension which adds the following inspections for binary serializable types.

  • "Missing [Serializable] attribute" warning

    • For classes derived from Exception but without the [Serializable] attribute.
    • For types directly implementing ISerializable but without the [Serializable] attribute.
    • This warning also offers a quick fix (Alt+Enter) to generate the attribute.
  • "Missing deserialization constructor" warning

    • For [Serializable] types which are derived from ISerializable but have no deserialization constructor (like protected MyClass(SerializationInfo info, StreamingContext context)).
    • This warning also offers a quick fix (Alt+Enter) to generate the constructor.

About

License:MIT License


Languages

Language:C# 95.8%Language:PowerShell 4.2%Language:Smalltalk 0.0%