#include "edge.h" void Dictionary::Add(MonoObject* _this, const char* name, MonoObject* value) { static MonoMethod* add; if(!add) { add = mono_class_get_method_from_name(mono_object_get_class(_this), "System.Collections.Generic.IDictionary.Add", -1); } void* params[2]; params[0] = mono_string_new(mono_domain_get(), name); params[1] = value; mono_runtime_invoke(add, _this, params, NULL); }