Konrad Kokosa Ref struct, ref readonly struct, ref returning, ref everything
Managed pointers, in the form of ref variables, existed in. NET since the very beginning. But only recently they gained much bigger interest there are such constructs like in parameters, local ref variables and readonly refs. Moreover, recently socalled ref structs were introduced and in the context of Span type one could hear of byreflike instance fields. We can hear about those refsomething things a lot, but should one really care I believe so, as all those changes perfectly fit into the ongoing process of speeding up. NET and its performance possibilities. There is a lot of ways to optimize your code with the conscious use of those constructs, although some caveats exist that we should be aware of. Let me introduce you to such refworld
|
|