Table of Contents

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 to Any does not cause boxing for many small struct types as they're stored inline in the Any instance itself. Whereas converting a struct type to object will always box.