diff --git a/EduNetworkBuilder/IPAddress.cs b/EduNetworkBuilder/IPAddress.cs index 0d03b8c..638bdc9 100644 --- a/EduNetworkBuilder/IPAddress.cs +++ b/EduNetworkBuilder/IPAddress.cs @@ -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);