Export (0) Print
Expand All

ReadOnlyList<T> Structure

Represents a generic structure that exposes the read-only interface of a list while hides its mutable interface.

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

[DefaultMemberAttribute("Item")]
public struct ReadOnlyList<T> : IReadOnlyList<T>, 
	IReadOnlyCollection<T>, IReadOnlyCollection, IEnumerable<T>, IEnumerable

Type Parameters

T

The type of elements in the list.

The ReadOnlyList<T> type exposes the following members.

  NameDescription
Public methodReadOnlyList<T>Initializes a new instance of the ReadOnlyList<T> class with the specified list.
Top

  NameDescription
Public propertyCountGets the number of elements contained in the list.
Public propertyItemGets the element at the specified index.
Top

  NameDescription
Public methodContainsIndicates whether the list contains a specific value.
Public methodCopyToCopies the elements of the list to an array, starting at a particular array index.
Public methodEquals (Inherited from ValueType.)
Public methodGetEnumeratorReturns an enumerator that iterates through the list.
Public methodGetHashCode (Inherited from ValueType.)
Public methodGetType (Inherited from Object.)
Public methodIndexOfDetermines the index of a specific item in the list.
Public methodToString (Inherited from ValueType.)
Top

  NameDescription
Public operatorStatic memberImplicit(List<T> to ReadOnlyList<T>)Returns an implicit conversion from a list to a read only list.
Public operatorStatic memberImplicit(T[] to ReadOnlyList<T>)Returns an implicit conversion from an array to a list.
Top

  NameDescription
Explicit interface implemetationPrivate methodIEnumerableGetEnumeratorReturns an enumerator that iterates through the list.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft