Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 592 Bytes

File metadata and controls

20 lines (15 loc) · 592 Bytes

CSharpEssentials.Any Example

This console application demonstrates the dynamic Any type from CSharpEssentials.Any.

Features Demonstrated

Feature Description
Any Type Store any value in a single type with Any.From()
Type Checking Is<T>() to verify the underlying type
Casting As<T>() with safe fallback to default
AnyActionResult Generic success/failure result with any payload
AnyT2 – AnyT8 Typed unions for 2 to 8 different types

Running

cd examples/Examples.Any
dotnet run