Class ContentSerializerRuntimeTypeAttribute
This is used to specify the type to use when deserializing this object at runtime.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct)]
public sealed class ContentSerializerRuntimeTypeAttribute : Attribute
- Inheritance
-
ContentSerializerRuntimeTypeAttribute
- Inherited Members
Constructors
ContentSerializerRuntimeTypeAttribute(string)
Creates an instance of the attribute.
public ContentSerializerRuntimeTypeAttribute(string runtimeType)
Parameters
runtimeType
stringThe name of the type to use at runtime.
Properties
RuntimeType
The name of the type to use at runtime.
public string RuntimeType { get; }