Browse Source

fixed exception 2683

pull/18/head
Siegfried Pammer 14 years ago
parent
commit
3921508dc8
  1. 6
      src/AddIns/Debugger/Debugger.AddIn/Pads/WatchInputBox.xaml.cs

6
src/AddIns/Debugger/Debugger.AddIn/Pads/WatchInputBox.xaml.cs

@ -46,8 +46,8 @@ namespace Debugger.AddIn.Pads @@ -46,8 +46,8 @@ namespace Debugger.AddIn.Pads
// FIXME set language
if (language == "VB" || language == "VBNet") {
console.SetHighlighting("VBNET");
}
else {
} else {
language = "C#";
console.SetHighlighting("C#");
}
@ -111,7 +111,7 @@ namespace Debugger.AddIn.Pads @@ -111,7 +111,7 @@ namespace Debugger.AddIn.Pads
language = "CSharp";
}
SupportedLanguage supportedLanguage = (SupportedLanguage)Enum.Parse(typeof(SupportedLanguage), language.ToString(), true);
SupportedLanguage supportedLanguage = (SupportedLanguage)Enum.Parse(typeof(SupportedLanguage), language, true);
using (var parser = ParserFactory.CreateParser(supportedLanguage, new StringReader(command))) {
parser.ParseExpression();
if (parser.Errors.Count > 0) {

Loading…
Cancel
Save