View Single Post
  #6 (permalink)  
Old August 24th, 2014, 07:01 AM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,
Quote:
I'm guessing this is because Button is a control, like List is?
No, that's not it. int and bool turn dark blue because they are C# types; shortcuts for types in .NET. If you were to change int to Int32 (the corresponding .NET type) and bool to Boolean, they would turn light-blue as well.

BTW: List is not a control. It's a type that can be used anywhere in any .NET application and can hold objects of a specific type.

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote