Late binding Outlook – VB.NET versus C#
Inca o data, cind e vorba de COM, VB este mult mai bun decit C#.Incercam sa creez un email cu Late binding in C#: Type app = Type.GetTypeFromProgID(“Outlook.Application”); object oApp = Activator.CreateInstance(app); object oNameSpace = app.GetMethod(“GetNamespace”).Invoke(oApp, new object[] { “MAPI” }); oNameSpace.GetType().GetMethod(“Logon”).Invoke(oNameSpace, new object[] { Type.Missing, Type.Missing, Type.Missing, Type.Missing}); Object mail = oApp.GetType().GetMethod(“CreateItem”).Invoke(oApp, new object[1] […]