# GetLineInfo(int)

Method in [NodeDebugInfo](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.nodedebuginfo)

## Summary

Gets a [LineInfo](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.nodedebuginfo/yarn.compiler.nodedebuginfo.lineinfo) 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](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.nodedebuginfo/yarn.compiler.nodedebuginfo.lineinfo) object that describes the position of the instruction.
