src/Workspaces/Core/Portable/Workspace/Solution/SolutionInfo.cs
/// <summary>
/// Create a new instance of a SolutionInfo.
/// </summary>
Create a new instance of a SolutionInfo.
Create a new instance of a SolutionInfo .
public static SolutionInfo Create(
            SolutionId id,
            VersionStamp version,
            string? filePath = null,
            IEnumerable<ProjectInfo>? projects = null,
            IEnumerable<AnalyzerReference>? analyzerReferences = null)
        {
            return new SolutionInfo(
                new SolutionAttributes(
                    id ?? throw new ArgumentNullException(nameof(id)),
                    version,
                    filePath),
                PublicContract.ToBoxedImmutableArrayWithDistinctNonNullItems(projects, nameof(projects)),
                PublicContract.ToBoxedImmutableArrayWithDistinctNonNullItems(analyzerReferences, nameof(analyzerReferences)));
        }
public static SolutionInfo Create ( SolutionId id , VersionStamp version , string ? filePath = null , IEnumerable < ProjectInfo > ? projects = null , IEnumerable < AnalyzerReference > ? analyzerReferences = null ) { return new SolutionInfo ( new SolutionAttributes ( id ?? throw new ArgumentNullException ( nameof ( id ) ) , version , filePath ) , PublicContract . ToBoxedImmutableArrayWithDistinctNonNullItems ( projects , nameof ( projects ) ) , PublicContract . ToBoxedImmutableArrayWithDistinctNonNullItems ( analyzerReferences , nameof ( analyzerReferences ) ) ) ; }
Create a new instance of a SolutionInfo.
Create a new instance of a SolutionInfo .
id
SolutionId
version
VersionStamp
filePath
string?
projects
IEnumerable<ProjectInfo>?
analyzerReferences
IEnumerable<AnalyzerReference>?