Show / Hide Table of Contents

Class DynamicSubjectCollection<T>

Represents a strongly type read/write dynamic collection of subjects by predicate and object.

Inheritance
object
DynamicSubjectCollection
DynamicSubjectCollection<T>
Implements
ICollection<INode>
IEnumerable<INode>
IDynamicMetaObjectProvider
ICollection<T>
IEnumerable<T>
IEnumerable
Inherited Members
DynamicSubjectCollection.Count
DynamicSubjectCollection.IsReadOnly
DynamicSubjectCollection.Subjects
DynamicSubjectCollection.Add(INode)
DynamicSubjectCollection.Clear()
DynamicSubjectCollection.Contains(INode)
DynamicSubjectCollection.CopyTo(INode[], int)
DynamicSubjectCollection.GetEnumerator()
DynamicSubjectCollection.Remove(INode)
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 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

| Edit this page 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
string predicate

The predicate to use.

DynamicNode object

The object to use.

Methods

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

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

Whether a statement exists with subject and given predicate and object.

| Edit this page View Source

CopyTo(T[], int)

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.

int index

The index at which copying begins.

Remarks

Nodes are wrapped in a DynamicNode.

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

Whether any statements were retracted.

Implements

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

Extension Methods

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