Namespace Badeend
Classes
- AnyReferenceExtensions
Extension methods for Any constrained to
where T : class
.
- AnyValueExtensions
Extension methods for Any constrained to
where T : struct
.
Structs
- Any
Any
is able to hold any value of any type (hence the name).This is similar to assigning a value to a variable of type
object
. The key difference is that converting toAny
does not cause boxing for many small struct types as they're stored inline in theAny
instance itself. Whereas converting a struct type toobject
will always box.