public int AddFeature(Feature feature) { int count = this.features.Count; if (!this.features.ContainsKey(feature.Name)) this.features.Add(feature.Name, count); return count; }
public bool Contains(Feature feature) { return this.list.Contains(feature.Name); }
public void Add(Feature feature) { list.Add(feature.Name); }
public int? GetFeatureIndex(Feature feature) { int index; if (this.features.TryGetValue(feature.Name, out index)) { return index; } else { return null; } }