Entropy Overload – Anonymous methods may have associated state. In particular, all variables that an anonymous method captures need to be kept alive so long as the anonymous method is callable. For this reason, anonymous methods are implemented with a lifetime management approach: anonymous methods are actually methods on an object which implements COM-style reference counted interfaces. Method references are interface references with a single method called Invoke. If one badly wants to store an anonymous method in a method pointer, this information can be used to shoehorn it in. Here's how it can be done: ...
Visits by Source
Users who voted for this posting