Is the .NET framework written in C#?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Recently during a casual conversation a co-worker of mine told me "Did you
know that the .NET framework is actually written in C#, and that when you run
a VB.NET application the framework actually has to translate VB into C# at
run-time?"

Is this true? Thanks.
 
¤ Recently during a casual conversation a co-worker of mine told me "Did you
¤ know that the .NET framework is actually written in C#, and that when you run
¤ a VB.NET application the framework actually has to translate VB into C# at
¤ run-time?"
¤
¤ Is this true? Thanks.

I believe that most of the .NET Framework was written in C++ and some in C#.

Both VB.NET and C# code is pre-compiled to MSIL (Microsoft Intermediate Language). At execution time
the MSIL code is converted to native code by the JIT (just-in-time) compiler.


Paul
~~~~
Microsoft MVP (Visual Basic)
 
Its true that most of the .NET class library was written in C#. However this does not make your co-worker's warnings valid. Once compiled the C# is translated in IL and this is what is deployed. When you write a VB.NET application and compile it, it is translated to IL. Once this has happened there is nothing left of the source language in either case. The runtime works only in IL, JIT compiling this into machine code as it executes

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

Recently during a casual conversation a co-worker of mine told me "Did you
know that the .NET framework is actually written in C#, and that when you run
a VB.NET application the framework actually has to translate VB into C# at
run-time?"

Is this true? Thanks.
 
While most of the classes in the BCL were developed using C#, VB.NET code is
not converted to C# at runtime. VB.NET language code is compiled to MSIL and
used by CLR and other languages.

Recently during a casual conversation a co-worker of mine told me "Did you
know that the .NET framework is actually written in C#, and that when you
run
a VB.NET application the framework actually has to translate VB into C# at
run-time?"

Is this true? Thanks.
 
No, none of the framework parts written in Java.

If you are looking for Java-like language support in .NET for developing
applications, then check J#.

What about java?, do .net library have java as well ??
 
Mike said:
Recently during a casual conversation a co-worker of mine told me
"Did you know that the .NET framework is actually written in C#, and

The Shared Source CLI (Rotor) is a 'cleaned up' version of the runtime
(ie Microsoft have taken out many of the comments and replaced some of
the code that they don't want you to see <g>). The framework library is
all written in C#. The runtime is written in C++. There's not a single
bit of VB.NET code in it. Enough said.
that when you run a VB.NET application the framework actually has to
translate VB into C# at run-time?"

Is this true? Thanks.

No that is complete rubbish. VB.NET is compiled to IL just as C# is.
There's no intermediate 'translation to C#'.

Richard
 
Back
Top