Class FeatureParameterAttribute
Attribute for wrapped C# methods that need to enable features or request data from the ezrĀ² runtime.
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
public class FeatureParameterAttribute : Attribute
- Inheritance
-
objectAttributeFeatureParameterAttribute
Remarks
This can include enabling extra keyword arguments, extra positional arguments, requesting references
to the interpreter, wrapper, context, etc. The parameter must conform to the attributed Feature.
For example, a parameter attributed with InterpreterRef must be assignable from the
Interpreter type.
Constructors
FeatureParameterAttribute(Feature)
Attribute for wrapped C# methods that need to enable features or request data from the ezrĀ² runtime.
public FeatureParameterAttribute(Feature type)
Parameters
type
Feature
Remarks
This can include enabling extra keyword arguments, extra positional arguments, requesting references
to the interpreter, wrapper, context, etc. The parameter must conform to the attributed Feature.
For example, a parameter attributed with InterpreterRef must be assignable from the
Interpreter type.
Fields
Type
The type of the parameter.
public readonly Feature Type
Field Value
Methods
ValidateParameter(ParameterInfo)
Checks if the given parameter has the correct signature.
public void ValidateParameter(ParameterInfo parameter)
Parameters
parameter
ParameterInfoThe parameter.