Add Equals func for NB_IPaddress

This commit is contained in:
Tim Young 2018-03-16 13:57:10 -05:00
parent 565ab9489d
commit 5d366ea2cf

View File

@ -65,6 +65,15 @@ namespace EduNetworkBuilder
}
}
public bool Equals(NB_IPAddress CompareWith)
{
if (_ip != CompareWith._ip) return false;
if (_mask != CompareWith._mask) return false;
if (_gw != CompareWith._gw) return false;
if (myType != CompareWith.myType) return false;
return true;
}
public void Save(XmlWriter writer, string tag)
{
writer.WriteStartElement(tag);