示例#1
0
 public ImmutableArray(IReadOnlyCollectionEx <T> col)
     : this(col, col.Count)
 {
 }
示例#2
0
 public ImmutableList(IReadOnlyCollectionEx <T> col)
 {
     m_array = new ImmutableArray <T>(col);
 }
示例#3
0
 /// <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));
 }
示例#4
0
 public static System.Collections.ICollection CreateObjectICollection <T>(IReadOnlyCollectionEx <T> col)
 {
     return(new ObjectCollectionShim <T>(col));
 }
示例#5
0
 internal ObjectCollectionShim(IReadOnlyCollectionEx <T> col)
 {
     m_col = col;
 }