M
Mythran
I have the following code:
[STAThread()]
public static void Main()
{
DoIt();
}
private void DoIt()
{
string text = "This is a string.";
// Place a breakpoint on the following line and debug.
Console.WriteLine("Text: " + text);
}
When I debug and break on the Console.WriteLine line, and then type in the
Command Window - Immediate pane the following:
? text.Substring(0, 2)
I get:
error: 'text.Substring' does not exist
Hmm, why?
Thanks,
Mythran
[STAThread()]
public static void Main()
{
DoIt();
}
private void DoIt()
{
string text = "This is a string.";
// Place a breakpoint on the following line and debug.
Console.WriteLine("Text: " + text);
}
When I debug and break on the Console.WriteLine line, and then type in the
Command Window - Immediate pane the following:
? text.Substring(0, 2)
I get:
error: 'text.Substring' does not exist
Hmm, why?
Thanks,
Mythran