-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: commander4u
Message 3 in Discussion

Hi, 
I suppose both are same... string is the C# provided Keyword for
declaring object which is type of String.  String is the Type provided
by .NET framework. Also check the IL code produce by the Bellow code:
==Class
public class StringCheck
{
        public StringCheck()
        {
                string Name1 = "ABC" ;
                String Name2 = "DEF" ;
        }
}
==IL

.method public hidebysig specialname rtspecialname 
        instance void  .ctor() cil managed
{
  // Code size       19 (0x13)
  .maxstack  1
  .locals init (string V_0,
           string V_1)
  IL_0000:  ldarg.0
  IL_0001:  call       instance void [mscorlib]System.Object::.ctor()
  IL_0006:  ldstr      "ABC"
  IL_000b:  stloc.0
  IL_000c:  ldstr      "DEF"
  IL_0011:  stloc.1
  IL_0012:  ret
} // end of method StringCheck::.ctor

thanks and regards,
Ashish




On Wed, 29 Sep 2004 03:44:27 -0700, BDOTNET <[EMAIL PROTECTED]> wrote:
> -----------------------------------------------------------
> 
> New Message on BDOTNET
> 
> -----------------------------------------------------------
> From: raagz
> Message 1 in Discussion
> 
> Hi,
> 
> What's the difference between string and String in .NET
> 
> string Name = "test";
> String Name2 = "test123";
> 
> Are both the statements same ?
> 
> Raagz
> 
> -----------------------------------------------------------
> 
> 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]
> 



-- 
regards,
Ashish Sheth


-----------------------------------------------------------

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]

Reply via email to