Skip to content

Commit dc0d861

Browse files
committed
Refactor, improve style
1 parent e57180c commit dc0d861

File tree

4 files changed

+334
-418
lines changed

4 files changed

+334
-418
lines changed

solution/GraphicalDebugging/Debugger.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,7 @@ public string GetValue(string valName)
204204
public Expression GetExpression(string valName)
205205
{
206206
var expr = debugger.GetExpression(valName);
207-
Expression result = new Expression();
208-
result.IsValid = expr.IsValidValue;
209-
result.Name = expr.Name;
207+
Expression result = new Expression { IsValid = expr.IsValidValue, Name = expr.Name };
210208
if (IsLanguageCpp)
211209
result.Type = Util.CppNormalizeType(expr.Type);
212210
else
@@ -277,6 +275,6 @@ public bool IsLanguageBasic
277275
get { return debugger.CurrentStackFrame.Language == "Basic"; }
278276
}
279277

280-
EnvDTE.Debugger debugger;
278+
readonly EnvDTE.Debugger debugger;
281279
}
282280
}

0 commit comments

Comments
 (0)