IMyGridTerminalSystemGetBlocksOfTypeT Method (ListIMyTerminalBlock, Func) |
v01.180.0 (Beta)[This is preliminary documentation and is subject to change.]
Namespace: Sandbox.ModAPI.IngameAssembly: Sandbox.Common (in Sandbox.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax void GetBlocksOfType<T>(
List<IMyTerminalBlock> blocks,
Func collect = null
)
where T : class
Sub GetBlocksOfType(Of T As Class) (
blocks As List(Of IMyTerminalBlock),
Optional collect As Func = Nothing
)
generic<typename T>
where T : ref class
void GetBlocksOfType(
List<IMyTerminalBlock^>^ blocks,
Func^ collect = nullptr
)
abstract GetBlocksOfType :
blocks : List<IMyTerminalBlock> *
?collect : Func
(* Defaults:
let _collect = defaultArg collect null
*)
-> unit when 'T : not struct
Parameters
- blocks
- Type: System.Collections.GenericListIMyTerminalBlock
- collect (Optional)
- Type: SystemFuncT, TResult
Type Parameters
- T
See Also