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
sdfrgthyujyhtgrf
Switch on String
346625
miner
Selection sort
SKYIES
eu odeio minha vida
Preprocessor in C# (#define and conditional operatives)
Geração de HASH do SKU pra enviar para Vtex
little problem