摘要:
public class SendCommand : ICommand
{ public void Execute(object parameter) { var labels = ((object[]) parameter).OfType(); } public bool CanExecute(object parameter) ... 阅读全文
posted @ 2014-12-03 15:23
马语者
阅读(1242)
评论(0)
推荐(0)
摘要:
这是.NET反射的一个有趣小例子: 通过反射将变量值转为变量名本身. 当然要先添加命名空间:using System.Reflection; 示例代码如下: class Program { string name = "strA"; string strA = "strB"; string strB = "Hello... 阅读全文
posted @ 2014-12-03 14:45
马语者
阅读(768)
评论(0)
推荐(0)

浙公网安备 33010602011771号