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
 Feature Requests
 C#: Different colors for Reference/Value types
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tugudum
Starting Member

1 Posts

Posted - Oct 20 2009 :  3:16:18 PM  Show Profile  Reply with Quote
It would be nice to give different colors to, for one, structs and classes. The reason is that structs are value types and therefore, assignment operations copy the content of the struct whereas for classes, assignments only copy the reference to the object.
The different colors would help make things more obvious, as we are currently forced to check if we are using a struct or class to know the behavior of an assignment or parameter passing.

Then maybe immutable objects could be looked into also.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Nov 03 2009 :  6:49:56 PM  Show Profile  Reply with Quote
Are you aware that you can check the type of a symbol by placing the caret over it?



So it will be shown in the definition field as you can see on the screenshot.
This method can be used on any type or object. Maybe it is a little slower, but adding more colors can be disturbing and we would need a lot of colors to represent every important aspect. Recognizing a color may be faster, but definition field is universal.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Nov 04 2009 :  6:07:27 PM  Show Profile  Reply with Quote
As you may already know, tooltips can also be used to verify the type of a symbol. It is useful if you prefer using the mouse.
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