Class DataConversionResult
Encapsulates the result of a data conversion.
Inherited Members
System.Dynamic.DynamicObject.GetMetaObject(System.Linq.Expressions.Expression)
System.Dynamic.DynamicObject.TryBinaryOperation(System.Dynamic.BinaryOperationBinder, System.Object, System.Object)
System.Dynamic.DynamicObject.TryConvert(System.Dynamic.ConvertBinder, System.Object)
System.Dynamic.DynamicObject.TryCreateInstance(System.Dynamic.CreateInstanceBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryDeleteIndex(System.Dynamic.DeleteIndexBinder, System.Object[])
System.Dynamic.DynamicObject.TryDeleteMember(System.Dynamic.DeleteMemberBinder)
System.Dynamic.DynamicObject.TryGetIndex(System.Dynamic.GetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryInvoke(System.Dynamic.InvokeBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TrySetIndex(System.Dynamic.SetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryUnaryOperation(System.Dynamic.UnaryOperationBinder, System.Object)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Data.Conversion
Assembly: Kephas.Data.dll
Syntax
public class DataConversionResult : Expando, IDataConversionResult, IExpando, IDynamicMetaObjectProvider, IIndexable
Properties
| Improve this Doc View SourceException
Gets or sets the exception, if one occurred during conversion.
Declaration
public Exception Exception { get; set; }
Property Value
Type | Description |
---|---|
System.Exception | The exception. |
Target
Gets or sets the target object as the result of the conversion.
Declaration
public object Target { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The target object. |
Methods
| Improve this Doc View SourceFromException(Exception)
Initializes a new DataConversionResult object from the given exception.
Declaration
public static DataConversionResult FromException(Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | exception | The exception. |
Returns
Type | Description |
---|---|
DataConversionResult |
FromTarget(Object)
Initializes a new DataConversionResult object from the given target.
Declaration
public static DataConversionResult FromTarget(object target)
Parameters
Type | Name | Description |
---|---|---|
System.Object | target | The target object. |
Returns
Type | Description |
---|---|
DataConversionResult |
Implements
System.Dynamic.IDynamicMetaObjectProvider