Answers for "c# anonymous type with"

C#
0

anonymous types in c# example

var v = new { Amount = 108, Message = "Hello" };

// Rest the mouse pointer over v.Amount and v.Message in the following
// statement to verify that their inferred types are int and string.
Console.WriteLine(v.Amount + v.Message);
Posted by: Guest on August-26-2021

C# Answers by Framework

Browse Popular Code Answers by Language