Пример #1
0
 public bool Equals(string code, string vocabName)
 {
     return(
         Code.SafeEquals(code) &&
         VocabName.SafeEquals(vocabName)
         );
 }
Пример #2
0
        public override bool Equals(object obj)
        {
            var coded = obj as CodedValue;

            if (coded == null)
            {
                return(base.Equals(obj));
            }

            if (coded != null)
            {
                return(
                    Code.SafeEquals(coded.Code) &&
                    VocabName.SafeEquals(coded.VocabName) &&
                    VocabFamily.SafeEquals(coded.VocabFamily) &&
                    VocabVersion.SafeEquals(coded.VocabVersion)
                    );
            }

            return(base.Equals(obj));
        }
Пример #3
0
 public void Validate()
 {
     Code.ValidateRequired("Value");
     VocabName.ValidateRequired("Type");
 }