C# Class BTDB.IL.ILDynamicTypeDebugImpl

Inheritance: IILDynamicType
Datei anzeigen Open project: Bobris/BTDB Class Usage Examples

Public Methods

Method Description
CreateType ( ) : Type
DefineConstructor ( Type parameters ) : IILMethod
DefineEvent ( string name, EventAttributes eventAttributes, Type type ) : IILEvent
DefineField ( string name, Type type, FieldAttributes fieldAttributes ) : IILField
DefineMethod ( string name, Type returns, Type parameters, MethodAttributes methodAttributes = MethodAttributes.Public ) : IILMethod
DefineMethodOverride ( IILMethod methodBuilder, MethodInfo baseMethod ) : void
ILDynamicTypeDebugImpl ( string name, Type baseType, Type interfaces ) : System

Private Methods

Method Description
AddNameShorteningSection ( string name, List sections, int pos, int sectionEnd, StringBuilder sb ) : void
CloseInScope ( ) : void
ParseSectionsForNameShortening ( string name ) : List
SelectSubsectionsToRemove ( string name, List sections, int needRemove ) : void
ShortenIfNeeded ( string name, int maxLength ) : string
UniqueName ( string name, int maxLength = -1 ) : string

Method Details

CreateType() public method

public CreateType ( ) : Type
return System.Type

DefineConstructor() public method

public DefineConstructor ( Type parameters ) : IILMethod
parameters System.Type
return IILMethod

DefineEvent() public method

public DefineEvent ( string name, EventAttributes eventAttributes, Type type ) : IILEvent
name string
eventAttributes EventAttributes
type Type
return IILEvent

DefineField() public method

public DefineField ( string name, Type type, FieldAttributes fieldAttributes ) : IILField
name string
type Type
fieldAttributes FieldAttributes
return IILField

DefineMethod() public method

public DefineMethod ( string name, Type returns, Type parameters, MethodAttributes methodAttributes = MethodAttributes.Public ) : IILMethod
name string
returns Type
parameters Type
methodAttributes MethodAttributes
return IILMethod

DefineMethodOverride() public method

public DefineMethodOverride ( IILMethod methodBuilder, MethodInfo baseMethod ) : void
methodBuilder IILMethod
baseMethod MethodInfo
return void

ILDynamicTypeDebugImpl() public method

public ILDynamicTypeDebugImpl ( string name, Type baseType, Type interfaces ) : System
name string
baseType Type
interfaces Type
return System