private MethodMetadata InitializeDuckTypeMethod(MethodInfo method)
        {
            var targetMethod = MemberLocator.LocateMatchingMethod(method, _proxyDefinition.Type);

            if (targetMethod == null)
            {
                // TODO: Fix
                throw new Exception();
            }

            var methodMetadata = new DuckTypeMethodMetadata(method, targetMethod);

            methodMetadata.UseExplicitInterfaceImplementation();

            _methods.Add(methodMetadata);

            return methodMetadata;
        }
 public DuckTypeMethodGenerator(DuckTypeMethodMetadata methodMetadata)
 {
     _methodMetadata = methodMetadata;
 }