Update of /cvsroot/dnsmail/dnsmail/DnsMail
In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv20640/dnsmail/DnsMail
Modified Files:
MxRecord.cs
Log Message:
Coding art. tabs, spaces, etc... :)
Index: MxRecord.cs
===================================================================
RCS file: /cvsroot/dnsmail/dnsmail/DnsMail/MxRecord.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** MxRecord.cs 21 Mar 2006 18:51:02 -0000 1.2
--- MxRecord.cs 7 Aug 2006 11:02:38 -0000 1.3
***************
*** 40,48 ****
#region Constructors
! private MxRecord(bool ignore) : this(null, 0)
{
ignore = !!ignore;
}
! public MxRecord(string nameExchange) : this(nameExchange, 0){}
public MxRecord(string nameExchange, short priority)
{
--- 40,49 ----
#region Constructors
! private MxRecord(bool ignore)
! : this(null, 0)
{
ignore = !!ignore;
}
! public MxRecord(string nameExchange) : this(nameExchange, 0) { }
public MxRecord(string nameExchange, short priority)
{
***************
*** 51,55 ****
this.addresses = new ArrayList(2);
}
!
#endregion
--- 52,56 ----
this.addresses = new ArrayList(2);
}
!
#endregion
***************
*** 74,78 ****
#region ISerializable
! internal MxRecord(SerializationInfo info, StreamingContext context)
{
nameexchange = info.GetString("NameExchange");
--- 75,79 ----
#region ISerializable
! internal MxRecord(SerializationInfo info, StreamingContext context)
{
nameexchange = info.GetString("NameExchange");
***************
*** 91,107 ****
#region operators
! public static bool operator ==(MxRecord mx1, MxRecord mx2)
{
return mx1.Equals(mx2);
}
! public static bool operator !=(MxRecord mx1, MxRecord mx2)
{
return !mx1.Equals(mx2);
}
! public static MxRecord operator +(MxRecord mx, IPAddress ip)
{
! if (! (ip == null || mx.IsNull || mx.IPAddresses.Contains(ip)))
mx.IPAddresses.Add(ip);
--- 92,108 ----
#region operators
! public static bool operator ==(MxRecord mx1, MxRecord mx2)
{
return mx1.Equals(mx2);
}
! public static bool operator !=(MxRecord mx1, MxRecord mx2)
{
return !mx1.Equals(mx2);
}
! public static MxRecord operator +(MxRecord mx, IPAddress ip)
{
! if (!(ip == null || mx.IsNull || mx.IPAddresses.Contains(ip)))
mx.IPAddresses.Add(ip);
***************
*** 109,113 ****
}
! public static MxRecord operator -(MxRecord mx, IPAddress ip)
{
if (!(ip == null || mx.IsNull))
--- 110,114 ----
}
! public static MxRecord operator -(MxRecord mx, IPAddress ip)
{
if (!(ip == null || mx.IsNull))
***************
*** 117,123 ****
}
! public override bool Equals(Object obj)
{
! if (!(obj is MxRecord))
return false;
--- 118,124 ----
}
! public override bool Equals(Object obj)
{
! if (!(obj is MxRecord))
return false;
***************
*** 128,140 ****
#endregion
! public override int GetHashCode()
{
return ToString().GetHashCode();
}
! public override string ToString()
{
return NameExchange + ":" + Priority.ToString();
}
}
! };
\ No newline at end of file
--- 129,141 ----
#endregion
! public override int GetHashCode()
{
return ToString().GetHashCode();
}
! public override string ToString()
{
return NameExchange + ":" + Priority.ToString();
}
}
! };
|