Possible Duplicate:
Can you write a block of c++ code inside C#?
Is it possible to write C++ code inside of C# purely?
For example:
class MyClass
{
public void MyCSharpFunction(){Console.WriteLine("Hello World!");}
public void MyCPlusPlusFunction(){std::cout<<"Hello World"<<std::endl;}
}
I know that you can do this through DLL’s, however, I could not find any information about if it was possible to do this without the use of DLL’s.
You can use unsafe code, but not directly C++: