Example #1
0
        public void RemoveValueFromArray(string Key, int Index)
        {
            var c = RawData.FindValue(Key + ".Count");

            if (c == null)
            {
            }
            else
            {
                var C   = int.Parse(c);
                var arr = new List <string>(GetValueArray(Key));
                arr.RemoveAt(Index);
                for (int i = Index; i < C; i++)
                {
                    RawData.DeleteKey(Key + "." + i, false);
                }
                RawData.Flush();
                SetValueArray(Key, arr.ToArray());
            }
        }
Example #2
0
 /// <summary>
 /// Remove a route definition
 /// </summary>
 /// <param name="Key"></param>
 public static void RemoveRoute(string Key)
 {
     Map.Remove(Key);
     RouteLocationMap.DeleteKey(Key, true);
 }