C# 클래스 SimpleFramework.Xml.Core.Comparer

The Comparer is used to compare annotations on the attributes of that annotation. Unlike the equals method, this can ignore some attributes based on the name of the attributes. This is useful if some annotations have overridden values, such as the field or method name.
파일 보기 프로젝트 열기: ngallagher/simplexml 1 사용 예제들

공개 메소드들

메소드 설명
Comparer ( ) : System

Constructor for the Comparer object. This is used to create a comparer that has a default set of names to be ignored during the comparison of annotations.

Comparer ( String ignore ) : System

Constructor for the Comparer object. This is used to create a comparer that has a default set of names to be ignored during the comparison of annotations.

Equals ( Annotation left, Annotation right ) : bool

This is used to determine if two annotations are equals based on the attributes of the annotation. The comparison done can ignore specific attributes, for instance the name attribute.

IsIgnore ( Method method ) : bool

This is used to determine if the method for an attribute is to be ignore. To determine if it should be ignore the method name is compared against the list of attributes to ignore.

메소드 상세

Comparer() 공개 메소드

Constructor for the Comparer object. This is used to create a comparer that has a default set of names to be ignored during the comparison of annotations.
public Comparer ( ) : System
리턴 System

Comparer() 공개 메소드

Constructor for the Comparer object. This is used to create a comparer that has a default set of names to be ignored during the comparison of annotations.
public Comparer ( String ignore ) : System
ignore String /// this is the set of attributes to be ignored ///
리턴 System

Equals() 공개 메소드

This is used to determine if two annotations are equals based on the attributes of the annotation. The comparison done can ignore specific attributes, for instance the name attribute.
public Equals ( Annotation left, Annotation right ) : bool
left Annotation /// this is the left side of the comparison done ///
right Annotation /// this is the right side of the comparison done ///
리턴 bool

IsIgnore() 공개 메소드

This is used to determine if the method for an attribute is to be ignore. To determine if it should be ignore the method name is compared against the list of attributes to ignore.
public IsIgnore ( Method method ) : bool
method Method /// this is the method to be evaluated ///
리턴 bool