private InformationData ConvertInformationDataDouble(Generated.InformationData infoData) { var infoDataDouble = infoData as Generated.InformationDataDouble; if (infoDataDouble == null) { throw new ArgumentException("Must be InformationDataDouble", "infoData"); } var cultureInfo = this.ConvertCulture(infoData.Culture); var convertedInfoDataDouble = new InformationDataDouble(cultureInfo, infoDataDouble.AttributeId, infoDataDouble.Value); return(convertedInfoDataDouble); }
public override bool Equals(object obj) { InformationDataDouble d = obj as InformationDataDouble; return(base.Equals(d) && d.Value == Value); }