public ImmutableArray(IReadOnlyCollectionEx <T> col) : this(col, col.Count) { }
public ImmutableList(IReadOnlyCollectionEx <T> col) { m_array = new ImmutableArray <T>(col); }
/// <summary> /// Useful when interopting IReadOnlyCollectionEx`1 into a scenario where /// an instance of ICollection`1 is needed /// </summary> /// <typeparam name="T"></typeparam> /// <param name="col"></param> /// <returns></returns> public static ICollection <T> CreateICollection <T>(IReadOnlyCollectionEx <T> col) { return(new CollectionShim <T>(col)); }
public static System.Collections.ICollection CreateObjectICollection <T>(IReadOnlyCollectionEx <T> col) { return(new ObjectCollectionShim <T>(col)); }
internal ObjectCollectionShim(IReadOnlyCollectionEx <T> col) { m_col = col; }