c# - What exactly is "managed" code? -


i've been writing c / c++ code twenty years, , know perl, python, php, , java well, , i'm teaching myself javascript. i've never done .net, vb, or c# stuff. managed code mean?

wikipedia describes it as

code executes under management of virtual machine

and says java (usually) managed code, so

  • why term seem apply c# / .net?
  • can compile c# .exe contains vm well, or have package , give .exe (a la java)?

in similar vein,

  • is .net language or framework, , "framework" mean here?

ok, that's more 1 question, who's been in industry long have, i'm feeling rather n00b-ish right now...

when compile c# code .exe, compiled common intermediate language(cil) bytecode. whenever run cil executable executed on microsofts common language runtime(clr) virtual machine. no, not possible include vm withing .net executable file. must have .net runtime installed on client machines program running.

to answer second question, .net framework, in set of libraries, compilers , vm not language specific. can code on .net framework in c#, vb, c++ , other languages have .net compiler.

https://bitbucket.org/brianritchie/wiki/wiki/.net%20languages

the above page has listing of languages have .net versions, links pages.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -