Interviews2 answers
What are the Anonymous object in c#?
2 Answers
var d=db.tablename.where(x=>x.name=="dsd");
=> labmda expression Is Anonymous object in c# We can use in delegate also.
Ketan ShindePosted Nov 20, 2018, 11:54 PM EST
Basically anonymous object are used to call a method without a method name by using an delegate, before C# 3.0 delegate is used to call by declaring an method name, anonymous is introduced in C# 3.0 to call a delegate or event. And it is related to lambda expression used in linq.
For more clear understanding you can visit below link
https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/statements-expressions-operators/anonymous-functions
mukul agrawalPosted Sep 28, 2018, 10:06 PM EDT
