البرمجة فى الألفية الثالثة

الطريق الصحيح لعالم البرمجة ... دع العميل يحلم ثم حقق أنت حلمه
 
HomeHome  ­CalendarCalendar  ­FAQFAQ  ­SearchSearch  ­RegisterRegister  ­Log inLog in  
Share | 
 

 Why ToString() function used after the object not before it.

View previous topic View next topic Go down 
AuthorMessage
MRamadan
Admin


عدد المساهمات: 5
تاريخ التسجيل: 2009-03-03

PostSubject: Why ToString() function used after the object not before it.   Tue Jun 02, 2009 2:33 pm

Why ToString() function used like this:

int x = 5;
string y = x.ToString();
==========================

But not that way:

int x = 5;
string y = ToString(x);
==========================

Althought all other functions used after the object not after the variable like that:

string y = "5";
int x = Convert.ToInt32(y);

I know why, Do you know ???
=================== Just tell us to share information.
Back to top Go down
 

Why ToString() function used after the object not before it.

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You cannot reply to topics in this forum
البرمجة فى الألفية الثالثة :: برمجةعامة :: لغة الــ #C-