-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: Ambrose
Message 1 in Discussion
Hi All, int i=123; object o=i; i=456; Console.WriteLine(o.ToString()); When the above
code is executed it is printing as 123, When i change into like below object i=new
string(new char[]{'1'}); object o=i; i="456"; Console.WriteLine(o.ToString()); Then
also it is printing 1. When I assign a ref type it is going to assign the reference
only. Then how this is showing the value as 1 it has to show as 456 only right. One
more question all objects are derived from System.object class so that all objects
will have the ToString() method. When declare a interger variable as int i=1234; Then
When I write i.ToString(); Its converting into string From where this ToString()
method came from coz i is a value type. I am Confused can some body explain me
clearly. Thanks Anandraj.A.
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]