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); }
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); }