Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 VAX 1216 C# typeof operator problems
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

kschaab
Tomato Guru

USA
118 Posts

Posted - Feb 18 2004 :  4:53:19 PM  Show Profile
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.
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000