Пример #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, 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);
 }