File: Microsoft\CSharp\RuntimeBinder\Semantics\Tree\FieldInfo.cs
Web Access
Project: src\src\libraries\Microsoft.CSharp\src\Microsoft.CSharp.csproj (Microsoft.CSharp)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System.Diagnostics;
 
namespace Microsoft.CSharp.RuntimeBinder.Semantics
{
    internal sealed class ExprFieldInfo : ExprWithType
    {
        public ExprFieldInfo(FieldSymbol field, AggregateType fieldType, CType type)
            : base(ExpressionKind.FieldInfo, type)
        {
            Debug.Assert(field != null);
            Debug.Assert(fieldType != null);
            Field = field;
            FieldType = fieldType;
        }
 
        public FieldSymbol Field { get; }
 
        public AggregateType FieldType { get; }
    }
}