Table of Contents

Struct BodyCollection.BodyEnumerator

Namespace
Alis.Core.Physic.Dynamics
Assembly
Alis.dll

The body enumerator

public struct BodyCollection.BodyEnumerator : IEnumerator<Body>, IEnumerator, IDisposable

Implements

Inherited Members

Constructors

BodyEnumerator(BodyCollection, List<Body>)

Initializes a new instance of the Alis.Core.Physic.Dynamics.BodyCollection.BodyEnumerator class

public BodyEnumerator(BodyCollection collection, List<Body> list)

Parameters

collection BodyCollection

The collection

list List<Body>

The list

Fields

_collection

The collection

private BodyCollection _collection

Field Value

BodyCollection

_generationStamp

The generation stamp

private readonly int _generationStamp

Field Value

int

_list

The list

private List<Body> _list

Field Value

List<Body>

i

The

private int i

Field Value

int

Properties

Current

Gets the value of the current

public Body Current { get; }

Property Value

Body

IEnumerator<Body>.Current

Gets the value of the current

Body IEnumerator<Body>.Current { get; }

Property Value

Body

IEnumerator.Current

Gets the value of the current

object IEnumerator.Current { get; }

Property Value

object

Methods

MoveNext()

Describes whether this instance move next

public bool MoveNext()

Returns

bool

The bool

Exceptions

InvalidOperationException

Collection was modified.

IEnumerator.Reset()

Resets this instance

void IEnumerator.Reset()

IDisposable.Dispose()

Disposes this instance

void IDisposable.Dispose()