Class ContentSerializerTypeVersionAttribute
This is used to specify the version when deserializing this object at runtime.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct)]
public sealed class ContentSerializerTypeVersionAttribute : Attribute
- Inheritance
-
ContentSerializerTypeVersionAttribute
- Inherited Members
Constructors
ContentSerializerTypeVersionAttribute(int)
Creates an instance of the attribute.
public ContentSerializerTypeVersionAttribute(int typeVersion)
Parameters
typeVersion
intThe version passed to the type at runtime.
Properties
TypeVersion
The version passed to the type at runtime.
public int TypeVersion { get; }