public Variable ReadVariable(ISymbolVariable symVar)
        {
            Variable varData = new Variable();

            varData.name = symVar.Name;

            // Each local maps to a unique "IL Index" or "slot" number.
            // This index is what you pass to ICorDebugILFrame::GetLocalVariable() to get
            // a specific local variable.
            Debug.Assert(symVar.AddressKind == SymAddressKind.ILOffset);
            varData.ilIndex = symVar.AddressField1;

            varData.attributes = (int)symVar.Attributes;

            Byte[] b_signature = symVar.GetSignature();
            varData.signature = Util.ToHexString(b_signature);

            return(varData);
        }
Exemple #2
0
        public Variable ReadVariable(ISymbolVariable symVar)
        {
            Variable varData = new Variable();
            varData.name = symVar.Name;

            // Each local maps to a unique "IL Index" or "slot" number.
            // This index is what you pass to ICorDebugILFrame::GetLocalVariable() to get
            // a specific local variable.
            Debug.Assert(symVar.AddressKind == SymAddressKind.ILOffset);
            varData.ilIndex = symVar.AddressField1;

            varData.attributes = (int)symVar.Attributes;

            Byte[] b_signature = symVar.GetSignature();
            varData.signature = Util.ToHexString(b_signature);

            return varData;
        }