Class TypeArgumentException
- Namespace
- Gamelogic.Extensions
- Assembly
- Assembly-CSharp.dll
Thrown when a method is called with illegal type parameters, or a class is constructed with illegal type parameters.
public class TypeArgumentException : Exception, _Exception, ISerializable
- Inheritance
-
TypeArgumentException
- Implements
- Inherited Members
- Extension Methods
Remarks
Normally, it is preferable to use type constraints, but in some cases this is not possible. This exception can be thrown in such cases.
Constructors
TypeArgumentException(string)
public TypeArgumentException(string message)
Parameters
message
string
TypeArgumentException(string, string)
public TypeArgumentException(string parameterName, string message)
Parameters
Fields
parameterName
public readonly string parameterName