| File: OptionsItem.cs | Web Access |
| Project: src\aspnetcore\src\Analyzers\Analyzers\src\Microsoft.AspNetCore.Analyzers.csproj (Microsoft.AspNetCore.Analyzers) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.CodeAnalysis; namespace Microsoft.AspNetCore.Analyzers; internal sealed class OptionsItem { public OptionsItem(IPropertySymbol property, object constantValue) { Property = property; ConstantValue = constantValue; } public INamedTypeSymbol OptionsType => Property.ContainingType; public IPropertySymbol Property { get; } public object ConstantValue { get; } }