Exemplo n.º 1
0
 public IngredientForm this[NameIngredientPair key]
 {
     get
     {
         return(pairs[key]);
     }
     set
     {
         pairs[key] = value;
     }
 }
Exemplo n.º 2
0
 public IngredientForm this[NameIngredientPair key]
 {
     get
      {
     return pairs[key];
      }
      set
      {
     pairs[key] = value;
      }
 }
Exemplo n.º 3
0
        public static bool TryGetFormForIngredient(string formname, Guid ing, out IngredientForm form)
        {
            form = null;
            FormNode node;

            if (false == synonymMap.TryGetValue(formname, out node))
            {
                return(false);
            }

            var pair = new NameIngredientPair(formname, ing);

            return(pairings.TryGetValue(pair, out form));
        }
Exemplo n.º 4
0
 public bool TryGetValue(NameIngredientPair key, out IngredientForm value)
 {
     return this.pairs.TryGetValue(key, out value);
 }
Exemplo n.º 5
0
 public bool ContainsKey(NameIngredientPair key)
 {
     return this.pairs.ContainsKey(key);
 }
Exemplo n.º 6
0
 public void Add(NameIngredientPair key, IngredientForm value)
 {
     this.pairs.Add(key, value);
 }
Exemplo n.º 7
0
 public bool TryGetValue(NameIngredientPair key, out IngredientForm value)
 {
     return(pairs.TryGetValue(key, out value));
 }
Exemplo n.º 8
0
 public bool ContainsKey(NameIngredientPair key)
 {
     return(pairs.ContainsKey(key));
 }
Exemplo n.º 9
0
 public void Add(NameIngredientPair key, IngredientForm value)
 {
     pairs.Add(key, value);
 }