Share via


OneOrMany<T>.AsList Method

Definition

Returns the underlying list if this object contains > 1 item, otherwise null.

public System.Collections.Generic.IReadOnlyList<T> AsList ();
member this.AsList : unit -> System.Collections.Generic.IReadOnlyList<'T (requires 'T : null)>
Public Function AsList () As IReadOnlyList(Of T)

Returns

Applies to