//public SyntaxReference Reference => _Symbol.DeclaringSyntaxReferences.FirstOrDefault(); public bool Equals(IBookmarkedSymbol other) { return(other != null && other.Kind == Kind && other.Name == Name && (ContainingType == other.ContainingType || ContainingType != null && other.ContainingType != null && ContainingType.Equals(other.ContainingType)) && (MemberType == other.MemberType || MemberType != null && other.MemberType != null && MemberType.Equals(other.MemberType))); }
public bool IsContainingType(string fullyQualifiedMetadataName) { return(ContainingType?.Equals(SemanticModel.GetTypeByMetadataName(fullyQualifiedMetadataName)) == true); }