FieldMapping
StockSharp.Algo.Import
导入字段描述 。
继承自: NotifiableObject
实现: IPersistable, ICloneable
构造函数
FieldMapping
protected FieldMapping(string name, Func<string> getDisplayName, Func<string> getDescription, Type type)
fieldMapping = FieldMapping(name, getDisplayName, getDescription, type)
初始化了 & ##FieldMapping+#的新实例.
- name
- 名曰为相.
- getDisplayName
- 显示名称 。
- getDescription
- 说明
- type
- 场相.
属性
AdapterType
public Type AdapterType { get; set; }
value = fieldMapping.AdapterType
fieldMapping.AdapterType = value
适从者.
DefaultValue
public string DefaultValue { get; set; }
value = fieldMapping.DefaultValue
fieldMapping.DefaultValue = value
默认值 。
Format
public string Format { get; set; }
value = fieldMapping.Format
fieldMapping.Format = value
日期格式( C).
IsAdapter
public bool IsAdapter { get; set; }
value = fieldMapping.IsAdapter
fieldMapping.IsAdapter = value
需要的 AdapterType 需要的, 需要的, 需要的 。
IsEnabled
public bool IsEnabled { get; set; }
value = fieldMapping.IsEnabled
fieldMapping.IsEnabled = value
已启用字段 。
IsExtended
public bool IsExtended { get; set; }
value = fieldMapping.IsExtended
fieldMapping.IsExtended = value
球场被扩展。
IsRequired
public bool IsRequired { get; set; }
value = fieldMapping.IsRequired
fieldMapping.IsRequired = value
需要现场。
Name
public string Name { get; private set; }
value = fieldMapping.Name
fieldMapping.Name = value
名曰为相.
Values
public IEnumerable<FieldMappingValue> Values { get; set; }
value = fieldMapping.Values
fieldMapping.Values = value
绘图值。
ZeroAsNull
public bool ZeroAsNull { get; set; }
value = fieldMapping.ZeroAsNull
fieldMapping.ZeroAsNull = value
零为.
方法
ApplyDefaultValue
public void ApplyDefaultValue(object instance)
fieldMapping.ApplyDefaultValue(instance)
应用默认值 。
- instance
- 案例。
ApplyFileValue
public void ApplyFileValue(object instance, string value)
fieldMapping.ApplyFileValue(instance, value)
应用值。
- instance
- 案例。
- value
- 地值.
Clone
public abstract object Clone()
result = fieldMapping.Clone()
Creates a deep copy of a DataSeries
GetOrClone
public FieldMapping GetOrClone()
result = fieldMapping.GetOrClone()
获取 FieldMapping 实例或克隆依赖于 IsMultiple 。
返回值: 田地 田地 田地
OnApply
protected abstract void OnApply(object instance, object value)
fieldMapping.OnApply(instance, value)
应用值。
- instance
- 案例。
- value
- 地值.
字段
GetDescription
protected readonly Func<string> GetDescription
value = fieldMapping.GetDescription
说明
GetDisplayName
protected readonly Func<string> GetDisplayName
value = fieldMapping.GetDisplayName
显示名称 。