c#获取事件绑定的所有方法
2014-08-22 16:14
288 查看
private bool HasBindingPropertiesListChangedEvent() {
var targetType = this._propertiesProvider.Properties.GetType(); var eventField = targetType.GetField("ListChanged", BindingFlags.Instance | BindingFlags.NonPublic); if (eventField == null) { return false; } var handle = eventField.GetValue(this._propertiesProvider.Properties) as ListChangedEventHandler; if (handle == null) { return false; } return handle.GetInvocationList().Find(x => typeof(DataEntityPanelViewModel_OL).Name == x.Target.GetType().Name) != null; }
.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, "Courier New", courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }
相关文章推荐
- C#移除所有事件绑定的方法
- c# 获取数据库中所有表名称的方法
- C# GetSchema Get List of Table 获取数据库中所有的表名以及表中的纪录条数的方法
- 201507221403_《backbone之一——新建模型和集合、实例化模型、模型上监听事件的方法、模型设置和获取后台数据、配置理由方法、视图绑定事件的方法、绑定模型等》
- Repeater,ItemDataBound事件,获取绑定列的值,给指定列添加js方法
- jQuery实现获取绑定自定义事件元素的方法
- c#获取数据库中所有表名称的方法
- 在c#中过滤通过System.IO.Directory.GetDirectories 方法获取的是所有的子目录和文件中的系统隐藏的文件(夹)的方法
- C#获取所有SQL Server数据库名称的方法
- C# 移除所有的事件绑定
- C#获取所有SQL Server数据库名称的方法
- C# GetSchema Get List of Table 获取数据库中所有的表名以及表中的纪录条数的方法
- C#获取类里面的所有的方法名称
- c#开发_Dev的lookupedit绑定和获取值的方法
- C#通过反射获取当前工程中所有窗体并打开的方法
- C#中的委托和事件(2) ---将方法绑定到委托
- C#中的委托和事件--2.将方法绑定到委托
- c#获取数据库中所有表名称的方法
- C# GetSchema Get List of Table 获取数据库中所有的表名以及表中的纪录条数的方法
- jQuery实现获取绑定自定义事件元素的方法