示例#1
0
            //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)));
            }
示例#2
0
 public bool IsContainingType(string fullyQualifiedMetadataName)
 {
     return(ContainingType?.Equals(SemanticModel.GetTypeByMetadataName(fullyQualifiedMetadataName)) == true);
 }