Skip to content

Instantly share code, notes, and snippets.

View domartynov's full-sized avatar

Dmitry Martynov domartynov

  • @stash-invest
  • New York, NY
View GitHub Profile
using ...
static void Main(string[] args)
{
var x = (Microsoft.Office.Interop.Excel._Application) Marshal.GetActiveObject("Excel.Application");
x.ChartDataPointTrack = false;
MapperRegistry.Mappers.Add(new ComObjectMapper());
var config = new MapperConfiguration(c => c.CreateMap<Microsoft.Office.Interop.Excel._Application, App>());
config.AssertConfigurationIsValid();
var mapper = config.CreateMapper();