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
1 changed files with 9 additions and 0 deletions

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);