Class FieldContainerInfo
Fields collection.
Implements
Inherited Members
Namespace: OnixS.Fix.Dictionaries
Assembly: OnixS.Fix.Engine.dll
Syntax
public class FieldContainerInfo : IList<FieldInfo>, ICollection<FieldInfo>, IReadOnlyList<FieldInfo>, IReadOnlyCollection<FieldInfo>, IEnumerable<FieldInfo>, IEnumerable
Constructors
FieldContainerInfo(string, params FieldInfo[])
Constructor.
Declaration
public FieldContainerInfo(string name, params FieldInfo[] fields)
Parameters
Type | Name | Description |
---|---|---|
string | name | |
FieldInfo[] | fields | List of fields. |
Properties
Count
Gets the number of fields contained in the ICollection<T>.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
int |
FieldCount
Fields count.
Declaration
public int FieldCount { get; }
Property Value
Type | Description |
---|---|
int | Fields count |
Fields
Message fields.
Declaration
public IReadOnlyList<FieldInfo> Fields { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<FieldInfo> | Message fields |
GroupCount
Repeating groups count.
Declaration
public int GroupCount { get; }
Property Value
Type | Description |
---|---|
int | Repeating groups count |
IsReadOnly
Gets a value indicating whether the ICollection<T> is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
bool |
this[int]
Gets or sets the element at the specified index.
Declaration
public FieldInfo this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
int | index | The zero-based index of the element to get or set. |
Property Value
Type | Description |
---|---|
FieldInfo |
Methods
Add(FieldInfo)
Adds an item to the ICollection<T>.
Declaration
public void Add(FieldInfo item)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo | item | The object to add to the ICollection<T>. |
Clear()
Removes all items from the ICollection<T>.
Declaration
public void Clear()
Contains(FieldInfo)
Determines whether the ICollection<T> contains a specific value.
Declaration
public bool Contains(FieldInfo item)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo | item | The object to locate in the ICollection<T>. |
Returns
Type | Description |
---|---|
bool | true if item is found in the ICollection<T>; otherwise, false. |
CopyTo(FieldInfo[], int)
Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.
Declaration
public void CopyTo(FieldInfo[] array, int arrayIndex)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo[] | array | The one-dimensional Array that is the destination of the elements copied from ICollection<T>. The Array must have zero-based indexing. |
int | arrayIndex | The zero-based index in array at which copying begins. |
GetByIndex(int)
Get field by field index.
Declaration
public FieldInfo GetByIndex(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | Field index. |
Returns
Type | Description |
---|---|
FieldInfo | Field if exists, null otherwise. |
GetByTag(int)
Get field by tag number.
Declaration
public FieldInfo GetByTag(int tag)
Parameters
Type | Name | Description |
---|---|---|
int | tag | Tag number. |
Returns
Type | Description |
---|---|
FieldInfo | Field if exists, null otherwise. |
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<FieldInfo> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<FieldInfo> | An enumerator that can be used to iterate through the collection. |
IndexOf(FieldInfo)
Determines the index of a specific item in the IList<T>.
Declaration
public int IndexOf(FieldInfo item)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo | item | The object to locate in the IList<T> |
Returns
Type | Description |
---|---|
int |
Insert(int, FieldInfo)
Inserts an item to the IList<T> at the specified index.
Declaration
public void Insert(int index, FieldInfo item)
Parameters
Type | Name | Description |
---|---|---|
int | index | The zero-based index at which item should be inserted. |
FieldInfo | item | The object to insert into the IList<T>. |
Remove(FieldInfo)
Removes the first occurrence of a specific object from the ICollection<T>.
Declaration
public bool Remove(FieldInfo item)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo | item | The object to remove from the ICollection<T>. |
Returns
Type | Description |
---|---|
bool | true if item was successfully removed from the ICollection<T>; otherwise, false. This method also returns false if item is not found in the original ICollection<T>. |
RemoveAt(int)
Removes the IList<T> item at the specified index.
Declaration
public void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The zero-based index of the item to remove. |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException |
|
NotSupportedException | The IList<T> is read-only. |
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current object. |