Show / Hide Table of Contents

Class DynamicSubjectCollection<T>

Represents a strongly type read/write dynamic collection of subjects by predicate and object.
Inheritance
System.Object
DynamicSubjectCollection
DynamicSubjectCollection<T>
Implements
System.Collections.Generic.ICollection<INode>
System.Collections.Generic.IEnumerable<INode>
System.Dynamic.IDynamicMetaObjectProvider
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Inherited Members
DynamicSubjectCollection.Count
DynamicSubjectCollection.IsReadOnly
DynamicSubjectCollection.Subjects
DynamicSubjectCollection.Add(INode)
DynamicSubjectCollection.Clear()
DynamicSubjectCollection.Contains(INode)
DynamicSubjectCollection.CopyTo(INode[], Int32)
DynamicSubjectCollection.GetEnumerator()
DynamicSubjectCollection.Remove(INode)
DynamicSubjectCollection.IEnumerable.GetEnumerator()
DynamicSubjectCollection.IDynamicMetaObjectProvider.GetMetaObject(Expression)
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 DynamicSubjectCollection<T> : DynamicSubjectCollection, ICollection<INode>, IEnumerable<INode>, IDynamicMetaObjectProvider, ICollection<T>, IEnumerable<T>, IEnumerable where T : INode
Type Parameters
Name Description
T The type of subjects.

Constructors

| Improve this Doc View Source

DynamicSubjectCollection(String, DynamicNode)

Initializes a new instance of the DynamicSubjectCollection<T> class.
Declaration
public DynamicSubjectCollection(string predicate, DynamicNode object)
Parameters
Type Name Description
System.String predicate The predicate to use.
DynamicNode object The object to use.

Methods

| Improve this Doc View Source

Add(T)

Asserts a statement with subject and given predicate and object.
Declaration
public void Add(T subject)
Parameters
Type Name Description
T subject The subject to assert.
| Improve this Doc View Source

Contains(T)

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

CopyTo(T[], Int32)

Copies subjects of statements with given predicate and object to 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
Nodes are wrapped in a DynamicNode.
| Improve this Doc View Source

Remove(T)

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

Explicit Interface Implementations

| Improve this Doc View Source

IEnumerable<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

Extension Methods

Extensions.AsEnumerable<T>(T)
Extensions.BlankNodes(IEnumerable<INode>)
Extensions.GraphLiteralNodes(IEnumerable<INode>)
Extensions.LiteralNodes(IEnumerable<INode>)
Extensions.UriNodes(IEnumerable<INode>)
Extensions.VariableNodes(IEnumerable<INode>)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • DynamicSubjectCollection(String, DynamicNode)
  • Methods
    • Add(T)
    • Contains(T)
    • CopyTo(T[], Int32)
    • Remove(T)
  • Explicit Interface Implementations
    • IEnumerable<T>.GetEnumerator()
  • Implements
  • Extension Methods
Back to top Generated by DocFX