VlanName Equals Func

This commit is contained in:
Tim Young 2018-03-16 14:22:54 -05:00
parent c07bc41d5a
commit 485a57382b

View File

@ -42,6 +42,13 @@ namespace EduNetworkBuilder
Name = name; Name = name;
_Color = ColorForPacket; _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] [Serializable]