/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
v1.0
samples/csharp/expression-trees/ExpressionTreeInterpretingSampleOne.cs
19 строк
659 B
Bill Wagner
Update ci build for ubuntu (#891)
09 авг 2016, 23:02
09 авг 2016, 23:02
ce52ada
Код
Авторство
О чём код?
using System; using System.Linq.Expressions; namespace ExpressionTreeSamples { public class ExpressionTreeInterpretingSampleOne : Sample { public override string Name { get; } = "Interpreting Expression Trees, Sample 1: Understanding Constant Nodes"; public override void Run() { var constant = Expression.Constant(24, typeof(int)); Console.WriteLine($"This is an {constant.NodeType} expression type"); Console.WriteLine($"The type of the constant value is {constant.Type}"); Console.WriteLine($"The value of the constant value is {constant.Value}"); } } }