Class DataConversionContext
A data conversion context.
Inheritance
System.Object
System.Dynamic.DynamicObject
DataConversionContext
Implements
System.Dynamic.IDynamicMetaObjectProvider
System.IDisposable
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 DataConversionContext : Context, IDataConversionContext, IContext, IExpando, IDynamicMetaObjectProvider, IIndexable, ILoggable, IDisposable
Constructors
| Improve this Doc View SourceDataConversionContext(IDataConversionService, IDataSpace, Type, Type)
Initializes a new instance of the DataConversionContext class.
Declaration
public DataConversionContext(IDataConversionService conversionService, IDataSpace dataSpace, Type rootSourceType = null, Type rootTargetType = null)
Parameters
Type | Name | Description |
---|---|---|
IDataConversionService | conversionService | The conversion service. |
IDataSpace | dataSpace | The data space. |
System.Type | rootSourceType | Optional. The type of the source root object. |
System.Type | rootTargetType | Optional. The type of the target root object. |
Properties
| Improve this Doc View SourceDataConversionService
Gets the data conversion service.
Declaration
public IDataConversionService DataConversionService { get; }
Property Value
Type | Description |
---|---|
IDataConversionService | The data conversion service. |
DataSpace
Gets the data space.
Declaration
public IDataSpace DataSpace { get; }
Property Value
Type | Description |
---|---|
IDataSpace | The data space. |
RootSourceType
Gets or sets the type of the source root object.
Declaration
public Type RootSourceType { get; set; }
Property Value
Type | Description |
---|---|
System.Type | The type of the source root object. |
RootTargetType
Gets or sets the type of the target root object.
Declaration
public Type RootTargetType { get; set; }
Property Value
Type | Description |
---|---|
System.Type | The type of the target root object. |
ThrowOnError
Gets or sets a value indicating whether to throw an exception when an error occurs.
Declaration
public bool ThrowOnError { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Implements
System.Dynamic.IDynamicMetaObjectProvider
System.IDisposable