Microsoft.Zing.ProgramCounter.ProgramCounter C# (CSharp) Méthode

ProgramCounter() public méthode

public ProgramCounter ( ZingMethod method ) : System
method ZingMethod
Résultat System
        public ProgramCounter(ZingMethod method)
        {
            string name = method.MethodName;
            object o = methodNameTable[name];
            Hashtable blockTable = null;
            if (o == null)
            {
                methodNameTable[name] = ++methodCounter;
                blockTable = new Hashtable();
                methodBlockTable[name] = blockTable;
                methodNumberTable[methodCounter] = name;
                methodNumber = methodCounter;
            }
            else
            {
                blockTable = (Hashtable)methodBlockTable[name];
                methodNumber = (ushort)o;
            }

            nextBlock = method.NextBlock;
            blockTable[nextBlock] = method.ProgramCounter;
        }