/// <summary> /// Create a new instance of <see cref="ChangedValueDescriptorCollection"/>. /// </summary> /// <param name="descriptors"></param> /// <exception cref="ArgumentNullException"></exception> public ChangedValueDescriptorCollection(ChangedValueDescriptorCollection descriptors) : this() { if (descriptors is null) { throw new ArgumentNullException(nameof(descriptors)); } Populate((IEnumerable <ChangedValueDescriptor>)descriptors); }
/// <summary> /// Create a new instance of <see cref="ChangeTrackingContext"/>. /// </summary> /// <param name="collection"></param> public ChangeTrackingContext(ChangedValueDescriptorCollection collection) { _changedValueCollection = collection is null ? new ChangedValueDescriptorCollection() : new ChangedValueDescriptorCollection(collection); }
/// <summary> /// Create a new instance of <see cref="ChangeTrackingContext"/>. /// </summary> public ChangeTrackingContext() { _changedValueCollection = new ChangedValueDescriptorCollection(); }
/// <summary> /// Populate /// </summary> /// <param name="collection"></param> public void Populate(ChangedValueDescriptorCollection collection) => _changedValueCollection.Populate(collection);