Ejemplo n.º 1
0
 public UserSecurityKeyArray(UserSecurityKey[] mdo)
 {
     if (mdo == null)
     {
         return;
     }
     keys = new UserSecurityKeyTO[mdo.Length];
     for (int i = 0; i < mdo.Length; i++)
     {
         keys[i] = new UserSecurityKeyTO(mdo[i]);
     }
     count = mdo.Length;
 }
Ejemplo n.º 2
0
 public UserSecurityKeyArray(UserSecurityKey[] mdo)
 {
     if (mdo == null)
     {
         return;
     }
     keys = new UserSecurityKeyTO[mdo.Length];
     for (int i = 0; i < mdo.Length; i++)
     {
         keys[i] = new UserSecurityKeyTO(mdo[i]);
     }
     count = mdo.Length;
 }
Ejemplo n.º 3
0
 public UserSecurityKeyArray(Dictionary<string, AbstractPermission> mdo)
 {
     if (mdo == null)
     {
         return;
     }
     keys = new UserSecurityKeyTO[mdo.Count];
     int i = 0;
     foreach (KeyValuePair<string, AbstractPermission> kvp in mdo)
     {
         keys[i++] = new UserSecurityKeyTO(kvp.Value);
     }
     count = mdo.Count;
 }
Ejemplo n.º 4
0
        public UserSecurityKeyArray(Dictionary <string, AbstractPermission> mdo)
        {
            if (mdo == null)
            {
                return;
            }
            keys = new UserSecurityKeyTO[mdo.Count];
            int i = 0;

            foreach (KeyValuePair <string, AbstractPermission> kvp in mdo)
            {
                keys[i++] = new UserSecurityKeyTO(kvp.Value);
            }
            count = mdo.Count;
        }