internal void Init(Object sender, string name, params object[] pairs)
        {
            Sender = sender;
            Name   = name;

            CAssert.IsTrue(pairs.Length % 2 == 0);
            for (int i = 0; i < pairs.Length;)
            {
                string key   = CClassUtils.Cast <string>(pairs [i++]);
                object value = pairs [i++];

                this.Set(key, value);
            }
        }
예제 #2
0
 protected void Unlock()
 {
     CAssert.IsTrue(locked);
     ClearRemoved();
     locked = false;
 }