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
A new delegate which replaces the CallSite Target.
Applies to
משוב
https://aka.ms/ContentUserFeedback.
בקרוב: במהלך 2024, נפתור בעיות GitHub כמנגנון המשוב לתוכן ונחליף אותו במערכת משוב חדשה. לקבלת מידע נוסף, ראה:שלח והצג משוב עבור