コード例 #1
0
 public void LoadFromString(ConditionKindTable allConditionKinds, string conditionIDs)
 {
     char[] separator = new char[] { ' ', '\n', '\r', '\t' };
     string[] strArray = conditionIDs.Split(separator, StringSplitOptions.RemoveEmptyEntries);
     ConditionKind kind = null;
     for (int i = 0; i < strArray.Length; i++)
     {
         if (allConditionKinds.ConditionKinds.TryGetValue(int.Parse(strArray[i]), out kind))
         {
             this.AddConditionKind(kind);
         }
     }
 }
コード例 #2
0
        public void LoadFromString(ConditionKindTable allConditionKinds, string conditionIDs)
        {
            char[]        separator = new char[] { ' ', '\n', '\r', '\t' };
            string[]      strArray  = conditionIDs.Split(separator, StringSplitOptions.RemoveEmptyEntries);
            ConditionKind kind      = null;

            for (int i = 0; i < strArray.Length; i++)
            {
                if (allConditionKinds.ConditionKinds.TryGetValue(int.Parse(strArray[i]), out kind))
                {
                    this.AddConditionKind(kind);
                }
            }
        }