C# Class 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.
Afficher le fichier Open project: ngallagher/simplexml Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

Comparer() public méthode

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
Résultat System

Comparer() public méthode

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 ///
Résultat System

Equals() public méthode

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 ///
Résultat bool

IsIgnore() public méthode

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 ///
Résultat bool