CSharpUtils.DateTimeRange.Equals C# (CSharp) Method

Equals() public method

public Equals ( object that ) : bool
that object
return bool
		public override bool Equals(object that)
		{
			if (that is DateTimeRange)
			{
				return ((DateTimeRange)this == (DateTimeRange)that);
			}
			else if (that is DateTime)
			{
				return this.Contains((DateTime)that);
			}
			{
				return false;
			}
		}