Show / Hide Table of Contents

Class DynamicObjectCollection<T>

Represents a strongly typed read/write dynamic collection of objects by subject and predicate.

Inheritance
object
DynamicObjectCollection
DynamicObjectCollection<T>
Implements
ICollection<object>
IEnumerable<object>
IDynamicMetaObjectProvider
ICollection<T>
IEnumerable<T>
IEnumerable
Inherited Members
DynamicObjectCollection.Count
DynamicObjectCollection.IsReadOnly
DynamicObjectCollection.Objects
DynamicObjectCollection.Add(object)
DynamicObjectCollection.Clear()
DynamicObjectCollection.Contains(object)
DynamicObjectCollection.CopyTo(object[], int)
DynamicObjectCollection.GetEnumerator()
DynamicObjectCollection.Remove(object)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Dynamic
Assembly: dotNetRdf.Dynamic.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

| Edit this page View Source

DynamicObjectCollection(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.

string predicate

The predicate to use.

Methods

| Edit this page View Source

Add(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.

| Edit this page View Source

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
bool

Whether a statement exists equivalent to given subject and predicate and object.

| Edit this page View Source

CopyTo(T[], int)

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.

int index

The index at which copying begins.

Remarks

Known literal nodes are converted to native primitives, URI and blank nodes are wrapped in DynamicNode.

| Edit this page 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
bool

Whether any statements were retracted.

Implements

ICollection<T>
IEnumerable<T>
IDynamicMetaObjectProvider
ICollection<T>
IEnumerable<T>
IEnumerable

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • DynamicObjectCollection(DynamicNode, string)
  • Methods
    • Add(T)
    • Contains(T)
    • CopyTo(T[], int)
    • Remove(T)
  • Implements
  • Extension Methods
Back to top Generated by DocFX