CallSiteBinder.BindDelegate<T>(CallSite<T>, Object[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides low-level runtime binding support. Classes can override this and provide a direct delegate for the implementation of rule. This can enable saving rules to disk, having specialized rules available at runtime, or providing a different caching policy.
public:
generic <typename T>
where T : class virtual T BindDelegate(System::Runtime::CompilerServices::CallSite<T> ^ site, cli::array <System::Object ^> ^ args);
public virtual T BindDelegate<T>(System.Runtime.CompilerServices.CallSite<T> site, object[] args) where T : class;
public virtual T? BindDelegate<T>(System.Runtime.CompilerServices.CallSite<T> site, object[] args) where T : class;
abstract member BindDelegate : System.Runtime.CompilerServices.CallSite<'T (requires 'T : null)> * obj[] -> 'T (requires 'T : null)
override this.BindDelegate : System.Runtime.CompilerServices.CallSite<'T (requires 'T : null)> * obj[] -> 'T (requires 'T : null)
Public Overridable Function BindDelegate(Of T As Class) (site As CallSite(Of T), args As Object()) As T
Type Parameters
- T
The target type of the CallSite.
Parameters
- site
- CallSite<T>
The CallSite the bind is being performed for.
- args
- Object[]
The arguments for the binder.
Returns
T
A new delegate which replaces the CallSite Target.
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET