C# 클래스 CSharpSourceEmitter.Utils

파일 보기 프로젝트 열기: visualmutator/visualmutator

공개 메소드들

메소드 설명
FindAttribute ( IEnumerable attrs, SpecialAttribute sa ) : ICustomAttribute

IF an attribute of the specified special type exists in the sequence, return it. Otherwise return null.

GetAttributeType ( ICustomAttribute attr ) : SpecialAttribute

Determine if the specified attribute is of a special type, and if so return a code representing it. This is usefull for types not alread in IPlatformType

GetHiddenBaseClassMethod ( IMethodDefinition derivedClassMethod ) : IMethodDefinition

Returns the method from the closest base class that is hidden by the given method according to C# rules. If the method is an interface method definition, then look at it's base interfaces If no such method exists, Dummy.MethodDefinition is returned.

GetHiddenField ( IFieldDefinition derivedClassField ) : IFieldDefinition

Returns the field from the closest base class that is hidden by the given field according to C# rules.

IsMscorlibTypeNamed ( ITypeReference type, string name ) : bool

True if the specified type is defined in mscorlib and has the specified name

비공개 메소드들

메소드 설명
GetHiddenBaseClassMethod ( IMethodDefinition derivedClassMethod, ITypeDefinition baseClass ) : IMethodDefinition
GetHiddenField ( IFieldDefinition derivedClassField, ITypeDefinition baseClass ) : IFieldDefinition

메소드 상세

FindAttribute() 공개 정적인 메소드

IF an attribute of the specified special type exists in the sequence, return it. Otherwise return null.
public static FindAttribute ( IEnumerable attrs, SpecialAttribute sa ) : ICustomAttribute
attrs IEnumerable
sa SpecialAttribute
리턴 ICustomAttribute

GetAttributeType() 공개 정적인 메소드

Determine if the specified attribute is of a special type, and if so return a code representing it. This is usefull for types not alread in IPlatformType
public static GetAttributeType ( ICustomAttribute attr ) : SpecialAttribute
attr ICustomAttribute
리턴 SpecialAttribute

GetHiddenBaseClassMethod() 공개 정적인 메소드

Returns the method from the closest base class that is hidden by the given method according to C# rules. If the method is an interface method definition, then look at it's base interfaces If no such method exists, Dummy.MethodDefinition is returned.
public static GetHiddenBaseClassMethod ( IMethodDefinition derivedClassMethod ) : IMethodDefinition
derivedClassMethod IMethodDefinition
리턴 IMethodDefinition

GetHiddenField() 공개 정적인 메소드

Returns the field from the closest base class that is hidden by the given field according to C# rules.
public static GetHiddenField ( IFieldDefinition derivedClassField ) : IFieldDefinition
derivedClassField IFieldDefinition
리턴 IFieldDefinition

IsMscorlibTypeNamed() 공개 정적인 메소드

True if the specified type is defined in mscorlib and has the specified name
public static IsMscorlibTypeNamed ( ITypeReference type, string name ) : bool
type ITypeReference
name string
리턴 bool