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; }
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); }