예제 #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;
     }
 }