Пример #1
0
 public Scalar(QName name, FASTType type, OperatorCodec operatorCodec, ScalarValue defaultValue, bool optional) : base(name, optional)
 {
     InitBlock();
     operator_Renamed   = operatorCodec.Operator;
     this.operatorCodec = operatorCodec;
     dictionary         = "global";
     this.defaultValue  = defaultValue ?? ScalarValue.UNDEFINED;
     this.type          = type;
     typeCodec          = type.GetCodec(operator_Renamed, optional);
     initialValue       = ((defaultValue == null) || defaultValue.Undefined)?this.type.DefaultValue:defaultValue;
     operator_Renamed.Validate(this);
 }
Пример #2
0
 public Scalar(QName name, FASTType type, Operator.Operator operator_Renamed, ScalarValue defaultValue, bool optional)
     : base(name, optional)
 {
     InitBlock();
     this.operator_Renamed = operator_Renamed;
     operatorCodec = operator_Renamed.GetCodec(type);
     dictionary = Dictionary_Fields.GLOBAL;
     this.defaultValue = defaultValue ?? ScalarValue.UNDEFINED;
     this.type = type;
     typeCodec = type.GetCodec(operator_Renamed, optional);
     initialValue = ((defaultValue == null) || defaultValue.Undefined)?this.type.DefaultValue:defaultValue;
     operator_Renamed.Validate(this);
 }