Class ReturnFieldsIndexer
Indexer for a collection of arguments (like ReturnFieldsCollection.
Inherited Members
Namespace: SuperOffice.Data.SQL
Assembly: SoDataBase.dll
Syntax
public sealed class ReturnFieldsIndexer
Constructors
ReturnFieldsIndexer(IEnumerable<Argument>, Int32)
Default constructor for the indexer, indexing a collection of arguments.
Declaration
public ReturnFieldsIndexer(IEnumerable<Argument> returnFields, int lengthHint)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Argument> | returnFields | Collection of arguments to index. |
Int32 | lengthHint | Hint of the length for preallocation of indexes. '0' should be used when the length is unknown. |
Methods
GetArgumentFromIndex(Int32)
Get argument from the given index.
Declaration
public Argument GetArgumentFromIndex(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | Index to get argument from |
Returns
Type | Description |
---|---|
Argument | Argument at the given index. |
GetFieldInfoFromIndex(Int32)
Get FieldInfo from a provided index.
Declaration
public FieldInfo GetFieldInfoFromIndex(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | Index to provide field info for. |
Returns
Type | Description |
---|---|
FieldInfo | Field info is return if one exists for the index, otherwise null. |
GetIndexOfField(Argument)
Obtain the index of the field.
Declaration
public int GetIndexOfField(Argument argument)
Parameters
Type | Name | Description |
---|---|---|
Argument | argument | Argument to find index for. |
Returns
Type | Description |
---|---|
Int32 | Index of the field. -1 is returned if the index can not be found. |
GetIndexOfField(FieldInfo)
Obtain the index of the field.
Declaration
public int GetIndexOfField(FieldInfo field)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo | field | Field to find index for. |
Returns
Type | Description |
---|---|
Int32 | Index of the field. -1 is returned if the index can not be found. |
GetIndexOfField(Int32)
Obtain the index of the field.
Declaration
public int GetIndexOfField(int fieldNumber)
Parameters
Type | Name | Description |
---|---|---|
Int32 | fieldNumber | Field number to obtain index for. |
Returns
Type | Description |
---|---|
Int32 | Index of the field. -1 is returned if the index can not be found. |