Пример #1
0
        private void PopulateDynamicArguments(ConfigDynamicArguments source, ConfigDynamicArguments target)
        {
            List <string> list = new List <string>(target.Keys);

            foreach (string str in list)
            {
                string str2 = target[str] as string;
                if ((str2 != null) && (str2[0] == '%'))
                {
                    string str3 = str2.Substring(1);
                    target[str] = source[str3];
                }
            }
        }
Пример #2
0
 private void PopulateDynamicFloat(ConfigDynamicArguments source, DynamicFloat df)
 {
     if (df.isDynamic)
     {
         object obj2 = source[df.dynamicKey];
         if (obj2 is int)
         {
             df.fixedValue = (int)obj2;
         }
         else
         {
             df.fixedValue = (float)obj2;
         }
         df.isDynamic  = false;
         df.dynamicKey = null;
     }
 }