# Result<T> class

Namespace: [Grasshopper2.Parsing](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.parsing.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class Result<T> : IResult
```

The result of a parsing operation.

**Type parameters:**

- `T`

## Properties

- [After](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.result-1/after.md): Gets the index within the source string where the substring for this parse ends, or in the case of a failed parse where the error block ends.
- [Error](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.result-1/error.md): Failure in case of a unsuccessful parse.
- [IResult.Value](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.result-1/grasshopper2-parsing-iresult-value.md)
- [Start](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.result-1/start.md): Gets the index within the source string where the substring for this parse starts, or in he case of a failed parse where the error block starts.
- [Success](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.result-1/success.md): Gets whether the parsing was successful.
- [Text](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.result-1/text.md): Gets the substring indicated by this result.
- [Underlying](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.result-1/underlying.md)
- [Value](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.result-1/value.md): Gets the value associated with this result. Only meaningful when [Result<T>.Success](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.result-1/success.md) is true.

## Methods

- [Fail](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.result-1/fail.md): (static) Create a new failed parsing result.
- [Succeed](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.result-1/succeed.md): (static) Create a new successful parsing result.
- [WithValue<Q>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.result-1/withvalue.md): Create a new result with the same coverage but a different value.
