Skip to content

Commit 8fa5474

Browse files
committed
Fix previous check in for MONO
1 parent 1e8446e commit 8fa5474

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Ninject/Activation/InstanceReference.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,11 @@ public class InstanceReference
3535
public bool Is<T>()
3636
{
3737
#if !SILVERLIGHT && !WINDOWS_PHONE && !NETCF
38-
if (System.Runtime.Remoting.RemotingServices.IsTransparentProxy(Instance) &&
39-
!object.ReferenceEquals(System.Runtime.Remoting.RemotingServices.GetRealProxy(Instance), Instance))
38+
if (System.Runtime.Remoting.RemotingServices.IsTransparentProxy(Instance)
39+
#if !MONO
40+
&& !object.ReferenceEquals(System.Runtime.Remoting.RemotingServices.GetRealProxy(Instance), Instance)
41+
#endif
42+
)
4043
{
4144
// ReSharper disable UseIsOperator.1
4245
// ReSharper disable PossibleMistakenCallToGetType.1

0 commit comments

Comments
 (0)