C# Class MixinRefactoring.MemberComparer

显示文件 Open project: pgenfer/mixinSharp Class Usage Examples

Public Methods

Method Description
IsSameAs ( Member first, Member second ) : bool

Protected Methods

Method 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 method

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

IsEqual() protected method

protected IsEqual ( Member first, Member second ) : bool
first Member
second Member
return bool

IsEqual() protected method

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
return bool

IsEqual() protected method

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
return bool

IsSameAs() public method

public IsSameAs ( Member first, Member second ) : bool
first Member
second Member
return bool