Delegate Properties, Lazy Parameters & Lazy Variadic Functions
You will learn about delegate properties, lazy parameters, and lazy variadic functions in this lesson.
We'll cover the following...
We'll cover the following...
Delegate properties
The function and context pointers of a delegate can be accessed through its .funcptr and .ptr properties, respectively:
It is possible to make a delegate from scratch by setting those properties explicitly:
Above, calling the delegate as d() is the equivalent of the expression o.func() (i.e., calling MyStruct.func on o).