public override bool Equals(object obj)
{
MethodDescription right = obj as MethodDescription;
if (right == null)
return false;
return Name == right.Name &&
TargetEntity == right.TargetEntity &&
StepType == right.StepType &&
DeclaringType == right.DeclaringType;
}