# Class TCommonEnumerator

Description
Hierarchy
Nested Types
Fields
Methods
Properties

## Unit

bbutilsbeta

## Declaration

`type generic TCommonEnumerator<T> = class(TObject)`

## Description

A generic enumerator that works for any fixed-length collection.
Drawback: It is always slower than an enumerator custom written for a class. It should use SizeInt, but it cannot use sizeint, when the collection (e.g. TStringList) does not use SizeInt

## Hierarchy

- TObject
- TCommonEnumerator

## Overview

### Nested Types

| `TGetCallback = function (i: integer): T of object;`

### Methods

| `constructor create(count: integer; callback: TGetCallback);`
| `function MoveNext: Boolean;`
| `function GetEnumerator: TCommonEnumerator;`

### Properties

| `property Current: T read GetCurrent;`

## Description

### Nested Types

| `TGetCallback = function (i: integer): T of object;`

### Methods

| `constructor create(count: integer; callback: TGetCallback);`

| `function MoveNext: Boolean;`

| `function GetEnumerator: TCommonEnumerator;`

### Properties

| `property Current: T read GetCurrent;`

Generated by PasDoc 0.16.0.