private EditableImmutableListBridge(ImmutableList <T> source, IConcurrentObservableList <T> destination) { _source = source; _destination = destination; Type type = typeof(EditableImmutableListBridge <T>); bool isGeneric = type.IsGenericType; Type[] genericArguments = type.GetGenericArguments(); int length = genericArguments.Length; }
/// <summary> /// Just using immutable collection style of getting an empty collection because these /// collection classes are based on immutable collections. /// </summary> /// <param name="destination"></param> /// <returns></returns> public static EditableImmutableListBridge <T> Empty(IConcurrentObservableList <T> destination) => new EditableImmutableListBridge <T>(ImmutableList <T> .Empty, destination);