예제 #1
0
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            FeatureModel featureObj = (FeatureModel)obj;

            if (featureObj.Name == this.Name && featureObj.Category == this.Category)
            {
                return(true);
            }
            else
            {
                return(base.Equals(obj));
            }
        }
예제 #2
0
 public Feature(FeatureModel featureID) : this()
 {
     FeatureID = new XmlPersistentHolder <FeatureModel, string, FeaturesManager>(featureID);
 }