Class ProtoIncludeAttribute
- Namespace
- nanoFramework.Protobuf
- Assembly
- nanoFramework.Protobuf.dll
Attribute to indicate derived types that are to be serialized. This attribute needs to go on the base type.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
public sealed class ProtoIncludeAttribute : Attribute
- Inheritance
-
ProtoIncludeAttribute
- Inherited Members
- Extension Methods
Constructors
ProtoIncludeAttribute(string, int)
Initializes an instance of ProtoIncludeAttribute
public ProtoIncludeAttribute(string derivedType, int key)
Parameters
derivedType
stringThe fully qualified type name of the derived type
key
intThe unique identifier within the scope of the base type for all fields of the derived type
Properties
DerivedType
The fully qualified type name of the derived type
public string DerivedType { get; }
Property Value
Key
The unique identifier within the scope of the base type for all fields of the derived type
public int Key { get; }