public bool Equals(UniprotFeature other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(other.FeatureDescription, FeatureDescription) && Equals(other.FeatureStatus, FeatureStatus) && Equals(other.FeatureId, FeatureId)); }
public void AddFeature(string featureType, string featureDescription, string featureStatus, string featureId) { if (features == null) { features = new Dictionary <FeatureType, List <UniprotFeature> >(); } FeatureType key = FeatureType.GetFeatureType(featureType); if (!features.ContainsKey(key)) { features.Add(key, new List <UniprotFeature>()); } currentFeature = new UniprotFeature(featureDescription, featureStatus, featureId); features[key].Add(currentFeature); }
public bool Equals(UniprotFeature other) { if (ReferenceEquals(null, other)){ return false; } if (ReferenceEquals(this, other)){ return true; } return Equals(other.FeatureDescription, FeatureDescription) && Equals(other.FeatureStatus, FeatureStatus) && Equals(other.FeatureId, FeatureId); }
public void AddFeature(string featureType, string featureDescription, string featureStatus, string featureId) { if (features == null){ features = new Dictionary<FeatureType, List<UniprotFeature>>(); } FeatureType key = FeatureType.GetFeatureType(featureType); if (!features.ContainsKey(key)){ features.Add(key, new List<UniprotFeature>()); } currentFeature = new UniprotFeature(featureDescription, featureStatus, featureId); features[key].Add(currentFeature); }