The AnyOf type is a useful way to handle multiple defined types as input parameters for methods. This project provides up to 10 AnyOf-types, each named `AnyOf`. In addition, two versions of the package are available: normal and source-generator. The package also includes AnyOf.Newtonsoft.Json and AnyOf.System.Text.Json, which can be used to serialize/deserialize an object that contains an AnyOf-type using Newtonsoft.Json and System.Text.Json, respectively. The usage of AnyOf is demonstrated with sample code in a console application that returns a string, int, or bool in a random way and accepts only an int or a string.