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
 C# enum completion
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

znakeeye
Tomato Guru

379 Posts

Posted - Mar 08 2010 :  09:34:58 AM  Show Profile  Reply with Quote
Consider this line of code:
new FileStream(filename, FileMode.CreateNew);


After typing the comma I would expect VAX to produce this:
new FileStream(filename, FileMode.|)


Of course, this would only be possible if there are no overloads with a different second parameter.

feline
Whole Tomato Software

United Kingdom
19009 Posts

Posted - Mar 08 2010 :  1:58:52 PM  Show Profile  Reply with Quote
In this situation after typing the comma and a space VA should suggest the enum type, but it should not insert it. You might be passing an enum item, but you might be passing a local variable, function return type, or something else.

zen is the art of being at one with the two'ness
Go to Top of Page

tomicrow
Starting Member

1 Posts

Posted - Feb 23 2015 :  01:53:27 AM  Show Profile  Reply with Quote
Check this one....a complete tutorial on Enum

http://csharp.net-informations.com/statements/enum.htm

Tomi
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19009 Posts

Posted - Feb 24 2015 :  11:55:13 PM  Show Profile  Reply with Quote
The default suggestion should be the enum type, so you can simply accept it if that is what you want. In this situation, if the enum type is inserted by default then you have to delete it when you want to use a function call or variable as the second parameter.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000