Table of Contents

Class ProtoMemberAttribute

Namespace
nanoFramework.Protobuf
Assembly
nanoFramework.Protobuf.dll

Attribute to decorate the members which need to be serialized

[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class ProtoMemberAttribute : Attribute
Inheritance
ProtoMemberAttribute
Inherited Members
Extension Methods

Constructors

ProtoMemberAttribute(int)

Initializes an instance of the ProtoMemberAttribute with the provided tag

public ProtoMemberAttribute(int tag)

Parameters

tag int

The identifier for the decorated member. Must be unique within the type containing the field

Properties

Tag

The identifier for the decorated member. Must be unique within the type containing the field

public int Tag { get; set; }

Property Value

int