[Mono-dev] Mono C++/CLI lib

Bruno Lauze brunolauze at msn.com
Mon Aug 4 14:18:24 UTC 2014


Hi,

I've written a start to produce C++ api for mono assemblies.

You  can have a look at the code at https://github.com/brunolauze/MonoNative


Here's an example:

using namespace mscorlib::System; 
using namespace mscorlib::System::Collections::Generic;

var *list = new List<String>();
list->Add(String("TEST"));
int count = list->Count;
if (count == 0) 
{ 
	Console::WriteLine("Added TEST String"); 
}
list->Clear(); 
count = list->Count;
if (count == 0) { 
	Console::WriteLine("Clear done"); 
}

Of course there's probably a lot of issues right now. But I see improving
the Generator have a seemless .NET framework in C++.

Please let me know your opinions on this, 


Thanks,


More information about the Mono-devel-list mailing list