SemWeb.Util.StatementList

SemWeb : SemWeb.Util Namespace
StatementList Class

An expandable array of Statements.

[System.Reflection.DefaultMember("Item")] public class StatementList : ICollection

#### Remarks

This utility class is for manipulating an expandable array of SemWeb.Statements.

## Members

See Also: Inherited members from object.

### Constructors

StatementList () Creates a new empty array of statements.
StatementList (SemWeb.Statement[]) To be added.

### Properties

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

### 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 () To be added.
| ToArray () : SemWeb.Statement[] Returns an array containing all of the statements in the list.

### Operators

Conversion to SemWeb.Statement[] (Implicit) To be added.

## Member Details

### StatementList Constructor

public StatementList ()

Creates a new empty array of statements.

#### Remarks

None.

### Add Method

public int Add (SemWeb.Statement value)

Adds a statement to the end of the array.

#### Parameters

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

#### Returns

The index of the newly added statement.

#### Remarks

None.

### Remove Method

public void Remove (SemWeb.Statement s)

Removes a statement from the array.

#### Parameters

s
  The statement to remove.

#### Remarks

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

### Clear Method

public virtual void Clear ()

Clears the array.

#### Remarks

None.

### RemoveAt Method

public virtual void RemoveAt (int index)

Removes the statement at the given index.

#### Parameters

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

#### Remarks

None.

### Reverse Method

public void Reverse ()

Reverses the array.

#### Remarks

None.

### ToArray Method

public SemWeb.Statement[] ToArray ()

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

#### Returns

An array of statements.

#### Remarks

None.

### GetEnumerator Method

public IEnumerator GetEnumerator ()

Gets an enumerator over the statements in the array.

#### Returns

An enumerator over the statements in the array.

#### Remarks

None.

### CopyTo Method

public void CopyTo (Array dest, int start)

Copies this array into another array.

#### Parameters

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

#### Remarks

None.

### Count Property

public int Count { get; }

Gets the number of statements in the list.

#### Value

The number of statements in the list.

#### Remarks

None.

### SyncRoot Property

public object SyncRoot { get; }

Returns null.

#### Value

Null.

#### Remarks

None.

### IsSynchronized Property

public bool IsSynchronized { get; }

Returns false.

#### Value

False.

#### Remarks

None.

### Item Property

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

This is the default property for this class.

Gets/sets the statement at the given index.

#### Parameters

index
  A zero-based index.

#### Value

The statement at the given index.

#### Remarks

This property is the default indexer for the class.

### Conversion Method

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

To be added.

#### Parameters

list
  To be added.

#### Returns

To be added.

#### Remarks

To be added.

### Sort Method

public void Sort ()

To be added.

#### Remarks

To be added.

### StatementList Constructor

public StatementList (SemWeb.Statement[] statements)

To be added.

#### Parameters

statements
  To be added.

#### Remarks

To be added.