internal VariableDebugInformation(int index, string name) { if (name == null) { throw new ArgumentNullException("name"); } this.index = new VariableIndex(index); this.name = name; }
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); }