Class SegmentPairCollection
A collection of SegmentPairs. Adds support for indexing by segment number.
Inherited Members
Namespace: Sdl.Core.Bcm.BcmModel.Collections
Assembly: Sdl.Core.Bcm.BcmModel.dll
Syntax
public class SegmentPairCollection : IEnumerable<SegmentPair>, IEnumerable
Constructors
SegmentPairCollection(IEnumerable<SegmentPair>)
Initializes a new instance of the SegmentPairCollection class.
Declaration
public SegmentPairCollection(IEnumerable<SegmentPair> enumerable)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<SegmentPair> | enumerable | The enumerable. |
Properties
this[string]
Gets the SegmentPair with the specified segment number.
Declaration
public SegmentPair this[string segmentNumber] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| string | segmentNumber | The segment number. |
Property Value
| Type | Description |
|---|---|
| SegmentPair | The SegmentPair. |
Methods
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<SegmentPair> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<SegmentPair> | An enumerator that can be used to iterate through the collection. |