Table of Contents

ToString Method

Definition

Namespace
Cuemon.Reflection
Assemblies
Cuemon.Core.dll
Source
src/Cuemon.Core/Reflection/MethodDescriptor.cs

ToString()

Returns a string that represents the method signature.

public override string ToString()

Returns

string

A string that represents the method signature.

ToString(bool)

Returns a string that represents the method signature.

public string ToString(bool fullName)

Parameters

fullName bool

Specify true to use the fully qualified name of the Caller; otherwise, false for the simple name.

Returns

string

A string that represents the method signature.

Remarks

The returned string has the following format:
Method without parameters: [Caller].MethodName
Method with at least one or more parameter: [Caller].[MethodName]([ParameterType] [ParameterName])

Property: [Caller].[MethodName]
Property with at least one indexer: [Caller].[MethodName][[ParameterType] [ParameterName]]