public static void Unregister(Type type) { UnregisterFunction(type); ExcelProvider.UnregisterProvider <AddIn>(); }