Click here to Skip to main content
15,891,248 members
Home / Discussions / C#
   

C#

 
AnswerRe: What is an Integer Pin
Abhinav S31-Aug-11 19:12
Abhinav S31-Aug-11 19:12 
GeneralRe: What is an Integer Pin
Anubhava Dimri31-Aug-11 20:10
Anubhava Dimri31-Aug-11 20:10 
GeneralRe: What is an Integer Pin
Roger Wright31-Aug-11 21:04
professionalRoger Wright31-Aug-11 21:04 
GeneralRe: What is an Integer Pin
Pete O'Hanlon31-Aug-11 21:09
mvePete O'Hanlon31-Aug-11 21:09 
GeneralRe: What is an Integer Pin
Roger Wright31-Aug-11 21:27
professionalRoger Wright31-Aug-11 21:27 
GeneralRe: What is an Integer Pin
Anubhava Dimri1-Sep-11 18:24
Anubhava Dimri1-Sep-11 18:24 
GeneralRe: What is an Integer Pin
Roger Wright1-Sep-11 20:05
professionalRoger Wright1-Sep-11 20:05 
GeneralRe: What is an Integer Pin
MicroVirus3-Sep-11 18:26
MicroVirus3-Sep-11 18:26 
Roger Wright wrote:
While C# recognizes a string type, it is internally converted to a .Net String class. I'm not certain whether this happens with int types, converting to Int classes, but it wouldn't surprise me.


Actually, when and how this is done is understood when reading about boxing and unboxing of types (http://msdn.microsoft.com/en-us/library/yz2be5wk.aspx[^]).

According to MSDN, a struct is a specific value type; specifically, an integer is a struct. A string is a reference type (class).
At any rate, all the C# names are just aliases for .NET types. Value types are stored in a 'raw' format until they are needed 'as objects' (such as when you call a method of Int32 on an integer variable): they are boxed into a proper class and then acted on.
GeneralRe: What is an Integer Pin
Pete O'Hanlon31-Aug-11 21:04
mvePete O'Hanlon31-Aug-11 21:04 
AnswerRe: What is an Integer Pin
V.1-Sep-11 1:22
professionalV.1-Sep-11 1:22 
GeneralRe: What is an Integer Pin
Luc Pattyn1-Sep-11 2:31
sitebuilderLuc Pattyn1-Sep-11 2:31 
AnswerRe: What is an Integer Pin
PIEBALDconsult1-Sep-11 3:10
mvePIEBALDconsult1-Sep-11 3:10 
GeneralRe: What is an Integer Pin
Shameel1-Sep-11 6:00
professionalShameel1-Sep-11 6:00 
GeneralRe: What is an Integer Pin
Roger Wright1-Sep-11 20:08
professionalRoger Wright1-Sep-11 20:08 
QuestionC#.net object reference error Pin
dcof31-Aug-11 11:32
dcof31-Aug-11 11:32 
AnswerRe: C#.net object reference error Pin
Eddy Vluggen31-Aug-11 11:59
professionalEddy Vluggen31-Aug-11 11:59 
QuestionTextbox onTextChanged method. Pin
vanikanc31-Aug-11 9:59
vanikanc31-Aug-11 9:59 
AnswerRe: Textbox onTextChanged method. Pin
#realJSOP31-Aug-11 10:08
mve#realJSOP31-Aug-11 10:08 
GeneralRe: Textbox onTextChanged method. Pin
vanikanc31-Aug-11 10:13
vanikanc31-Aug-11 10:13 
AnswerRe: Textbox onTextChanged method. Pin
Luc Pattyn31-Aug-11 12:51
sitebuilderLuc Pattyn31-Aug-11 12:51 
GeneralRe: Textbox onTextChanged method. Pin
BillWoodruff2-Sep-11 2:21
professionalBillWoodruff2-Sep-11 2:21 
QuestionObserver Design Patterns! Pin
borges0231-Aug-11 8:52
borges0231-Aug-11 8:52 
AnswerRe: Observer Design Patterns! Pin
Pete O'Hanlon31-Aug-11 9:22
mvePete O'Hanlon31-Aug-11 9:22 
QuestionWhat's the difference between Proxy Patterns and Observer Patterns? Pin
borges0231-Aug-11 7:44
borges0231-Aug-11 7:44 
AnswerRe: What's the difference between Proxy Patterns and Observer Patterns? Pin
Abhinav S31-Aug-11 8:00
Abhinav S31-Aug-11 8:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.