コード例 #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;
     }
 }