Example #1
0
        private InformationData ConvertInformationDataBoolean(Generated.InformationData infoData)
        {
            var infoDataBool = infoData as Generated.InformationDataBoolean;

            if (infoDataBool == null)
            {
                throw new ArgumentException("Must be InformationDataBoolean", "infoData");
            }

            var cultureInfo = this.ConvertCulture(infoData.Culture);

            var convertedInfoDataBool = new InformationDataBool(cultureInfo, infoDataBool.AttributeId, infoDataBool.Value);

            return(convertedInfoDataBool);
        }
Example #2
0
        public override bool Equals(object obj)
        {
            InformationDataBool b = obj as InformationDataBool;

            return(base.Equals(b) && b.Value == Value);
        }