// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using Microsoft.CodeAnalysis.CSharp; namespace Microsoft.AspNetCore.Mvc.Razor.Compilation { /// /// Context object used to pass information about the current Razor page compilation. /// public class RoslynCompilationContext { /// /// Constructs a new instance of the type. /// /// to be set to property. public RoslynCompilationContext(CSharpCompilation compilation) { if (compilation == null) { throw new ArgumentNullException(nameof(compilation)); } Compilation = compilation; } /// /// Gets or sets the used for current source file compilation. /// public CSharpCompilation Compilation { get; set; } } }