public bool Equals(UniprotFeature other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(other.FeatureDescription != null && other.FeatureStatus != null && other.FeatureId != null && other.FeatureDescription.Equals(FeatureDescription) && other.FeatureStatus.Equals(FeatureStatus) && other.FeatureId.Equals(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 other.FeatureDescription != null && other.FeatureStatus != null && other.FeatureId != null && other.FeatureDescription.Equals(FeatureDescription) && other.FeatureStatus.Equals(FeatureStatus) && other.FeatureId.Equals(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); }