Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
anyonymous type pass to method in c#
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { var obj = new {name="sachin",age=90}; print(obj); //Your code goes here Console.WriteLine("Hello, world!"); } public static void print(dynamic obj){ Console.WriteLine("Name : "+ obj.name+" Age : "+obj.age); } } }
run
|
edit
|
history
|
help
0
Get year quarter from date
Jump Search
Product, Category, Composition and Inheritance
D12
any predicate test
C# Dictionary with Enum Keys And Values
True and false
waefueiure
derfgtredwcdf
Boo socks