Exemple #1
0
 /// <summary>
 /// Constructs.
 /// </summary>
 /// <param name="compilation">The compilation containing the types to be compared.</param>
 public SymbolByDisplayStringComparer(Compilation compilation)
     : this(SymbolDisplayStringCache.GetOrCreate(compilation))
 {
 }
Exemple #2
0
 /// <summary>
 /// Constructs.
 /// </summary>
 /// <param name="symbolDisplayStringCache">The cache display strings to use.</param>
 public SymbolByDisplayStringComparer(SymbolDisplayStringCache symbolDisplayStringCache)
 {
     this.SymbolDisplayStringCache = symbolDisplayStringCache ?? throw new ArgumentNullException(nameof(symbolDisplayStringCache));
 }
 /// <summary>
 /// Constructs.
 /// </summary>
 public TypeSymbolByMetadataNameComparer(Compilation compilation)
     : this(SymbolDisplayStringCache.GetOrCreate(compilation))
 {
 }