Table of Contents

Class FieldMapping<TInstance, TValue>

Namespace
StockSharp.Algo.Import
Assembly
StockSharp.Algo.dll

Importing field description.

public class FieldMapping<TInstance, TValue> : FieldMapping, IPersistable, ICloneable

Type Parameters

TInstance

Type, containing the field.

TValue

Field value type.

Inheritance
FieldMapping<TInstance, TValue>
Implements
IPersistable
Inherited Members
Extension Methods

Constructors

FieldMapping(string, Func<string>, Func<string>, Action<TInstance, TValue>)

Initializes a new instance of the FieldMapping<TInstance, TValue>.

public FieldMapping(string name, Func<string> getDisplayName, Func<string> getDescription, Action<TInstance, TValue> apply)

Parameters

name string

Name.

getDisplayName Func<string>

Display name.

getDescription Func<string>

Description.

apply Action<TInstance, TValue>

Apply field value action.

FieldMapping(string, Func<string>, Func<string>, Type, Action<TInstance, TValue>)

Initializes a new instance of the FieldMapping<TInstance, TValue>.

public FieldMapping(string name, Func<string> getDisplayName, Func<string> getDescription, Type type, Action<TInstance, TValue> apply)

Parameters

name string

Name.

getDisplayName Func<string>

Display name.

getDescription Func<string>

Description.

type Type

Field type.

apply Action<TInstance, TValue>

Apply field value action.

Methods

Clone()

public override object Clone()

Returns

object

OnApply(object, object)

Apply value.

protected override void OnApply(object instance, object value)

Parameters

instance object

Instance.

value object

Field value.