Class AmbiguousTypeException
Exception for ambiguous types.
Implements
Inherited Members
Namespace: SpiceSharp.General
Assembly: SpiceSharp.dll
Syntax
[Serializable]
public class AmbiguousTypeException : SpiceSharpException, ISerializable
Constructors
AmbiguousTypeException()
Initializes a new instance of the AmbiguousTypeException class.
Declaration
public AmbiguousTypeException()
AmbiguousTypeException(SerializationInfo, StreamingContext)
Initializes a new instance of the AmbiguousTypeException class.
Declaration
protected AmbiguousTypeException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The serialization info. |
StreamingContext | context | The streaming context. |
AmbiguousTypeException(string)
Initializes a new instance of the AmbiguousTypeException class.
Declaration
public AmbiguousTypeException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message that describes the error. |
AmbiguousTypeException(string, Exception)
Initializes a new instance of the AmbiguousTypeException class.
Declaration
public AmbiguousTypeException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
string | message | The error message that explains the reason for the exception. |
Exception | innerException | The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. |
AmbiguousTypeException(Type)
Initializes a new instance of the AmbiguousTypeException class.
Declaration
public AmbiguousTypeException(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The type. |
Properties
AmbiguousType
Gets the type of the ambiguous.
Declaration
public virtual Type AmbiguousType { get; }
Property Value
Type | Description |
---|---|
Type | The type of the ambiguous. |
Methods
GetObjectData(SerializationInfo, StreamingContext)
Populates a SerializationInfo with the data needed to serialize the target object.
Declaration
[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The serialization info. |
StreamingContext | context | The streaming context. |