Table of Contents

Class RecordBase

Namespace
NDepend.CodeQuery
Assembly
NDepend.API.dll

The base class for all records classes. A code query result is represented through a sequence of record objects.

public abstract class RecordBase : IRecord
Inheritance
RecordBase
Implements
Derived
Inherited Members
Extension Methods

Remarks

Having a base class for all records classes is convenient since a code query result is made of a IEnumerable$gt;RecordBase$lt;

Constructor (1)

RecordBase()

protected RecordBase()

Properties (2)

this[int]

Returns this record cell value, for the cell defined at the zero-based index index.

public abstract RecordCellValue this[int index] { get; }

Parameters

index int

The zero-based index of the cell.

Property Value

RecordCellValue

Exceptions

ArgumentOutOfRangeException

index is not in the range [0, this.RecordArity - 1]

RecordArity

Returns this record class number of cells, from one to 16 cells, this limit is defined by NDepend.CodeQuery.RecordBase.MAX_ARITY.

public abstract int RecordArity { get; }

Property Value

int

Method (1)

AlreadyAccessed(int)

Don't use this method, it is a private implementation detail.

protected bool AlreadyAccessed(int index)

Parameters

index int

Private implementation detail.

Returns

bool