Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
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) { dynamic myobject = new System.Dynamic.ExpandoObject(); IDictionary<string, object> myUnderlyingObject = myobject; myUnderlyingObject.Add("IsDynamic", true); // Adding dynamically named property Console.WriteLine(myobject.IsDynamic); // Accessing the property the usual way } } public class Test { public string Name { get; set; } } }
run
|
edit
|
history
|
help
0
Found many section of times intersect (Question version)
Swap 2
C# Dictionary with Enum Keys And Values
Encapsulation and abstration
Fibonacci Series
1.1 Basics: language constructs
Test
Problem Name: single_digit
Generic Reference constraint
Simple StackOverflowException