C# Class MixinRefactoring.MemberComparer

Afficher le fichier Open project: pgenfer/mixinSharp Class Usage Examples

Méthodes publiques

Méthode Description
IsSameAs ( Member first, Member second ) : bool

Méthodes protégées

Méthode Description
IsEqual ( Event first, Event second ) : bool

two events are equal if they have the same name.

IsEqual ( Member first, Member second ) : bool
IsEqual ( Method first, Method second ) : bool

checks if one method has the same signature as the other method. This is the case if the name and the order and signature of the parameters is the same. The return type does not play a rule since two methods with the same name and parameters cannot have the same return type.

IsEqual ( Property first, Property second ) : bool

checks if the second property is an implementation of the first property. In case of properties, it is enough to check the name since two properties in the same class cannot have the same name

Method Details

IsEqual() protected méthode

two events are equal if they have the same name.
protected IsEqual ( Event first, Event second ) : bool
first Event
second Event
Résultat bool

IsEqual() protected méthode

protected IsEqual ( Member first, Member second ) : bool
first Member
second Member
Résultat bool

IsEqual() protected méthode

checks if one method has the same signature as the other method. This is the case if the name and the order and signature of the parameters is the same. The return type does not play a rule since two methods with the same name and parameters cannot have the same return type.
protected IsEqual ( Method first, Method second ) : bool
first Method
second Method
Résultat bool

IsEqual() protected méthode

checks if the second property is an implementation of the first property. In case of properties, it is enough to check the name since two properties in the same class cannot have the same name
protected IsEqual ( Property first, Property second ) : bool
first Property
second Property
Résultat bool

IsSameAs() public méthode

public IsSameAs ( Member first, Member second ) : bool
first Member
second Member
Résultat bool