Search Results for

    Show / Hide Table of Contents

    Class MissingParameterlessConstructorException

    The exception that is thrown when trying to instantiate a model with no parameterless constructor.

    Inheritance
    System.Object
    System.Exception
    System.ApplicationException
    System.Reflection.TargetException
    MissingParameterlessConstructorException
    Implements
    System.Runtime.Serialization.ISerializable
    Inherited Members
    System.Exception.GetBaseException()
    System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
    System.Exception.GetType()
    System.Exception.ToString()
    System.Exception.Data
    System.Exception.HelpLink
    System.Exception.HResult
    System.Exception.InnerException
    System.Exception.Message
    System.Exception.Source
    System.Exception.StackTrace
    System.Exception.TargetSite
    System.Exception.SerializeObjectState
    Namespace: McMaster.Extensions.CommandLineUtils
    Assembly: McMaster.Extensions.CommandLineUtils.dll
    Syntax
    public class MissingParameterlessConstructorException : TargetException, ISerializable

    Constructors

    | Improve this Doc View Source

    MissingParameterlessConstructorException(Type, Exception)

    Initializes an instance of MissingParameterlessConstructorException.

    Declaration
    public MissingParameterlessConstructorException(Type type, Exception innerException)
    Parameters
    Type Name Description
    System.Type type

    The type missing a parameterless constructor.

    System.Exception innerException

    The original exception.

    Properties

    | Improve this Doc View Source

    Type

    Gets the type that caused the exception.

    Declaration
    public Type Type { get; }
    Property Value
    Type Description
    System.Type

    Implements

    System.Runtime.Serialization.ISerializable
    • Improve this Doc
    • View Source
    In This Article
    Back to top