In This Article

IParameterDefinition Interface

Provides the base requirements of a parameter definition.

public interface IParameterDefinition : IReflectionDefinition

Properties

DeclaringMember

Gets the type member that declares the current parameter.

ITypeMemberDefinition DeclaringMember { get; }

Property Value

ITypeMemberDefinition:

An ITypeMemberDefinition object representing the type member that declares the current parameter.

IsByReference

Gets whether this is a pass by-reference parameter.

bool IsByReference { get; }

Property Value

Boolean:

true if this is a pass by-reference parameter; otherwise, false.

IsDynamicType

Gets whether the parameter type is a dynamic type.

bool IsDynamicType { get; }

Property Value

Boolean:

true if the parameter type is a dynamic type; otherwise, false.

IsExtension

Gets whether this is the first parameter to an extension method.

bool IsExtension { get; }

Property Value

Boolean:

true if this is the first parameter to an extension method; otherwise, false.

IsOptional

Gets whether this is an optional parameter.

bool IsOptional { get; }

Property Value

Boolean:

true if this is an optional parameter; otherwise, false.

IsOutput

Gets whether this is an output parameter.

bool IsOutput { get; }

Property Value

Boolean:

true if this is an output parameter; otherwise, false.

IsParameterArray

Gets whether this is a parameter array.

bool IsParameterArray { get; }

Property Value

Boolean:

true if this is a parameter array; otherwise, false.

SourceFileLocation

Gets the source file location that contain the parameter's declaration.

ISourceFileLocation SourceFileLocation { get; }

Property Value

ISourceFileLocation:

The source file location that contain the parameter's declaration.

Remarks

This property only knows the source file location for parameter definitions loaded from code.

Type

Gets an ITypeReference for the parameter type.

ITypeReference Type { get; }

Property Value

ITypeReference:

An ITypeReference for the parameter type.

Inherited Members