Show / Hide Table of Contents

Class DynamicObjectCollection

Represents a read/write dynamic collection of objects by subject and predicate.
Inheritance
System.Object
DynamicObjectCollection
DynamicObjectCollection<T>
Implements
System.Collections.Generic.ICollection<System.Object>
System.Collections.Generic.IEnumerable<System.Object>
System.Collections.IEnumerable
System.Dynamic.IDynamicMetaObjectProvider
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 : ICollection<object>, IEnumerable<object>, IEnumerable, IDynamicMetaObjectProvider

Constructors

| Improve this Doc View Source

DynamicObjectCollection(DynamicNode, INode)

Initializes a new instance of the DynamicObjectCollection class.
Declaration
public DynamicObjectCollection(DynamicNode subject, INode predicate)
Parameters
Type Name Description
DynamicNode subject The subject to use.
INode predicate The predicate to use.
Exceptions
Type Condition
System.ArgumentNullException When subject or predicate are null.

Properties

| Improve this Doc View Source

Count

Gets the number of statements with given subject and predicate.
Declaration
public int Count { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

IsReadOnly

Gets a value indicating whether this collection is read only (always false).
Declaration
public bool IsReadOnly { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Objects

Gets objects of statements with given subject and predicate.
Declaration
protected IEnumerable<object> Objects { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.Object>
Remarks
Known literal nodes are converted to native primitives, URI and blank nodes are wrapped in DynamicNode.

Methods

| Improve this Doc View Source

Add(Object)

Asserts statements equivalent to given subject and predicate and object.
Declaration
public void Add(object object)
Parameters
Type Name Description
System.Object object The object to assert.
| Improve this Doc View Source

Clear()

Retracts statements with given subject and predicate.
Declaration
public void Clear()
| Improve this Doc View Source

Contains(Object)

Checks whether a statement exists equivalent to given subject and predicate and object.
Declaration
public bool Contains(object object)
Parameters
Type Name Description
System.Object object The object to assert.
Returns
Type Description
System.Boolean Whether a statement exists equivalent to given subject and predicate and object.
| Improve this Doc View Source

CopyTo(Object[], Int32)

Copies objects of statements with given subject and predicate array starting at index.
Declaration
public void CopyTo(object[] array, int index)
Parameters
Type Name Description
System.Object[] 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

GetEnumerator()

Returns an enumerator that iterates through objects of statements with given subject and predicate.
Declaration
public IEnumerator<object> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<System.Object> An enumerator that iterates through objects of statements with given subject and predicate.
Remarks
Known literal nodes are converted to native primitives, URI and blank nodes are wrapped in DynamicNode.
| Improve this Doc View Source

Remove(Object)

Retracts statements equivalent to given subject and predicate and object.
Declaration
public bool Remove(object object)
Parameters
Type Name Description
System.Object object The object to retract.
Returns
Type Description
System.Boolean Whether any statements were retracted.

Explicit Interface Implementations

| Improve this Doc View Source

IEnumerable.GetEnumerator()

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
System.Collections.IEnumerator
| Improve this Doc View Source

IDynamicMetaObjectProvider.GetMetaObject(Expression)

Declaration
DynamicMetaObject IDynamicMetaObjectProvider.GetMetaObject(Expression parameter)
Parameters
Type Name Description
System.Linq.Expressions.Expression parameter
Returns
Type Description
System.Dynamic.DynamicMetaObject

Implements

System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
System.Dynamic.IDynamicMetaObjectProvider

Extension Methods

Extensions.AsEnumerable<T>(T)
Extensions.IsDisjoint<T>(IEnumerable<T>, IEnumerable<T>)
Extensions.ChunkBy<T>(IEnumerable<T>, Int32)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • DynamicObjectCollection(DynamicNode, INode)
  • Properties
    • Count
    • IsReadOnly
    • Objects
  • Methods
    • Add(Object)
    • Clear()
    • Contains(Object)
    • CopyTo(Object[], Int32)
    • GetEnumerator()
    • Remove(Object)
  • Explicit Interface Implementations
    • IEnumerable.GetEnumerator()
    • IDynamicMetaObjectProvider.GetMetaObject(Expression)
  • Implements
  • Extension Methods
Back to top Generated by DocFX