Пример #1
0
 private static void AddDefaultBank(ref int i, bool reserved, string desc)
 {
     DefaultAllocation[i] = new BankAllocation(i)
     {
         Reserved = reserved, Description = desc
     };
     i++;
 }
Пример #2
0
        public static BankAllocation[] CreateNewAllocationTable()
        {
            BankAllocation[] result = new BankAllocation[MMC3BankCount];
            for (int i = 0; i < DefaultAllocation.Length; i++)
            {
                result[i] = (BankAllocation)DefaultAllocation[i].MemberwiseClone();
            }

            return(result);
        }