Table of Contents

Class MethodBuilder

Namespace
LinqToDB.CodeModel
Assembly
linq2db.Tools.dll

CodeMethod object builder.

public sealed class MethodBuilder : MethodBaseBuilder<MethodBuilder, CodeMethod>
Inheritance
MethodBuilder
Inherited Members
Extension Methods

Methods

AddAttribute(CodeAttribute)

Add custom attribute to method.

public MethodBuilder AddAttribute(CodeAttribute attribute)

Parameters

attribute CodeAttribute

Custom attribute.

Returns

MethodBuilder

Method builder instance.

Returns(IType)

Adds non-void return type to method.

public MethodBuilder Returns(IType type)

Parameters

type IType

Returns

MethodBuilder

Method builder instance.

TypeParameter(IType)

Adds generic type parameter to method signature.

public MethodBuilder TypeParameter(IType typeParameter)

Parameters

typeParameter IType

Returns

MethodBuilder

Method builder instance.