Re: Is there a difference between the C# "int" and System.Int32 ???

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: C Newby (can_at_democracydata.com)
Date: 08/25/04


Date: Wed, 25 Aug 2004 15:15:26 -0400

Thanks Jon. I looked around a little on MSDN as to how Int32 is handled by
the runtime, but I didn't see anything. Could you either elaborate on the
subject some more or direct me to a reference? Thanks again//

"Jon Skeet [C# MVP]" <skeet@pobox.com> wrote in message
news:MPG.1b96f3a95e1c73cc98b2d0@msnews.microsoft.com...
> C Newby <can@democracydata.com> wrote:
> > That is as I thought.
> >
> > But I was wondering ... so far as I remember, there was an intrinsic
> > integer type in Java. Is there any reason to think that the .NET
> > implementation of integers would suffer from performance problems (in
> > comparison to Java), even if only slightly? Or is the Java
> > implementation in fact the same and I'm just remembering it
> > incorrectly?
>
> No, System.Int32 is still treated differently by the compiler and IL.
> Each type in .NET is a "proper" type though, including value types.
>
> --
> Jon Skeet - <skeet@pobox.com>
> http://www.pobox.com/~skeet
> If replying to the group, please do not mail me too



Relevant Pages

  • Re: Want to switch from J# to C# - need help
    ... One of the fastest way to get some information about a class is to use google ... (if you haven't installed the MSDN library on your machine). ... >> (the word completion tool alone makes J# better than any other Java ... >> Specifically I'm talking about the Java API. ...
    (microsoft.public.dotnet.languages.csharp)
  • Questions about VS.net
    ... How similar is it to Java? ... good intro book on Java get me started enough to continue learning J# via ... I have a question about the whole managed code thing. ... One more thing, the MSDN seems to be chock full of info on the matter, but ...
    (microsoft.public.vstudio.development)
  • Re: Matrix Wanted
    ... "John C. Bollinger" wrote ... Thank you for your elaborate answer to my question. ... implementation of both solutions you gave in Java and I intend to present it to ...
    (comp.lang.java.programmer)
  • Re: One module per class, bad idea?
    ... Saying it is a bad idea and not explaining why will not help anyone. ... would like you to elaborate on why it is a bad idea to have one file ... lot of classes per file and this, imho, is a great advantage of Python ... If you come from Java feel free to use the Java approach. ...
    (comp.lang.python)
  • Re: Want to switch from J# to C# - need help
    ... > (the word completion tool alone makes J# better than any other Java ... Word completion as in completion of variables, ... MSDN is the way to go. ...
    (microsoft.public.dotnet.languages.csharp)