[ComImport, Guid("01234567-8901-234567890-b6d4df83120c")] class MyLocalCOM { } ... var myLocalCOM = (IMyLocalCOM)new MyLocalCOM();