Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Dynamic properties in Dynamic object
//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) { //Your code goes here var list = new List<string>(); list.Add("car"); list.Add("bike"); list.Add("boat"); list.Add("lorry"); dynamic test = new System.Dynamic.ExpandoObject(); IDictionary<string, object> myUnderlyingObject = test; foreach(var v in list){ myUnderlyingObject.Add(v, v); } Console.WriteLine(test.car); Console.WriteLine(test.bike); Console.WriteLine(test.boat); Console.WriteLine(test.lorry); } } }
run
|
edit
|
history
|
help
0
https://www.fxp.co.il/showthread.php?t=21125499
case2
mysrc.tcl
Coding Club 1-16-18
array print 2nd half first and 1 half later
Repeated char
multiplicação
*271*271#
scanf1
Quickly reach memory limit