Class EnumTypeInfo
SBE template enumeration type description.
Namespace: OnixS.SimpleBinaryEncoding.Templates
Assembly: OnixS.SimpleBinaryEncoding.dll
Syntax
public class EnumTypeInfo : TypeInfo
Constructors
EnumTypeInfo(String, String, Boolean)
Constructor.
Declaration
public EnumTypeInfo(string name, string encodingType, bool isSet)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Type name. |
System.String | encodingType | Underlying encoding type. |
System.Boolean | isSet | True if the type is a set, false if the type is an enumeration. |
Properties
EncodingType
Gets underlying encoding type name.
Declaration
public string EncodingType { get; }
Property Value
Type | Description |
---|---|
System.String |
IsSet
True if the type is a set, false if the type is an enumeration.
Declaration
public bool IsSet { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
NullValue
Gets null value for optional fields.
Declaration
public object NullValue { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
PrimitiveEncodingType
Gets or sets underlying encoding primitive type.
Declaration
public PrimitiveType PrimitiveEncodingType { get; set; }
Property Value
Type | Description |
---|---|
PrimitiveType |
Values
Gets enumeration values.
Declaration
public Dictionary<string, EnumValue> Values { get; }
Property Value
Type | Description |
---|---|
Dictionary<System.String, EnumValue> |