Ejemplo n.º 1
0
 public static DocumentInfo Create(
     DocumentId id,
     string name,
     IEnumerable <string>?folders  = null,
     SourceCodeKind sourceCodeKind = SourceCodeKind.Regular,
     TextLoader?loader             = null,
     string?filePath  = null,
     bool isGenerated = false)
 {
     return(Create(
                id ?? throw new ArgumentNullException(nameof(id)),
                name ?? throw new ArgumentNullException(nameof(name)),
                PublicContract.ToBoxedImmutableArrayWithNonNullItems(folders, nameof(folders)),
                sourceCodeKind,
                loader,
                filePath,
                isGenerated,
                documentServiceProvider: null));
 }