Methods_T_Cyjb_Reflection_PowerBinder - CYJB/Cyjb GitHub Wiki

PowerBinder 方法

The PowerBinder type exposes the following members.

方法

 

名称 说明
公共方法 BindToField 基于指定的判据,从给定的字段集中选择一个字段。 (重写 Binder.BindToField(BindingFlags, FieldInfo[], Object, CultureInfo).)
公共方法 BindToMethod 基于提供的参数,从给定的方法集中选择要调用的方法。 (重写 Binder.BindToMethod(BindingFlags, MethodBase[], Object[], ParameterModifier[], CultureInfo, String[], Object).)
公共方法 ChangeType 将给定 Object 的类型更改为给定 Type。 (重写 Binder.ChangeType(Object, Type, CultureInfo).)
公共方法 Equals Determines whether the specified object is equal to the current object. (继承自 Object。)
公共方法 GetHashCode Serves as the default hash function. (继承自 Object。)
公共方法 GetType Gets the Type of the current instance. (继承自 Object。)
公共方法 ReorderArgumentArray BindToMethod(BindingFlags, MethodBase[], Object[], ParameterModifier[], CultureInfo, String[], Object) 返回后,将 args 参数还原为从 BindToMethod(BindingFlags, MethodBase[], Object[], ParameterModifier[], CultureInfo, String[], Object) 传入时的状态。 (重写 Binder.ReorderArgumentArray(Object[], Object).)
公共方法 SelectMethod 基于参数类型,从给定的方法集中选择一个方法。 允许通过指定 OptionalParamBinding 来匹配可选参数。 (重写 Binder.SelectMethod(BindingFlags, MethodBase[], Type[], ParameterModifier[]).)
公共方法 SelectProperty 基于参数类型,从给定的属性集中选择一个属性。 (重写 Binder.SelectProperty(BindingFlags, PropertyInfo[], Type, Type[], ParameterModifier[]).)
公共方法 ToString Returns a string that represents the current object. (继承自 Object。)
  Back to Top

参见

Reference

PowerBinder 类
Cyjb.Reflection 命名空间

⚠️ **GitHub.com Fallback** ⚠️