Fix for DYNPROXY-188 CreateInterfaceProxyWithoutTarget fails with interface containing member with 'ref UIntPtr'
Fixed DYNPROXY-186 .Net remoting (transparent proxy) cannot be proxied

1- Ensure to validate that the interfaceToProxy member is not null
before using it.

2- Was throwing for this conditon (if (target != null &&
interfaceToProxy.IsInstanceOfType(target) == false)) at the beginning of
the method. There was no need to check this again in the method. In
fact, the code
done in this if would never be executed, it would have been an
exception.

3- This call interfaceToProxy.IsInstanceOfType(target) already
validated that in the case of a transparent proxy, the target implement
the interface. The call IsInstanceOfType is done on the real object (not
the transparent proxy created by .net remoting).

Note : Kept the COM code there, but no idea if it's used by anyone since
I did
not find any issue/defect for lack of support of COM and it was not
working since release 3.1.0 RC.

TEST
Test done on an test application, hard to have a unit test for .net
remoting issue.
Ran Unit Test
Merge pull request #25 from jcviau/master

Fixed DYNPROXY-186 .Net remoting (transparent proxy) cannot be proxied
Fixed Proxy of COM class issue, reference count incremented

Calls to Marshal.GetIUnknownForObject and Marshal.QueryInterface
increment the reference count but the code was not decrementing it. This
could cause major leak since the COM object would not be
destroyed/released (reference count never reaching 0).

As stated in MSDN documentation for both method: "Always use
Marshal.Release to decrement the reference count once you have finished
with the pointer."

TEST: break in atlcom.h (InternalAddRef, InteralRelease) to ensure the
reference count is valid.

NOTE : this problem appeared after commit to fix DYNPROXY-186, before
the code related to COM was not executed.
Merge pull request #26 from jcviau/master

Fixed proxy of COM class issue, reference count incremented
Merge pull request #22 from Pjanssen/master

Fix for DYNPROXY-188
Patch to allow dynamic proxy of generic interfaces which have generic methods, under Mono 2.10.8 and Mono 3.0.6
Cleanup to standards
Merge pull request #27 from i-e-b/master

Generic interfaces with generic methods: Mono
Fixed result of IProxyTargetAccessor.DynProxyGetTarget() for ClassProxyWithTarget
http://issues.castleproject.org/youtrack/issue/DYNPROXY-185
minor indentation fix
Merge pull request #29 from d-s-x/master

DYNPROXY-185 Fixed