Exemple #1
0
        public void UnBindAsProxy(int slotNumber, ItemRepresentation itemRep)
        {
            switch (slotNumber)
            {
            case 0:
            {
                itemRep.UnBindModAsProxy(ref this.a);
                break;
            }

            case 1:
            {
                itemRep.UnBindModAsProxy(ref this.b);
                break;
            }

            case 2:
            {
                itemRep.UnBindModAsProxy(ref this.c);
                break;
            }

            case 3:
            {
                itemRep.UnBindModAsProxy(ref this.d);
                break;
            }

            case 4:
            {
                itemRep.UnBindModAsProxy(ref this.e);
                break;
            }

            default:
            {
                throw new IndexOutOfRangeException();
            }
            }
        }