/// <summary>
 /// Adds a <see cref="SourceText"/> to the compilation
 /// </summary>
 /// <param name="hintName">An identifier that can be used to reference this source text, must be unique within this generator</param>
 /// <param name="sourceText">The <see cref="SourceText"/> to add to the compilation</param>
 public void AddSource(string hintName, SourceText sourceText) => _additionalSources.Add(hintName, sourceText);
Exemple #2
0
 /// <summary>
 /// Adds a <see cref="SourceText"/> to the compilation
 /// </summary>
 /// <param name="hintName">An identifier that can be used to reference this source text, must be unique within this generator</param>
 /// <param name="sourceText">The <see cref="SourceText"/> to add to the compilation</param>
 public void AddSource(string hintName, SourceText sourceText) => Sources.Add(hintName, sourceText);