Ejemplo n.º 1
0
 public virtual bool Equals(DictionaryNameBase toObject)
 {
     if (toObject == null)
     {
         return(false);
     }
     return(Equals(this, toObject));
 }
Ejemplo n.º 2
0
 public DictionaryNameKey(DictionaryNameBase entity)
 {
     this.Entity = entity;
     if (entity != null)
     {
         this.dictionaryNameCode = entity.DictionaryNameCode;
     }
 }
Ejemplo n.º 3
0
        public static bool Equals(DictionaryNameBase Object1, DictionaryNameBase Object2)
        {
            if ((Object1 == null) && (Object2 == null))
            {
                return(true);
            }
            if ((Object1 == null) ^ (Object2 == null))
            {
                return(false);
            }
            bool flag = true;

            if (Object1.DictionaryNameCode != Object2.DictionaryNameCode)
            {
                flag = false;
            }
            if ((Object1.NAME != null) && (Object2.NAME != null))
            {
                if (Object1.NAME != Object2.NAME)
                {
                    flag = false;
                }
            }
            else if ((Object1.NAME == null) ^ (Object2.NAME == null))
            {
                flag = false;
            }
            if ((Object1.ProjectCode != null) && (Object2.ProjectCode != null))
            {
                if (Object1.ProjectCode != Object2.ProjectCode)
                {
                    flag = false;
                }
            }
            else if ((Object1.ProjectCode == null) ^ (Object2.ProjectCode == null))
            {
                flag = false;
            }
            if ((Object1.Remark != null) && (Object2.Remark != null))
            {
                if (Object1.Remark != Object2.Remark)
                {
                    flag = false;
                }
                return(flag);
            }
            if ((Object1.Remark == null) ^ (Object2.Remark == null))
            {
                flag = false;
            }
            return(flag);
        }