> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.compiler/yarn.compiler.range/yarn.compiler.range..ctor-2.md).

# Range(Position,Position)

Constructor in [Range](/3.1/api/csharp/yarn.compiler/yarn.compiler.range.md)

## Summary

Initializes a new instance of the [Range](/3.1/api/csharp/yarn.compiler/yarn.compiler.range.md) class, given start and end information.

```csharp
public Range(Position startPosition, Position endPosition)
```

## Parameters

| Name                                                                                            | Description                             |
| ----------------------------------------------------------------------------------------------- | --------------------------------------- |
| [Yarn.Compiler.Position](/3.1/api/csharp/yarn.compiler/yarn.compiler.position.md) startPosition | The position at the start of the range. |
| [Yarn.Compiler.Position](/3.1/api/csharp/yarn.compiler/yarn.compiler.position.md) endPosition   | The position at the end of the range.   |
