AgentMulder.Containers.Autofac.Patterns.RegisterLambdaExpression.IsReferenceToSystemObject C# (CSharp) Method

IsReferenceToSystemObject() private static method

private static IsReferenceToSystemObject ( IPredefinedTypeReference reference ) : bool
reference IPredefinedTypeReference
return bool
        private static bool IsReferenceToSystemObject(IPredefinedTypeReference reference)
        {
            if (reference != null)
            {
                var result = reference.Reference.Resolve().Result.DeclaredElement as ITypeElement;
                if (result != null)
                {
                    return result.GetClrName().Equals(clrObjectName);
                }
            }

            return false;
        }