FieldInfo Constructor
Create instance of FieldInfo with all necessary properties.
Namespace: Vajhoej.RecordAssembly: Record (in Record.dll) Version: 0.0.0.0
public FieldInfo(
FieldType structType,
int length,
int decimals,
string encoding,
byte zone,
int prefixLength,
ExtEndian endianess,
bool pad,
char padchar,
Type classType,
FieldInfo field,
IDictionary<int, SubClassAndPad> selects,
bool selectPad,
int elements,
int countprefix
)
Public Sub New (
structType As FieldType,
length As Integer,
decimals As Integer,
encoding As String,
zone As Byte,
prefixLength As Integer,
endianess As ExtEndian,
pad As Boolean,
padchar As Char,
classType As Type,
field As FieldInfo,
selects As IDictionary(Of Integer, SubClassAndPad),
selectPad As Boolean,
elements As Integer,
countprefix As Integer
)
Dim structType As FieldType
Dim length As Integer
Dim decimals As Integer
Dim encoding As String
Dim zone As Byte
Dim prefixLength As Integer
Dim endianess As ExtEndian
Dim pad As Boolean
Dim padchar As Char
Dim classType As Type
Dim field As FieldInfo
Dim selects As IDictionary(Of Integer, SubClassAndPad)
Dim selectPad As Boolean
Dim elements As Integer
Dim countprefix As Integer
Dim instance As New FieldInfo(structType,
length, decimals, encoding, zone,
prefixLength, endianess, pad, padchar,
classType, field, selects, selectPad,
elements, countprefix)
public:
FieldInfo(
FieldType structType,
int length,
int decimals,
String^ encoding,
unsigned char zone,
int prefixLength,
ExtEndian endianess,
bool pad,
wchar_t padchar,
Type^ classType,
FieldInfo^ field,
IDictionary<int, SubClassAndPad^>^ selects,
bool selectPad,
int elements,
int countprefix
)
new :
structType : FieldType *
length : int *
decimals : int *
encoding : string *
zone : byte *
prefixLength : int *
endianess : ExtEndian *
pad : bool *
padchar : char *
classType : Type *
field : FieldInfo *
selects : IDictionary<int, SubClassAndPad> *
selectPad : bool *
elements : int *
countprefix : int -> FieldInfo
Parameters
- structType FieldType
- native struct type.
- length Int32
- length of fixed length string.
- decimals Int32
- Number of decimals.
- encoding String
- Encoding of string.
- zone Byte
- Zone of zoned BCD.
- prefixLength Int32
- Prefix length of variable length string
- endianess ExtEndian
- endianess
- pad Boolean
- whether to pad
- padchar Char
- pad character
- classType Type
- .NET class type.
- field FieldInfo
- Corresponding reflection object.
- selects IDictionaryInt32, SubClassAndPad
- Sub class selections.
- selectPad Boolean
- Pad sub classes to fixed length.
- elements Int32
- Number of elements.
- countprefix Int32
- Length in bytes of count prefix.