VlanName Equals Func

This commit is contained in:
Tim Young 2018-03-16 14:22:54 -05:00
parent c07bc41d5a
commit 485a57382b
1 changed files with 7 additions and 0 deletions

View File

@ -42,6 +42,13 @@ namespace EduNetworkBuilder
Name = name;
_Color = ColorForPacket;
}
public bool Equals(VLANName CompareWith)
{
if (ID != CompareWith.ID) return false;
if (Name != CompareWith.Name) return false;
if (PacketColor != CompareWith.PacketColor) return false;
return true;
}
}
[Serializable]