C# Class NCop.Weaving.ReflectionUtils

Mostrar archivo Open project: sagifogel/NCop

Public Methods

Method Description
DefineEvent ( this typeBuilder, EventInfo @event, EventAttributes attributes = null ) : EventBuilder
DefineMethod ( this typeBuilder, MethodInfo method, MethodAttributes attributes = null, ParameterInfo parameters = null ) : MethodBuilder
DefineProperty ( this typeBuilder, PropertyInfo property, PropertyAttributes attributes = null ) : PropertyBuilder
DefineType ( this parentType, string name = null, IEnumerable interfaces = null, TypeAttributes attributes = null ) : TypeBuilder
ToFieldName ( this type ) : string
ToUniqueName ( this name ) : string

Private Methods

Method Description
ContainsGenericParameters ( this type, Type &arguments ) : bool
DefineField ( this typeBuilder, Type fieldType, string fieldName = null, FieldAttributes attributes = null ) : FieldBuilder
DefineParameterlessMethod ( this typeBuilder, MethodInfo method, MethodAttributes attributes = null ) : MethodBuilder
GetNonNullableType ( this type ) : Type
IsEquivalentTo ( this type1, Type type2 ) : bool
IsFloatingPoint ( this type ) : bool
IsInt32OrInt64 ( this type ) : bool
IsNullableType ( this type ) : bool
IsNumeric ( this type ) : bool
IsPrimitive ( this type ) : bool
IsSingleOrDouble ( this type ) : bool
IsUnsigned ( this type ) : bool

Method Details

DefineEvent() public static method

public static DefineEvent ( this typeBuilder, EventInfo @event, EventAttributes attributes = null ) : EventBuilder
typeBuilder this
@event System.Reflection.EventInfo
attributes EventAttributes
return System.Reflection.Emit.EventBuilder

DefineMethod() public static method

public static DefineMethod ( this typeBuilder, MethodInfo method, MethodAttributes attributes = null, ParameterInfo parameters = null ) : MethodBuilder
typeBuilder this
method System.Reflection.MethodInfo
attributes MethodAttributes
parameters System.Reflection.ParameterInfo
return System.Reflection.Emit.MethodBuilder

DefineProperty() public static method

public static DefineProperty ( this typeBuilder, PropertyInfo property, PropertyAttributes attributes = null ) : PropertyBuilder
typeBuilder this
property System.Reflection.PropertyInfo
attributes PropertyAttributes
return System.Reflection.Emit.PropertyBuilder

DefineType() public static method

public static DefineType ( this parentType, string name = null, IEnumerable interfaces = null, TypeAttributes attributes = null ) : TypeBuilder
parentType this
name string
interfaces IEnumerable
attributes TypeAttributes
return System.Reflection.Emit.TypeBuilder

ToFieldName() public static method

public static ToFieldName ( this type ) : string
type this
return string

ToUniqueName() public static method

public static ToUniqueName ( this name ) : string
name this
return string