# Sequence class

Namespace: [Grasshopper2.Data.Mapping](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.data.mapping.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
[DebuggerDisplay("{Description} = {Sum}")]
public class Sequence
```

Represents a summation sequence consisting of positive integers.

## Properties

- [Description](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.mapping.sequence/description.md): Gets the summation series for this sequence.
- [Sum](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.mapping.sequence/sum.md): Gets the sum of this sequence.

## Methods

- [Cascade](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.mapping.sequence/cascade.md): Cascase the leftmost element in the sequence that is larger than it's right neighbour. TODO: what? the above makes no sense...
- [GenerateAllSequences](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.mapping.sequence/generateallsequences.md): (static) Generate all possible sequences that add up to a target value.
- [ToArray](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.mapping.sequence/toarray.md): Convert this sequence into an array.
