IMyBlockGroupGetBlocksOfTypeT Method (ListT, 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<T> blocks,
Func collect = null
)
where T : class
Sub GetBlocksOfType(Of T As Class) (
blocks As List(Of T),
Optional collect As Func = Nothing
)
generic<typename T>
where T : ref class
void GetBlocksOfType(
List<T>^ blocks,
Func^ collect = nullptr
)
abstract GetBlocksOfType :
blocks : List<'T> *
?collect : Func
(* Defaults:
let _collect = defaultArg collect null
*)
-> unit when 'T : not struct
Parameters
- blocks
- Type: System.Collections.GenericListT
- collect (Optional)
- Type: SystemFuncT, TResult
Type Parameters
- T
See Also