File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Source/ExcelDna.IntelliSense Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -500,9 +500,9 @@ static RegistrationInfo GetHighestPublishedRegistration()
500500
501501 static void RegisterControlMacro ( )
502502 {
503- var method = typeof ( IntelliSenseServer ) . GetMethod ( nameof ( IntelliSenseServerControl ) , BindingFlags . Static | BindingFlags . NonPublic ) ;
503+ Func < object , object > delControl = control => IntelliSenseServerControl ( control ) ;
504504 var name = RegistrationInfo . GetControlMacroName ( _serverId ) ;
505- ExcelIntegration . RegisterMethods ( new List < MethodInfo > { method } ,
505+ ExcelIntegration . RegisterDelegates ( new List < Delegate > { delControl } ,
506506 new List < object > { new ExcelCommandAttribute { Name = name } } , // Macros in .xlls are always hidden
507507 new List < List < object > > { new List < object > { null } } ) ;
508508 // No Unregistration - that will happen automatically (and is only needed) when we are unloaded.
You can’t perform that action at this time.
0 commit comments