System.Xml.Xsl.IlGen.XmlILModule.CreateDelegate C# (CSharp) Method

CreateDelegate() public method

Wrap a delegate around a MethodInfo of the specified name and type and return it.
public CreateDelegate ( string name, Type typDelegate ) : Delegate
name string
typDelegate Type
return Delegate
        public Delegate CreateDelegate(string name, Type typDelegate)
        {
            if (!_useLRE)
                return ((MethodInfo)_methods[name]).CreateDelegate(typDelegate);

            return ((DynamicMethod)_methods[name]).CreateDelegate(typDelegate);
        }