40 references to Compare
mscorlib (1)
system\datetimeoffset.cs (1)
447
return DateTime.
Compare
(first.UtcDateTime, second.UtcDateTime);
PresentationFramework (18)
src\Framework\System\Windows\Controls\Calendar.cs (3)
1177
return DateTime.
Compare
((DateTime)value, cal.DisplayDateStartInternal) >= 0 && DateTime.
Compare
((DateTime)value, cal.DisplayDateEndInternal) <= 0;
1605
if (DateTime.
Compare
(this.HoverStart.Value, lastSelectedDate.Value) < 0)
src\Framework\System\Windows\Controls\CalendarBlackoutDatesCollection.cs (3)
68
if (DateTime.
Compare
(end, start) > -1)
81
if (DateTime.
Compare
(this[i].Start, rangeStart) == 0 && DateTime.
Compare
(this[i].End, rangeEnd) == 0)
src\Framework\System\Windows\Controls\CalendarDateRange.cs (1)
161
return (DateTime.
Compare
(start, end) <= 0) ? end : start;
src\Framework\System\Windows\Controls\DatePicker.cs (1)
968
if (e.AddedItems.Count > 0 && this.SelectedDate.HasValue && DateTime.
Compare
((DateTime)e.AddedItems[0], this.SelectedDate.Value) != 0)
src\Framework\System\Windows\Controls\DateTimeHelper.cs (2)
72
return DateTime.
Compare
(DiscardTime(dt1).Value, DiscardTime(dt2).Value);
181
Debug.Assert(DateTime.
Compare
(start, end) < 1);
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (1)
531
DateTime.
Compare
(this.Owner.HoverStart.Value, selectedDate) == 0 &&
src\Framework\System\Windows\Controls\SelectedDatesCollection.cs (7)
61
if (DateTime.
Compare
(selectedDate, result) < 0)
88
if (DateTime.
Compare
(selectedDate, result) > 0)
180
if (index == 0 && !(this._owner.SelectedDate.HasValue && DateTime.
Compare
(this._owner.SelectedDate.Value, item) == 0))
282
if (item != null && DateTime.
Compare
(this[index], item) != 0 && Calendar.IsValidDateSelection(this._owner, item))
291
if (index == 0 && !(this._owner.SelectedDate.HasValue && DateTime.
Compare
(this._owner.SelectedDate.Value, item) == 0))
510
while (rangeStart.HasValue && DateTime.
Compare
(end, rangeStart.Value) != -increment);
515
return (DateTime.
Compare
(end, start) >= 0) ? 1 : -1;
System.Data (5)
fx\src\data\System\Data\Common\DateTimeStorage.cs (4)
35
min=(DateTime.
Compare
(values[record],min) < 0) ? values[record] : min;
49
max=(DateTime.
Compare
(values[record],max) >= 0) ? values[record] : max;
90
return DateTime.
Compare
(valueNo1, valueNo2);
105
return DateTime.
Compare
(valueNo1, (DateTime)value);
fx\src\data\System\Data\Filter\BinaryNode.cs (1)
158
return DateTime.
Compare
(Convert.ToDateTime(vLeft, FormatProvider), Convert.ToDateTime(vRight, FormatProvider));
System.IdentityModel (2)
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (1)
1743
if (DateTime.
Compare
(maximumExpirationTime, tokenExpiration.Value) < 0)
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (1)
867
if (DateTime.
Compare
(maximumExpirationTime, token.ValidTo) < 0)
System.Web (1)
Security\ADMembershipProvider.cs (1)
2782
if (DateTime.
Compare
(badPasswordAnswerLockoutTime, DateTime.FromFileTimeUtc((Int64) PropertyManager.GetSearchResultPropertyValue(res, "lockoutTime"))) > 0)
System.Web.Mobile (4)
UI\MobileControls\Adapters\ChtmlCalendarAdapter.cs (1)
243
DateTime.
Compare
(visibleDate, DateTime.Today) != 0 &&
UI\MobileControls\Adapters\WmlCalendarAdapter.cs (1)
225
DateTime.
Compare
(visibleDate, DateTime.Today) != 0 &&
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicCalendarAdapter.cs (1)
210
DateTime.
Compare
(visibleDate, DateTime.Today) != 0 &&
UI\MobileControls\SessionViewState.cs (1)
225
if (DateTime.
Compare
(uniqueID, _sessionUniqueID) != 0)
System.Windows.Forms (6)
winforms\Managed\System\WinForms\MonthCalendar.cs (6)
1066
if (!(todayDateSet) || (DateTime.
Compare
(value, todayDate) != 0)) {
1069
if (DateTime.
Compare
(value, maxDate) > 0) {
1074
if (DateTime.
Compare
(value, minDate) < 0) {
1338
if (DateTime.
Compare
(date, range.Start) >= 0 && DateTime.
Compare
(date, range.End) <= 0) {
1808
if (DateTime.
Compare
( ((DateTime)arrayOfDates[i]).Date, date.Date) == 0) {
System.Xml (2)
System\Xml\Schema\XsdDateTime.cs (2)
479
return DateTime.
Compare
(left.dt, right.dt);
487
return DateTime.
Compare
(left.GetZuluDateTime(), right.GetZuluDateTime());
WindowsBase (1)
Base\MS\Internal\Security\RightsManagement\ClientSession.cs (1)
456
if (DateTime.
Compare
(currentTimeStamp, newTimeStamp) < 0)