Summary
Get a value by key from the context
- Assembly
- Rocket
.Surgery .Conventions .Abstractions .dll - Namespace
- Rocket
.Surgery .Conventions - Containing Type
- Convention
Context Extensions
Syntax
public static T Get<T>(this IConventionContext context, string key)
Attributes
| Type | Description |
|---|---|
| NotNullAttribute |
Type Parameters
| Name | Description |
|---|---|
| T |
Parameters
| Name | Type | Description |
|---|---|---|
| context | IConventionContext | The context |
| key | string | The key where the value is saved |
Return Value
| Type | Description |
|---|---|
| T | T. |
