CallSiteBinder.BindDelegate<T> Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
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.
Namespace:  System.Runtime.CompilerServices
Assembly:  System.Core (in System.Core.dll)
Syntax
'Declaration
Public Overridable Function BindDelegate(Of T As Class) ( _
    site As CallSite(Of T), _
    args As Object() _
) As T
public virtual T BindDelegate<T>(
    CallSite<T> site,
    Object[] args
)
where T : class
Type Parameters
- T
 The target type of the CallSite.
Parameters
- site
 Type: System.Runtime.CompilerServices.CallSite<T>
 The CallSite the bind is being performed for.
- args
 Type: array<System.Object[]
 The arguments for the binder.
Return Value
Type: T
A new delegate which replaces the CallSite Target.
Version Information
Silverlight
Supported in: 5, 4
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.