C# 클래스 System.ComponentModel.MemberDescriptor

파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

공개 메소드들

메소드 설명
Equals ( object obj ) : bool

Compares this instance to the specified to see if they are equivalent. NOTE: If you make a change here, you likely need to change GetHashCode() as well.

GetHashCode ( ) : int

Try to keep this reasonable in [....] with Equals(). Specifically, if A.Equals(B) returns true, A & B should have the same hash code.

보호된 메소드들

메소드 설명
CreateAttributeCollection ( ) : AttributeCollection

Creates a collection of attributes using the array of attributes that you passed to the constructor.

FillAttributes ( IList attributeList ) : void

In an inheriting class, adds the attributes of the inheriting class to the specified list of attributes in the parent class. For duplicate attributes, the last one added to the list will be kept.

FindMethod ( Type componentClass, string name, Type args, Type returnType ) : MethodInfo

Finds the given method through reflection. This method only looks for public methods.

FindMethod ( Type componentClass, string name, Type args, Type returnType, bool publicOnly ) : MethodInfo

Finds the given method through reflection.

GetInvocationTarget ( Type type, object instance ) : object

This method returns the object that should be used during invocation of members. Normally the return value will be the same as the instance passed in. If someone associated another object with this instance, or if the instance is a custom type descriptor, GetInvocationTarget may return a different value.

GetSite ( object component ) : ISite

Gets a component site for the given component.

MemberDescriptor ( MemberDescriptor descr ) : System.Collections

Initializes a new instance of the class with the specified .

MemberDescriptor ( MemberDescriptor oldMemberDescriptor, Attribute newAttributes ) : System.Collections

Initializes a new instance of the class with the name in the specified and the attributes in both the old and the array.

MemberDescriptor ( string name ) : System.Collections

Initializes a new instance of the class with the specified name and no attributes.

MemberDescriptor ( string name, Attribute attributes ) : System.Collections

Initializes a new instance of the class with the specified name and attributes array.

비공개 메소드들

메소드 설명
CheckAttributesValid ( ) : void

Called each time we access the attribtes on this member descriptor to give deriving classes a chance to change them on the fly.

FilterAttributesIfNeeded ( ) : void
GetInvokee ( Type componentClass, object component ) : object

메소드 상세

CreateAttributeCollection() 보호된 메소드

Creates a collection of attributes using the array of attributes that you passed to the constructor.

protected CreateAttributeCollection ( ) : AttributeCollection
리턴 AttributeCollection

Equals() 공개 메소드

Compares this instance to the specified to see if they are equivalent. NOTE: If you make a change here, you likely need to change GetHashCode() as well.

public Equals ( object obj ) : bool
obj object
리턴 bool

FillAttributes() 보호된 메소드

In an inheriting class, adds the attributes of the inheriting class to the specified list of attributes in the parent class. For duplicate attributes, the last one added to the list will be kept.

protected FillAttributes ( IList attributeList ) : void
attributeList IList
리턴 void

FindMethod() 보호된 정적인 메소드

Finds the given method through reflection. This method only looks for public methods.

protected static FindMethod ( Type componentClass, string name, Type args, Type returnType ) : MethodInfo
componentClass Type
name string
args Type
returnType Type
리턴 System.Reflection.MethodInfo

FindMethod() 보호된 정적인 메소드

Finds the given method through reflection.

protected static FindMethod ( Type componentClass, string name, Type args, Type returnType, bool publicOnly ) : MethodInfo
componentClass Type
name string
args Type
returnType Type
publicOnly bool
리턴 System.Reflection.MethodInfo

GetHashCode() 공개 메소드

Try to keep this reasonable in [....] with Equals(). Specifically, if A.Equals(B) returns true, A & B should have the same hash code.
public GetHashCode ( ) : int
리턴 int

GetInvocationTarget() 보호된 메소드

This method returns the object that should be used during invocation of members. Normally the return value will be the same as the instance passed in. If someone associated another object with this instance, or if the instance is a custom type descriptor, GetInvocationTarget may return a different value.
protected GetInvocationTarget ( Type type, object instance ) : object
type Type
instance object
리턴 object

GetSite() 보호된 정적인 메소드

Gets a component site for the given component.

protected static GetSite ( object component ) : ISite
component object
리턴 ISite

MemberDescriptor() 보호된 메소드

Initializes a new instance of the class with the specified .

protected MemberDescriptor ( MemberDescriptor descr ) : System.Collections
descr MemberDescriptor
리턴 System.Collections

MemberDescriptor() 보호된 메소드

Initializes a new instance of the class with the name in the specified and the attributes in both the old and the array.

protected MemberDescriptor ( MemberDescriptor oldMemberDescriptor, Attribute newAttributes ) : System.Collections
oldMemberDescriptor MemberDescriptor
newAttributes Attribute
리턴 System.Collections

MemberDescriptor() 보호된 메소드

Initializes a new instance of the class with the specified name and no attributes.

protected MemberDescriptor ( string name ) : System.Collections
name string
리턴 System.Collections

MemberDescriptor() 보호된 메소드

Initializes a new instance of the class with the specified name and attributes array.

protected MemberDescriptor ( string name, Attribute attributes ) : System.Collections
name string
attributes Attribute
리턴 System.Collections