Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
Prim`s Algorithm
null enum value check is false
Unexpected result of virtual method
Hello world test
|= Caching
learning
IntToExcelColumnNotation
character occurrence in the given string
//Json Get Field from Array
OddEven
Please log in to post a comment.