Method TryGetChannel
| Edit this page View SourceTryGetChannel<T>(string, out GridBuffer<T>?)
Retrieves a typed channel by name. Returns false if missing or type mismatch.
Declaration
public bool TryGetChannel<T>(string name, out GridBuffer<T>? channel) where T : unmanaged
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Name of the channel |
| GridBuffer<T> | channel | Output typed buffer. |
Returns
| Type | Description |
|---|---|
| bool | True if successful. |
Type Parameters
| Name | Description |
|---|---|
| T | Expected unmanaged type. |
TryGetChannel(string, out IGridBuffer?)
Retrieves an untyped channel by name. Returns false if missing.
Declaration
public bool TryGetChannel(string name, out IGridBuffer? channel)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Name of the channel |
| IGridBuffer | channel | Output untyped buffer. |
Returns
| Type | Description |
|---|---|
| bool | True if successful. |