Class TypeHelper
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.common.dll
Utility methods related to Type.
public static class TypeHelper
- Inheritance
-
TypeHelper
- Inherited Members
Methods
- ConvertArgument(object?, Type)
Converts an argument into its target type. Can be particularly useful when pulling attribute constructor arguments, whose types may not strictly match the parameter type.
- ConvertArguments(object?[], Type[])
Converts arguments into their target types. Can be particularly useful when pulling attribute constructor arguments, whose types may not strictly match the parameter types.
- ConvertAttributeArgumentCollection(IReadOnlyCollection<CustomAttributeTypedArgument>, Type)
Converts an argument collection from an attribute initializer into an array of the raw values.
- GetType(string)
Converts an assembly qualified type name from GetTypeName(Type) back into a Type object.
- GetType(string, string)
Converts an assembly name + type name into a Type object.
- GetTypeName(Type)
Gets an assembly-qualified type name suitable for serialization.
- GetTypeStrict(string)
Converts an assembly qualified type name into a Type object. If the type does not exist, throws an ArgumentException.