Table of Contents

Class ProtoContractAttribute

Namespace
nanoFramework.Protobuf
Assembly
nanoFramework.Protobuf.dll

The ProtoContract attribute to define an object as serializable This attribute is currently unneccesary, any object in a graph decorated with ProtoMemberAttribute will be serialized. It is still good practice to apply the attribute to stay inline with Protobuf principles and for potential future features.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Interface, AllowMultiple = false, Inherited = false)]
public sealed class ProtoContractAttribute : Attribute
Inheritance
ProtoContractAttribute
Inherited Members
Extension Methods

Constructors

ProtoContractAttribute()

public ProtoContractAttribute()