C# Класс MixinRefactoring.MemberComparer

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
IsSameAs ( Member first, Member second ) : bool

Защищенные методы

Метод Описание
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

Описание методов

IsEqual() защищенный Метод

two events are equal if they have the same name.
protected IsEqual ( Event first, Event second ) : bool
first Event
second Event
Результат bool

IsEqual() защищенный Метод

protected IsEqual ( Member first, Member second ) : bool
first Member
second Member
Результат bool

IsEqual() защищенный Метод

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
Результат bool

IsEqual() защищенный Метод

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
Результат bool

IsSameAs() публичный Метод

public IsSameAs ( Member first, Member second ) : bool
first Member
second Member
Результат bool