Esempio n. 1
0
        public static LinkedArrays NewLinkedArrays(int depth)
        {
            if (depth < 1)
            {
                return(null);
            }
            var la = new LinkedArrays();

            depth--;
            if (depth < 1)
            {
                return(la);
            }
            la._next                 = NewLinkedArrays(depth);
            la._objectArray          = new object[] { NewItem(depth) };
            la._untypedArray         = new object[] { NewItem(depth) };
            la._stringArray          = new[] { depth.ToString() };
            la._intArray             = new[] { depth + 1 };
            la._itemArray            = new[] { NewItem(depth) };
            la._activatableItemArray = new[]
            {
                NewActivatableItem
                    (depth)
            };
            la._linkedArrays = new[] { NewLinkedArrays(depth) };
            return(la);
        }
Esempio n. 2
0
        public static LinkedArrays NewLinkedArrayRoot(int depth)
        {
            LinkedArrays root = NewLinkedArrays(depth);

            root._isRoot = true;
            return(root);
        }
Esempio n. 3
0
 public static LinkedArrays NewLinkedArrays(int depth)
 {
     if (depth < 1)
     {
         return null;
     }
     var la = new LinkedArrays();
     depth--;
     if (depth < 1)
     {
         return la;
     }
     la._next = NewLinkedArrays(depth);
     la._objectArray = new object[] {NewItem(depth)};
     la._untypedArray = new object[] {NewItem(depth)};
     la._stringArray = new[] {depth.ToString()};
     la._intArray = new[] {depth + 1};
     la._itemArray = new[] {NewItem(depth)};
     la._activatableItemArray = new[]
     {
         NewActivatableItem
             (depth)
     };
     la._linkedArrays = new[] {NewLinkedArrays(depth)};
     return la;
 }
Esempio n. 4
0
 public ActivatableItem(int depth)
 {
     if (depth > 1)
     {
         _name         = depth.ToString();
         _linkedArrays = NewLinkedArrays(depth - 1);
     }
 }
Esempio n. 5
0
			public ActivatableItem(int depth)
			{
				if (depth > 1)
				{
					_name = depth.ToString();
					_linkedArrays = NewLinkedArrays(depth - 1);
				}
			}