kschaab
Tomato Guru
USA
118 Posts |
Posted - Feb 18 2004 : 4:53:19 PM
|
When insert closing parenthesis is turned on and you type typeof( in C# inside nested parenthesis typeof places the matched parenthesis and then places the cursor outside of the closing parenthesis.
For example if you have void Foo(Type myType) and you create code that calls this function:
void Foo(typeof(Foo));
when you type Foo( the closing parenthesis is inserted automatically and cursor is placed inside parenthesis. When you type typeof( closing parenthesis and cursor is placed outside parenthesis. So you wind up with void Foo(typeof()<cursor insertion point)
Expected behavior would be that cursor would be in-between the two nested parenthesis to enter the parameter for typeof operator. I'm not sure if this is the case for nested method calls. |
|