SemWeb : SemWeb.Util Namespace
StatementList Class

An expandable array of Statements; i.e. an ArrayList specialized for statements.

public class StatementList : ICollection

Remarks

This utility class is for manipulating an expandable array of SemWeb.Statements. Since the Statement type is a struct, and the .NET 1.1 build of this library does not use generics, this class is provided to avoid needing to box statements in ArrayLists.

Requirements

Namespace: SemWeb.Util
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 0.0.0.0, 1.0.6.0, 1.0.6.2, 1.0.7.0

Members

See Also: Inherited members from object.

Public Constructors

Creates a new empty array of statements.
Creates a new StatementList and adds the statements in an array to the list.

Public Properties

[read-only]
Count int . Gets the number of statements in the list.
[read-only]
IsSynchronized bool . Returns false.
default property
Item (int) SemWeb.Statement . Gets/sets the statement at the given index.
[read-only]
SyncRoot object . Returns null.

Public Methods

Add (SemWeb.Statement) : int
Adds a statement to the end of the array.
Clear ()
Clears the array.
CopyTo (Array, int)
Copies this array into another array.
GetEnumerator () : IEnumerator
Gets an enumerator over the statements in the array.
Remove (SemWeb.Statement)
Removes a statement from the array.
RemoveAt (int)
Removes the statement at the given index.
Reverse ()
Reverses the array.
Sort ()
Sorts the statements in the list.
ToArray () : SemWeb.Statement[]
Returns an array containing all of the statements in the list.

Public Operators

static
Conversion to SemWeb.Statement[] (Implicit) An implicit operator conversion to an array of statements.

Member Details

StatementList Constructor

Creates a new empty array of statements.

public StatementList ()

Remarks

None.

Requirements

Namespace: SemWeb.Util
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 0.0.0.0, 1.0.6.2, 1.0.7.0

StatementList Constructor

Creates a new StatementList and adds the statements in an array to the list.

public StatementList (SemWeb.Statement[] statements)

Parameters

statements
An array of statements.

Remarks

None.

Requirements

Namespace: SemWeb.Util
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 0.0.0.0, 1.0.6.2, 1.0.7.0

Add Method

Adds a statement to the end of the array.

public int Add (SemWeb.Statement value)

Parameters

value
The statement to add to the end of the array.

Returns

The index of the newly added statement.

Remarks

None.

Requirements

Namespace: SemWeb.Util
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 0.0.0.0, 1.0.6.2, 1.0.7.0

Clear Method

Clears the array.

public virtual void Clear ()

Remarks

None.

Requirements

Namespace: SemWeb.Util
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 0.0.0.0, 1.0.6.2, 1.0.7.0

CopyTo Method

Copies this array into another array.

public void CopyTo (Array dest, int start)

Parameters

dest
The destination array.
start
The starting index in the destination array.

Remarks

None.

Requirements

Namespace: SemWeb.Util
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 0.0.0.0, 1.0.6.2, 1.0.7.0

Count Property

Gets the number of statements in the list.

public int Count { get; }

Value

The number of statements in the list.

Remarks

None.

Requirements

Namespace: SemWeb.Util
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 0.0.0.0, 1.0.6.2, 1.0.7.0

GetEnumerator Method

Gets an enumerator over the statements in the array.

public IEnumerator GetEnumerator ()

Returns

An enumerator over the statements in the array.

Remarks

None.

Requirements

Namespace: SemWeb.Util
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 0.0.0.0, 1.0.6.2, 1.0.7.0

IsSynchronized Property

Returns false.

public bool IsSynchronized { get; }

Value

False.

Remarks

None.

Requirements

Namespace: SemWeb.Util
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 0.0.0.0, 1.0.6.2, 1.0.7.0

Item Property

Gets/sets the statement at the given index.

This is the default property for this class.

public SemWeb.Statement this [int index] { set; get; }

Parameters

index
A zero-based index.

Value

The statement at the given index.

Remarks

This property is the default indexer for the class.

Requirements

Namespace: SemWeb.Util
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 0.0.0.0, 1.0.6.2, 1.0.7.0

Conversion Method

An implicit operator conversion to an array of statements.

public static implicit operator SemWeb.Statement[] (StatementList list)

Parameters

list
Documentation for this section has not yet been entered.

Returns

A new array of statements containing the statements in the StatementList.

Remarks

This just calls ToArray.

Requirements

Namespace: SemWeb.Util
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 0.0.0.0, 1.0.6.2, 1.0.7.0

Remove Method

Removes a statement from the array.

public void Remove (SemWeb.Statement s)

Parameters

s
The statement to remove.

Remarks

The statement is removed by linearly searching for it in the array.

Requirements

Namespace: SemWeb.Util
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 0.0.0.0, 1.0.6.2, 1.0.7.0

RemoveAt Method

Removes the statement at the given index.

public virtual void RemoveAt (int index)

Parameters

index
The zero-based index at which to remove a statement.

Exceptions

Type Reason
ArgumentOutOfRangeException Documentation for this section has not yet been entered.

Remarks

None.

Requirements

Namespace: SemWeb.Util
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 0.0.0.0, 1.0.6.2, 1.0.7.0

Reverse Method

Reverses the array.

public void Reverse ()

Remarks

None.

Requirements

Namespace: SemWeb.Util
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 0.0.0.0, 1.0.6.2, 1.0.7.0

Sort Method

Sorts the statements in the list.

public void Sort ()

Remarks

The statements are sorted according to the sort order implemented in Statement's implementation of IComparable.

Requirements

Namespace: SemWeb.Util
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 0.0.0.0, 1.0.6.2, 1.0.7.0

SyncRoot Property

Returns null.

public object SyncRoot { get; }

Value

Null.

Remarks

None.

Requirements

Namespace: SemWeb.Util
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 0.0.0.0, 1.0.6.2, 1.0.7.0

ToArray Method

Returns an array containing all of the statements in the list.

public SemWeb.Statement[] ToArray ()

Returns

An array of statements.

Remarks

None.

Requirements

Namespace: SemWeb.Util
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 0.0.0.0, 1.0.6.2, 1.0.7.0