/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Compilers/Test/Core/Syntax/NodeInfo.FieldInfo.cs
52 строки
1 KB
Tomas Matousek
Move
23 окт 2020, 21:06
23 окт 2020, 21:06
d49cd2b
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeAnalysis.Test.Utilities { public partial class NodeInfo { //Package of information containing the name, type, and value of a field on a syntax node. public class FieldInfo { private readonly string _propertyName; private readonly Type _fieldType; private readonly object _value; public string PropertyName { get { return _propertyName; } } public Type FieldType { get { return _fieldType; } } public object Value { get { return _value; } } public FieldInfo(string propertyName, Type fieldType, object value) { _propertyName = propertyName; _fieldType = fieldType; _value = value; } } } }