Beispiel #1
0
        protected AbstractLinkContainerOld createLinkContainer(Type registryType, Object[] arguments)
        {
            Object[]         linkArguments;
            MethodInfo[]     methods       = ExtendableRegistry.GetAddRemoveMethods(registryType, arguments, out linkArguments);
            LinkContainerOld linkContainer = new LinkContainerOld();

            linkContainer.AddMethod    = methods[0];
            linkContainer.RemoveMethod = methods[1];
            linkContainer.Arguments    = linkArguments;
            return(linkContainer);
        }
Beispiel #2
0
        protected AbstractLinkContainerOld createLinkContainer(Type registryType, String methodName)
        {
            Object[]         linkArguments;
            MethodInfo[]     methods       = ExtendableRegistry.GetAddRemoveMethods(registryType, null, out linkArguments);
            LinkContainerOld linkContainer = new LinkContainerOld();

            linkContainer.AddMethod    = methods[0];
            linkContainer.RemoveMethod = methods[1];
            linkContainer.Arguments    = linkArguments;
            if (methodName != null)
            {
                linkContainer.Listener = new LateDelegate(methods[0].GetParameters()[0].ParameterType, methodName);
            }
            return(linkContainer);
        }