/// <summary> /// Initializes a new instance of the <see cref="DynamicSubjectCollection{T}"/> class. /// </summary> /// <param name="predicate">The predicate to use.</param> /// <param name="object">The object to use.</param> public DynamicSubjectCollection(string predicate, DynamicNode @object) : base( predicate.AsUriNode(@object.Graph, @object.BaseUri), @object) { }
/// <summary> /// Initializes a new instance of the <see cref="DynamicObjectCollection"/> class. /// </summary> /// <param name="subject">The subject to use.</param> /// <param name="predicate">The predicate to use.</param> /// <exception cref="ArgumentNullException">When <paramref name="subject"/> or <paramref name="predicate"/> are null.</exception> public DynamicObjectCollection(DynamicNode subject, INode predicate) { this.subject = subject ?? throw new ArgumentNullException(nameof(subject)); this.predicate = predicate ?? throw new ArgumentNullException(nameof(predicate)); }