Пример #1
0
 public int AddFeature(Feature feature)
 {
     int count = this.features.Count;
     if (!this.features.ContainsKey(feature.Name))
         this.features.Add(feature.Name, count);
     return count;
 }
Пример #2
0
 public bool Contains(Feature feature)
 {
     return this.list.Contains(feature.Name);
 }
Пример #3
0
 public void Add(Feature feature)
 {
     list.Add(feature.Name);
 }
Пример #4
0
 public int? GetFeatureIndex(Feature feature)
 {
     int index;
     if (this.features.TryGetValue(feature.Name, out index))
     {
         return index;
     }
     else
     {
         return null;
     }
 }