Class PrimitiveFieldInfo
SBE template primitive field description.
Namespace: OnixS.SimpleBinaryEncoding.Templates
Assembly: OnixS.SimpleBinaryEncoding.dll
Syntax
public class PrimitiveFieldInfo : FieldInfo
Constructors
PrimitiveFieldInfo(String, UInt16, TypeInfo)
Constructor.
Declaration
public PrimitiveFieldInfo(string name, ushort id, TypeInfo type)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Field name. |
System.UInt16 | id | Field id. |
TypeInfo | type | Primitive type description. |
Properties
Constant
Get or sets field constant value.
Declaration
public object Constant { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
ConstantRef
Get or sets field constant value.
Declaration
public string ConstantRef { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Offset
Gets or sets field offset, relative to the parent template.
Declaration
public int Offset { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Presence
Gets or sets field presence.
Declaration
public Presence Presence { get; set; }
Property Value
Type | Description |
---|---|
Presence |
SinceVersion
Gets the schema version where this field appeared for the first time.
Declaration
public int SinceVersion { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Type
Gets primitive type description.
Declaration
public TypeInfo Type { get; }
Property Value
Type | Description |
---|---|
TypeInfo |
Methods
ToString()
Returns the string representation of an object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | The string representation of an object. |