# Sandbox.Variant

A Variant is a type that can hold any value, and also keeps track of the type of the value it holds.
It's useful for cases where you want to store a value of an unknown type, or when you want to 
serialize/deserialize values of various types in a generic way.

- Kind: struct
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Constructors

- [`Variant`](/api/Sandbox.Variant/.ctor)

## Properties

- [`Type`](/api/Sandbox.Variant/Type): The type of the value currently stored in the Variant. This is automatically set when you assign a value to the Variant.
- [`Value`](/api/Sandbox.Variant/Value): Gets or sets the value associated with this instance.

## Methods

- [`Get`](/api/Sandbox.Variant/Get)
- [`JsonRead`](/api/Sandbox.Variant/JsonRead)
- [`JsonWrite`](/api/Sandbox.Variant/JsonWrite)
