# LibTmux.ServerGeneration.Parse

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Connection/ServerGeneration.cs#L36
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-servergeneration-parse/

```
LibTmux.ServerGeneration.Parse(text: string) -> ServerGeneration
```

Parses a generation reported in <see cref="DisplayFormat" />.

## Parameters

- `text` (`string`): The text tmux reported.

## Returns

The parsed generation.

## Raises

- [`TmuxProtocolException`](/en/csharp/latest/reference/libtmux-tmuxprotocolexception/): <paramref name="text" /> is not a colon-separated pair of positive
integers.
