macros:type:ienumerable
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
macros:type:ienumerable [2018/09/09 18:48] – icke_siegen | macros:type:ienumerable [2021/06/12 13:45] (current) – icke_siegen | ||
---|---|---|---|
Line 2: | Line 2: | ||
This is a kind of a collection of objects where the system can walk through. E.g. when multiple handles are selected and you want to apply a certain function to each of them, IEnumerable is probably the type this functions needs to cope with. | This is a kind of a collection of objects where the system can walk through. E.g. when multiple handles are selected and you want to apply a certain function to each of them, IEnumerable is probably the type this functions needs to cope with. | ||
+ | |||
+ | ===== Status | ||
+ | |||
There is no way to define the contents of an IEnumerable from a macro - you can only copy an existing IEnumerable. See http:// | There is no way to define the contents of an IEnumerable from a macro - you can only copy an existing IEnumerable. See http:// | ||
Line 18: | Line 21: | ||
The first step puts the currently selected fixtures into a specific property (in that case, " | The first step puts the currently selected fixtures into a specific property (in that case, " | ||
The second step applies a function - which is capable of handling an IEnumerable - to this property. In this case, it sets all fixtures which are in this property to ' | The second step applies a function - which is capable of handling an IEnumerable - to this property. In this case, it sets all fixtures which are in this property to ' | ||
+ | |||
+ | ===== Status 2021 (v15) ===== | ||
+ | |||
+ | > Gregory Haynes: | ||
+ | > There was an attempt to make it possible to pass in lists (IEnumerable) of handles, this was at least partially successful. If you pass in just a single user number, integer (Titan ID) or a string e.g. " | ||
+ | > | ||
+ | > Examples (this functions requires the second parameter as IEnumerable): | ||
+ | > | ||
+ | > '' | ||
+ | > | ||
+ | > '' | ||
+ | > | ||
+ | > '' | ||
+ | > | ||
+ | > '' | ||
== Also used in == | == Also used in == |
macros/type/ienumerable.1536518883.txt.gz · Last modified: 2018/09/09 18:48 (external edit)