C# Класс Yea.Reflection.Emit.BaseClasses.MethodBase

Method base class
Наследование: IMethodBuilder
Показать файл Открыть проект

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
Add ( object leftHandSide, object rightHandSide ) : VariableBase

Adds two objects

Assign ( VariableBase leftHandSide, object value ) : void

Assigns a value to a variable

Box ( object value ) : VariableBase

Boxes an object

Call ( VariableBase objectCallingOn, MethodInfo methodCalling, object parameters ) : VariableBase

Calls a method

Call ( VariableBase objectCallingOn, ConstructorInfo methodCalling, object parameters ) : void

Calls a constructor

Cast ( VariableBase value, Type valueType ) : VariableBase

Casts an object as a specific type

Catch ( Type exceptionType ) : Catch

Starts a catch block

CreateConstant ( object value ) : VariableBase

Creates a constant

CreateLocal ( string name, Type localType ) : VariableBase

Creates a local variable

Divide ( object leftHandSide, object rightHandSide ) : VariableBase

Divides two objects

EndIf ( If ifCommand ) : void

Ends an if statement

EndTry ( ) : void

Ends a try block

EndWhile ( While whileCommand ) : void

Ends a while statement

If ( VariableBase leftHandSide, Comparison comparisonType, VariableBase rightHandSide ) : If

Creates an if statement

MethodBase ( ) : System

Constructor

Modulo ( object leftHandSide, object rightHandSide ) : VariableBase

Modulo operator

Multiply ( object leftHandSide, object rightHandSide ) : VariableBase

Multiply two objects

NewObj ( ConstructorInfo constructor, object variables = null ) : VariableBase

Creates a new object

NewObj ( Type objectType, object variables = null ) : VariableBase

Creates a new object

Return ( ) : void

Returns from the method

Return ( object returnValue ) : void

Returns a value back from the method

SetCurrentMethod ( ) : void

Sets the current method to this

Subtract ( object leftHandSide, object rightHandSide ) : VariableBase

Subtracts two objects

Throw ( VariableBase exception ) : void

Throws an exception

Try ( ) : Try

Starts a try block

UnBox ( VariableBase value, Type valueType ) : VariableBase

Unboxes an object

While ( VariableBase leftHandSide, Comparison comparisonType, VariableBase rightHandSide ) : While

Creates a while statement

Описание методов

Add() публичный Метод

Adds two objects
public Add ( object leftHandSide, object rightHandSide ) : VariableBase
leftHandSide object Left hand side
rightHandSide object Right hand side
Результат VariableBase

Assign() публичный Метод

Assigns a value to a variable
public Assign ( VariableBase leftHandSide, object value ) : void
leftHandSide VariableBase Variable to assign to
value object Value to assign
Результат void

Box() публичный Метод

Boxes an object
public Box ( object value ) : VariableBase
value object Variable to box
Результат VariableBase

Call() публичный Метод

Calls a method
public Call ( VariableBase objectCallingOn, MethodInfo methodCalling, object parameters ) : VariableBase
objectCallingOn VariableBase Object to call the method on
methodCalling System.Reflection.MethodInfo Method to call
parameters object parameters to use
Результат VariableBase

Call() публичный Метод

Calls a constructor
public Call ( VariableBase objectCallingOn, ConstructorInfo methodCalling, object parameters ) : void
objectCallingOn VariableBase Object to call the constructor on
methodCalling System.Reflection.ConstructorInfo Constructor to call
parameters object parameters to use
Результат void

Cast() публичный Метод

Casts an object as a specific type
public Cast ( VariableBase value, Type valueType ) : VariableBase
value VariableBase Value to cast
valueType System.Type Type to cast to
Результат VariableBase

Catch() публичный Метод

Starts a catch block
public Catch ( Type exceptionType ) : Catch
exceptionType System.Type Exception type to catch
Результат Yea.Reflection.Emit.Commands.Catch

CreateConstant() публичный Метод

Creates a constant
public CreateConstant ( object value ) : VariableBase
value object Constant value
Результат VariableBase

CreateLocal() публичный Метод

Creates a local variable
public CreateLocal ( string name, Type localType ) : VariableBase
name string name of the local
localType System.Type Object type
Результат VariableBase

Divide() публичный Метод

Divides two objects
public Divide ( object leftHandSide, object rightHandSide ) : VariableBase
leftHandSide object Left hand side
rightHandSide object Right hand side
Результат VariableBase

EndIf() публичный Метод

Ends an if statement
public EndIf ( If ifCommand ) : void
ifCommand Yea.Reflection.Emit.Commands.If If command to end
Результат void

EndTry() публичный Метод

Ends a try block
public EndTry ( ) : void
Результат void

EndWhile() публичный Метод

Ends a while statement
public EndWhile ( While whileCommand ) : void
whileCommand Yea.Reflection.Emit.Commands.While While statement to end
Результат void

If() публичный Метод

Creates an if statement
public If ( VariableBase leftHandSide, Comparison comparisonType, VariableBase rightHandSide ) : If
leftHandSide VariableBase Left hand side variable
comparisonType Comparison Comparison type
rightHandSide VariableBase Right hand side variable
Результат Yea.Reflection.Emit.Commands.If

MethodBase() публичный Метод

Constructor
public MethodBase ( ) : System
Результат System

Modulo() публичный Метод

Modulo operator
public Modulo ( object leftHandSide, object rightHandSide ) : VariableBase
leftHandSide object Left hand side
rightHandSide object Right hand side
Результат VariableBase

Multiply() публичный Метод

Multiply two objects
public Multiply ( object leftHandSide, object rightHandSide ) : VariableBase
leftHandSide object Left hand side
rightHandSide object Right hand side
Результат VariableBase

NewObj() публичный Метод

Creates a new object
public NewObj ( ConstructorInfo constructor, object variables = null ) : VariableBase
constructor System.Reflection.ConstructorInfo Constructor to use
variables object Variables to use
Результат VariableBase

NewObj() публичный Метод

Creates a new object
public NewObj ( Type objectType, object variables = null ) : VariableBase
objectType System.Type Object type
variables object Variables to use
Результат VariableBase

Return() публичный Метод

Returns from the method
public Return ( ) : void
Результат void

Return() публичный Метод

Returns a value back from the method
public Return ( object returnValue ) : void
returnValue object Value to return
Результат void

SetCurrentMethod() публичный Метод

Sets the current method to this
public SetCurrentMethod ( ) : void
Результат void

Subtract() публичный Метод

Subtracts two objects
public Subtract ( object leftHandSide, object rightHandSide ) : VariableBase
leftHandSide object Left hand side
rightHandSide object Right hand side
Результат VariableBase

Throw() публичный Метод

Throws an exception
public Throw ( VariableBase exception ) : void
exception VariableBase Exception to throw
Результат void

Try() публичный Метод

Starts a try block
public Try ( ) : Try
Результат Yea.Reflection.Emit.Commands.Try

UnBox() публичный Метод

Unboxes an object
public UnBox ( VariableBase value, Type valueType ) : VariableBase
value VariableBase Value to unbox
valueType System.Type Type to unbox to
Результат VariableBase

While() публичный Метод

Creates a while statement
public While ( VariableBase leftHandSide, Comparison comparisonType, VariableBase rightHandSide ) : While
leftHandSide VariableBase Left hand side variable
comparisonType Comparison Comparison type
rightHandSide VariableBase Right hand side variable
Результат Yea.Reflection.Emit.Commands.While