We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e8446e commit 8fa5474Copy full SHA for 8fa5474
src/Ninject/Activation/InstanceReference.cs
@@ -35,8 +35,11 @@ public class InstanceReference
35
public bool Is<T>()
36
{
37
#if !SILVERLIGHT && !WINDOWS_PHONE && !NETCF
38
- if (System.Runtime.Remoting.RemotingServices.IsTransparentProxy(Instance) &&
39
- !object.ReferenceEquals(System.Runtime.Remoting.RemotingServices.GetRealProxy(Instance), Instance))
+ if (System.Runtime.Remoting.RemotingServices.IsTransparentProxy(Instance)
+#if !MONO
40
+ && !object.ReferenceEquals(System.Runtime.Remoting.RemotingServices.GetRealProxy(Instance), Instance)
41
+#endif
42
+ )
43
44
// ReSharper disable UseIsOperator.1
45
// ReSharper disable PossibleMistakenCallToGetType.1
0 commit comments