June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Dynamic;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class Program
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
string varname = Console.ReadLine();
|
||||
//Let's pretend the user has entered "foo"
|
||||
dynamic expando = new ExpandoObject();
|
||||
var map = expando as IDictionary<string, object>;
|
||||
map.Add(varname, "Hello world!");
|
||||
|
||||
Console.WriteLine(expando.foo);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue