Add Equals func for NB_IPaddress
This commit is contained in:
parent
565ab9489d
commit
5d366ea2cf
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user