Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication17
{
class Program
static void Main(string[] args)
var MyAnonClass = new
Name = "Scott",
Subject = "ASP.Net"
};
Console.WriteLine(MyAnonClass.Name);
Console.Read();
}
OutputA class without a name is generated and assigned to an implicitly typed local variable.How does it work internally?
var SecondAnoynClass = new
info = MyAnonClass.Name + MyAnonClass.Subject
Console.WriteLine(SecondAnoynClass.info);
Output
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: