According to Microsoft: "The" Direct "window is used during development to debug and evaluate expressions, execute statements, print variable values, etc."
Please note that he says "during development". I also read other statements on the Internet about this.
However, when someone asks why they get “expression cannot be evaluated in design mode”. error, everyone always claims that he works only in debug mode.
I understand that some things will not work in design mode when they refer to elements such as text field values. But I really don’t understand why I need to set a breakpoint, start my application and wait for it to get to the breakpoint to find out what 1 + 1 .
I admit disappointment as I come from Visual Basic 6.0. There I can type 1 + 1 and get 2 in development mode. I can also call public functions and get answers in development mode.
All this comes from my search for type conversion answers. Since I could not find the answer on the Internet, I decided that the quickest and easiest way was to simply check some REAL QUICK statements in the immediate window to see which one worked.
Is .NET a step backward when using the direct window?
Tom collins
source share