Contract<C>.Get Current Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the IContract in the collection at the current position of the enumerator.
public: C GetCurrent();
public C GetCurrent ();
abstract member GetCurrent : unit -> 'C
Public Function GetCurrent () As C
The IContract in the collection at the current position of the enumerator.
The return value of GetCurrent is undefined under any of the following conditions:
The enumerator is positioned before the first element in the collection, immediately after the enumerator is created or after Reset is called. MoveNext must be called to advance the enumerator to the first element of the collection before calling GetCurrent.
The last call to MoveNext returned
false, which indicates the end of the collection.
The enumerator is invalidated due to changes made in the collection, such as adding, modifying, or deleting elements.