Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- object _comObject;
- Type _comObjectType;
- _comObjectType = Type.GetTypeFromProgID("MyCompany.MyApplication.MyObject", true);
- _comObject = Activator.CreateInstance(_comObjectType);
- string name = (string)_comObjectType.InvokeMember("GetCustomerName", BindingFlags.InvokeMethod, null, _comObject, , new object [] { _customerId });
- MyCompany.MyApplication.MyObject obj = new MyObject();
- string name = obj.GetCustomerName(_customerId);
Add Comment
Please, Sign In to add comment