C# ExpandoObject用法
2017-07-31 13:08
369 查看
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Dynamic;//添加引用 namespace ExpandoObject_exercise { class Program { static void Main(string[] args) { dynamic expand = new ExpandoObject(); expand.name = "dynamic动态"; expand.yes = "成功"; Console.WriteLine("{0}\n{1}", expand.name, expand.yes); Console.Read(); } } }
结果:
相关文章推荐
- c#中dynamic ExpandoObject的用法
- ExpandoObject DynamicObject 的用法
- C#Winform基础 button1_Click(object sender, EventArgs e)中sender是啥及其用法
- C#Winform基础 button1_Click(object sender, EventArgs e)中sender是啥及其用法
- C#DynamicObject和ExpandoObject用法
- C#:String.Format 方法 (String, Object)的用法
- C# DynamicObject And ExpandoObject
- c# 正则表达式用法
- C#中this关键字的用法
- expression<Func<object,Bool>> 及 Func<oject,bool>用法
- .NET C# Stopwatch用法
- C#中List<T>的排序用法(Sort)
- 31、C#:键值对类型Hashtable与Dictionary比较和相关用法
- C#中构造函数和析构函数的用法
- c#中字典(Dictionary)基本用法
- C#中MessageBox用法大全
- C#中Invoke的用法(转)
- C#中的Dictionary用法
- C# Timer用法及实例详解
- C#正则表达式编程(三):Match类和Group类用法