static string GetVariableName(VariableDefinition variable, MethodBody body) { string name; if (body.Method.DebugInformation.TryGetName (variable, out name)) return name; return variable.ToString (); }