示例#1
0
 public bool IsValueOf(ProjectPropertyValue value)
 {
     if (value != null && value.ParentProperty.Property == this.Property)
     {
         return(true);
     }
     return(false);
 }
示例#2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            ProjectPropertyValue projectPropertyValue = obj as ProjectPropertyValue;

            if (projectPropertyValue == null)
            {
                return(this.Equals(obj));
            }
            if (this.Value != projectPropertyValue.Value)
            {
                return(false);
            }
            return(this.parentProperty.Property == projectPropertyValue.parentProperty.Property);
        }