-6

Why we need CLR Hosting? Can I do CLR Hosting using C#? If yes then please give an example.

1 Answers1

6

CLR hosting is when you have a native application which wants to run the CLR within the same process. It makes no sense to talk about CLR hosting using C#, as you're already running the CLR if you're running C# code (beyond some very strange situations).

Basically, if you need to ask about it, you almost certainly don't need to do it.

See MSDN for more information.

Jon Skeet
  • 1,421,763
  • 867
  • 9,128
  • 9,194