Possible Duplicate:
Why do primitive types in C# have their own operations?
I’m learning C# and I find following code confusing:
int.Parse();
How can primitive data types have functions ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Primitive types are actually
structobjects in C#.In the case of the int, it is represents by a Int32 struct. You can actually see it easily by hovering the
intword:Int32 structure