Пример #1
0
        internal VariableDebugInformation(int index, string name)
        {
            if (name == null)
            {
                throw new ArgumentNullException("name");
            }

            this.index = new VariableIndex(index);
            this.name  = name;
        }
Пример #2
0
        public VariableDebugInformation(VariableDefinition variable, string name)
        {
            if (variable == null)
            {
                throw new ArgumentNullException("variable");
            }
            if (name == null)
            {
                throw new ArgumentNullException("name");
            }

            this.index = new VariableIndex(variable);
            this.name  = name;
            this.token = new MetadataToken(TokenType.LocalVariable);
        }