引用using Microsoft.Office.Interop.Excel;using System.Reflection;//反射命名空间using System.IO; protected void Button1_Click(object sender, EventArgs e) { ...
分类:
其他好文 时间:
2014-07-16 23:18:29
阅读次数:
149
object missing = System.Reflection.Missing.Value; //表示缺i省object SaveFileDialog savedialog = new SaveFileDialog(); savedialog.Filter = "(*.xlsx)|*.xlsx...
分类:
Web程序 时间:
2014-07-16 23:12:04
阅读次数:
236
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Reflection;namespace Data_Helper{ ...
分类:
其他好文 时间:
2014-07-07 23:51:29
阅读次数:
299
有时我们需要判断某个类是否实现了某个接口(Interface),比如在使用反射机制(Reflection)来查找特定类型的时候。简单来说,可以使用Type.IsAssignableFrom方法:typeof(IFoo).IsAssignableFrom(bar.GetType());typeof(I...
分类:
其他好文 时间:
2014-07-07 21:33:29
阅读次数:
139
property是指类向外提供的数据区域。而attribute则是描述对象在编译时或运行时属性的,分为固有型和用户自定义型,其中用户自定义型可以利用Reflection在运行期获取。这两者是有本质区别的。资料上说二者一个是service的属性,而另一个是interface的。第一种好象更准确,摘要如...
分类:
其他好文 时间:
2014-07-07 14:02:36
阅读次数:
275
cls [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") foreach ($webApplication in Get-SPWebApplication) { Write-Host Write-Hos...
分类:
其他好文 时间:
2014-07-07 12:54:49
阅读次数:
276
utils.ToLog.WriteLog(AboutConfig.LogPath, "\r\n方法:" + System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName + "." + System.Reflection...
分类:
其他好文 时间:
2014-07-05 19:53:44
阅读次数:
151
原文链接: Test execution order原文日期: 2012年12月06日翻译日期: 2014年7月2日翻译人员: 铁锚说明: Junit4.11版本及以后才支持,建议升级到最新版本.按照设计原则,JUnit是不指定测试方法调用执行顺序的。目前为止,这些方法只是简单地按照反射(reflection) API返回的顺序执行。但是,使用JVM默认提供的排序是很不明智的,因为Java平台没有...
分类:
其他好文 时间:
2014-07-03 15:56:10
阅读次数:
268
cls [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") foreach ($webApplication in Get-SPWebApplication) { Write-Host Write-Hos...
分类:
其他好文 时间:
2014-07-02 23:12:01
阅读次数:
232
#新建随机数对象实例:$Ran = New-Object System.Random$Ran.NextDouble()有时候,要使用的实例的类保存在独立的库文件中,PowerShell默认未加载,就需要先加载库文件,然后再创建实例类:使用 System.Reflection.Assembly类提供的...
分类:
其他好文 时间:
2014-07-02 00:04:04
阅读次数:
860