> 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/api/csharp/yarn.compiler/yarn.compiler.nodedebuginfo/yarn.compiler.nodedebuginfo.getlineinfo.md).

# GetLineInfo(int)

Method in [NodeDebugInfo](/api/csharp/yarn.compiler/yarn.compiler.nodedebuginfo.md)

## Summary

Gets a [LineInfo](/api/csharp/yarn.compiler/yarn.compiler.nodedebuginfo/yarn.compiler.nodedebuginfo.lineinfo.md) object that describes the specified instruction at the index `instructionNumber` .

```csharp
public LineInfo GetLineInfo(int instructionNumber)
```

## Parameters

| Name                    | Description                                               |
| ----------------------- | --------------------------------------------------------- |
| `int` instructionNumber | The index of the instruction to retrieve information for. |

## Returns

A [LineInfo](/api/csharp/yarn.compiler/yarn.compiler.nodedebuginfo/yarn.compiler.nodedebuginfo.lineinfo.md) object that describes the position of the instruction.
