mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 14:27:26 +01:00
CP-28284: Implement IEquatable in PlanAction
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
parent
59b9b695db
commit
da9e5a5cab
@ -39,7 +39,7 @@ using XenAPI;
|
|||||||
|
|
||||||
namespace XenAdmin.Wizards.PatchingWizard.PlanActions
|
namespace XenAdmin.Wizards.PatchingWizard.PlanActions
|
||||||
{
|
{
|
||||||
public abstract class PlanAction
|
public abstract class PlanAction : IEquatable<PlanAction>
|
||||||
{
|
{
|
||||||
protected static readonly ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
protected static readonly ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
||||||
@ -199,6 +199,14 @@ namespace XenAdmin.Wizards.PatchingWizard.PlanActions
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool Equals(PlanAction other)
|
||||||
|
{
|
||||||
|
if (other == null)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return string.Equals(Title, other.Title, StringComparison.OrdinalIgnoreCase);
|
||||||
|
}
|
||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
return this.Title;
|
return this.Title;
|
||||||
|
Loading…
Reference in New Issue
Block a user