Class DynamicObjectCollection<T>
Represents a strongly typed read/write dynamic collection of objects by subject and predicate.
Implements
System.Collections.Generic.ICollection<System.Object>
System.Collections.Generic.IEnumerable<System.Object>
System.Dynamic.IDynamicMetaObjectProvider
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Dynamic
Assembly: dotNetRDF.dll
Syntax
public class DynamicObjectCollection<T> : DynamicObjectCollection, ICollection<object>, IEnumerable<object>, IDynamicMetaObjectProvider, ICollection<T>, IEnumerable<T>, IEnumerable
Type Parameters
Name | Description |
---|---|
T | The type of statement objects. |
Constructors
| Improve this Doc View SourceDynamicObjectCollection(DynamicNode, String)
Initializes a new instance of the DynamicObjectCollection<T> class.
Declaration
public DynamicObjectCollection(DynamicNode subject, string predicate)
Parameters
Type | Name | Description |
---|---|---|
DynamicNode | subject | The subject to use. |
System.String | predicate | The predicate to use. |
Methods
| Improve this Doc View SourceAdd(T)
Asserts statements equivalent to given subject and predicate and
object
.
Declaration
public void Add(T object)
Parameters
Type | Name | Description |
---|---|---|
T | object | The object to assert. |
Contains(T)
Checks whether a statement exists equivalent to given subject and predicate and
object
.
Declaration
public bool Contains(T object)
Parameters
Type | Name | Description |
---|---|---|
T | object | The object to assert. |
Returns
Type | Description |
---|---|
System.Boolean | Whether a statement exists equivalent to given subject and predicate and object . |
CopyTo(T[], Int32)
Copies objects of statements with given subject and predicate
array
starting at index
.
Declaration
public void CopyTo(T[] array, int index)
Parameters
Type | Name | Description |
---|---|---|
T[] | array | The destination of subjects copied. |
System.Int32 | index | The index at which copying begins. |
Remarks
Known literal nodes are converted to native primitives, URI and blank nodes are wrapped in DynamicNode.
|
Improve this Doc
View Source
Remove(T)
Retracts statements equivalent to given subject and predicate and
object
.
Declaration
public bool Remove(T object)
Parameters
Type | Name | Description |
---|---|---|
T | object | The object to retract. |
Returns
Type | Description |
---|---|
System.Boolean | Whether any statements were retracted. |
Explicit Interface Implementations
| Improve this Doc View SourceIEnumerable<T>.GetEnumerator()
Declaration
IEnumerator<T> IEnumerable<T>.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<T> |
Implements
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Dynamic.IDynamicMetaObjectProvider
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable