UnionHelper Class

Summary

Union helper
Assembly
Rocket.Surgery.Extensions.Unions.dll
Namespace
Rocket.Surgery.Unions
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["UnionHelper"] class Type type-node

Syntax

public static class UnionHelper

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Methods

Name Value Summary
GetAll(Assembly, Assembly[]) IEnumerable<ValueTuple<TypeInfo, TypeInfo, bool>>
Get's a list of all the unions in a set of assemblies Used to create a unit tests that ensures all unions are configured properly
static
GetAll(IEnumerable<Assembly>) IEnumerable<ValueTuple<TypeInfo, TypeInfo, bool>>
Get's a list of all the unions in a set of assemblies Used to create a unit tests that ensures all unions are configured properly
static
GetRootType(Type) TypeInfo
Gets the type of the root.
static
GetRootType(TypeInfo) TypeInfo
Gets the type of the root.
static
GetUnion(Type) IReadOnlyDictionary<object, Type>
Get's all union paires for a given union enum
static
GetUnion(TypeInfo) IReadOnlyDictionary<object, Type>
Get's all union paires for a given union enum
static
GetUnionEnumType(Type, string) Type
Gets the type of the union enum.
static
GetUnionEnumType(Type) Type
Gets the type of the union enum.
static
GetUnionEnumType(TypeInfo, string) Type
Gets the type of the union enum.
static
GetUnionEnumType(TypeInfo) Type
Gets the type of the union enum.
static
GetUnionKey(TypeInfo) string
Gets the union key.
static