DeftTech.DuckTyping.DelegateDuckProxyType.WrapDuck C# (CSharp) Method

WrapDuck() public method

Calls the static WrapDuck method of the generated proxy type to initialize a new instance of the proxy type with a given duck delegate and return a delegate to its invoke method.
public WrapDuck ( Delegate duck ) : Delegate
duck System.Delegate Duck delegate that the new proxy object should forward calls to.
return System.Delegate
        public Delegate WrapDuck(Delegate duck)
        {
            GenerateProxyType();

            return m_WrapDuck(duck);
        }