Open sandboxFocus

Interface IDelegateFacet

Represents the structure of a delegate: its Invoke method, which carries its signature.

Namespace: Metalama.Framework.Code.Types
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
[InternalImplement]
public interface IDelegateFacet : ITypeFacet
Remarks

The facet is reached through Delegate, as in type.Facets.Delegate?.ReturnType. It is null for a type that IsDelegate reports as not being a delegate, which includes Delegate and MulticastDelegate themselves.

The BeginInvoke and EndInvoke methods are not exposed. They exist only for a delegate compiled for .NET Framework, and they are the asynchronous pattern that preceded async.

Properties

Name Description
InvokeMethod

Gets the Invoke method, which carries the signature of the delegate.

Parameters

Gets the parameters of the delegate, which are the parameters of InvokeMethod.

ReturnType

Gets the return type of the delegate, which is the return type of InvokeMethod.

Extension Methods

See Also