In This Article

IFunctionDefinition Interface

Provides the base requirements of a function definition.

public interface IFunctionDefinition : IReflectionDefinition

Properties

DeclaringModule

Gets the reference to the module in which the function is declared.

IModuleReference DeclaringModule { get; }

Property Value

IModuleReference:

The reference to the module in which the function is declared.

DeclaringType

Gets the declaring type, if the function is a method.

ITypeDefinition DeclaringType { get; }

Property Value

ITypeDefinition:

The declaring type, if the function is a method.

Docstring

Gets the docstring for the type.

string Docstring { get; }

Property Value

string:

The docstring for the type.

IsClassMethod

Gets whether the function is a class method.

bool IsClassMethod { get; }

Property Value

bool:

true if the function is a class method; otherwise, false.

IsMethod

Gets whether the function is a method.

bool IsMethod { get; }

Property Value

bool:

true if the function is a method; otherwise, false.

IsPublic

Gets whether the function is public.

bool IsPublic { get; }

Property Value

bool:

true if the function is public; otherwise, false.

IsStaticMethod

Gets whether the function is a static method.

bool IsStaticMethod { get; }

Property Value

bool:

true if the function is a static method; otherwise, false.

Parameters

Gets the collection of parameters to the current function.

IParameterDefinitionCollection Parameters { get; }

Property Value

IParameterDefinitionCollection:

The collection of parameters to the current function.

ReturnType

Gets a ITypeDefinition indicating the return type, if known.

ITypeDefinition ReturnType { get; }

Property Value

ITypeDefinition:

A ITypeDefinition indicating the return type, if known.

ReturnTypeExpressionTextRange

Gets the return type expression TextRange, if known.

TextRange ReturnTypeExpressionTextRange { get; }

Property Value

TextRange:

The return type expression TextRange, if known.

TextRange

Gets the TextRange of the function definition, if known.

TextRange TextRange { get; }

Property Value

TextRange:

The TextRange of the function definition, if known.

Inherited Members