Example #1
0
 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));
 }
Example #2
0
        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);
        }
Example #3
0
 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);
 }
Example #4
0
 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);
 }