127 references to MaxValue
mscorlib (21)
system\datetime.cs (1)
719
offsetTicks = TimeZoneInfo.GetLocalUtcOffset(DateTime.
MaxValue
, TimeZoneInfoOptions.NoThrowOnInvalidTime).Ticks;
system\globalization\calendar.cs (1)
117
return (DateTime.
MaxValue
);
system\globalization\CalendricalCalculationsHelper.cs (1)
77
return new DateTime(Math.Min((long)(Math.Floor(numberOfDays) * GregorianCalendar.TicksPerDay), DateTime.
MaxValue
.Ticks)).Year;
system\globalization\gregoriancalendar.cs (1)
95
return (DateTime.
MaxValue
);
system\globalization\hijricalendar.cs (1)
87
internal static readonly DateTime calendarMaxValue = DateTime.
MaxValue
;
system\globalization\japanesecalendar.cs (1)
65
return (DateTime.
MaxValue
);
system\globalization\juliancalendar.cs (1)
69
return (DateTime.
MaxValue
);
system\globalization\koreancalendar.cs (1)
67
return (DateTime.
MaxValue
);
system\globalization\Persiancalendar.cs (1)
51
internal static DateTime maxDate = DateTime.
MaxValue
;
system\globalization\taiwancalendar.cs (1)
80
return (DateTime.
MaxValue
);
system\globalization\thaibuddhistcalendar.cs (1)
58
return (DateTime.
MaxValue
);
system\timezoneinfo.cs (10)
1099
AdjustmentRule rule = CreateAdjustmentRuleFromTimeZoneInformation(regZone, DateTime.MinValue.Date, DateTime.
MaxValue
.Date, zone.Bias);
1332
if (ticks > DateTime.
MaxValue
.Ticks) {
1333
utcConverted = DateTime.
MaxValue
;
1346
if (ticks > DateTime.
MaxValue
.Ticks) {
1347
localConverted = DateTime.
MaxValue
;
1576
if (rule.IsEndDateMarkerForEndOfYear() && daylightTime.End.Year < DateTime.
MaxValue
.Year) {
2060
rule = zone.GetAdjustmentRuleForTime(DateTime.
MaxValue
);
2322
defaultTimeZoneInformation, DateTime.MinValue.Date, DateTime.
MaxValue
.Date, defaultBaseUtcOffset);
2362
AdjustmentRule rule = CreateAdjustmentRuleFromTimeZoneInformation(dtzi, DateTime.MinValue.Date, DateTime.
MaxValue
.Date, defaultBaseUtcOffset);
2414
DateTime.
MaxValue
.Date, // MaxValue
PresentationCore (1)
Core\CSharp\MS\Internal\FontCache\FontSource.cs (1)
208
return DateTime.
MaxValue
;
PresentationFramework (8)
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
2254
stopTime = DateTime.
MaxValue
;
src\Framework\System\Windows\Controls\Calendar.cs (3)
673
return this.DisplayDateEnd.GetValueOrDefault(DateTime.
MaxValue
);
1388
if (DateTimeHelper.CompareYearMonth(DateTime.
MaxValue
, selectedDate.Value) > 0)
1396
selectedDate = DateTime.
MaxValue
;
src\Framework\System\Windows\Controls\CalendarDateRange.cs (1)
26
this(DateTime.MinValue, DateTime.
MaxValue
)
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (3)
1051
bool isMaxMonth = DateTimeHelper.CompareYearMonth(firstDayOfMonth, DateTime.
MaxValue
) >= 0;
1217
if (DateTimeHelper.CompareYearMonth(firstDayOfMonth, DateTime.
MaxValue
) == 0)
1254
if (year <= DateTime.
MaxValue
.Year && year >= DateTime.MinValue.Year)
System (4)
net\System\Net\Cache\RequestCachePolicy.cs (1)
242
if (m_LastSyncDateUtc == DateTime.MinValue || m_LastSyncDateUtc == DateTime.
MaxValue
) {
net\System\Net\cookiecollection.cs (1)
177
m_TimeStamp = DateTime.
MaxValue
;
net\System\Net\cookiecontainer.cs (2)
378
DateTime oldUsed = DateTime.
MaxValue
;
480
if (oldUsed == DateTime.
MaxValue
) {
System.Activities (1)
System\Activities\Statements\TimerTable.cs (1)
136
return DateTime.
MaxValue
;
System.Data (7)
fx\src\data\System\Data\Common\DateTimeStorage.cs (1)
31
DateTime min = DateTime.
MaxValue
;
fx\src\data\System\Data\ProviderBase\DbConnectionPoolAuthenticationContext.cs (1)
57
Debug.Assert(expirationTime > DateTime.MinValue && expirationTime < DateTime.
MaxValue
);
fx\src\data\System\Data\SqlClient\SqlDependency.cs (2)
238
private DateTime _expirationTime = DateTime.
MaxValue
;
1075
if(_expirationTime == DateTime.
MaxValue
) {
fx\src\data\System\Data\SqlClient\SqlDependencyUtils.cs (1)
525
DateTime newNextTimeout = DateTime.
MaxValue
;
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (2)
87
private static readonly DateTime MaxDateTime = DateTime.
MaxValue
;
275
if (value == DateTime.
MaxValue
)
System.IdentityModel (12)
System\IdentityModel\DateTimeUtil.cs (2)
22
if (timespan >= TimeSpan.Zero && DateTime.
MaxValue
- time <= timespan)
54
return new DateTime(DateTime.
MaxValue
.Ticks, kind);
System\IdentityModel\Metadata\MetadataSerializer.cs (1)
2764
if (roleDescriptor.ValidUntil != null && roleDescriptor.ValidUntil != DateTime.
MaxValue
)
System\IdentityModel\Metadata\RoleDescriptor.cs (1)
21
DateTime validUntil = DateTime.
MaxValue
;
System\IdentityModel\SecurityUtils.cs (2)
56
return new DateTime(DateTime.
MaxValue
.Ticks - TimeSpan.TicksPerDay, DateTimeKind.Utc);
171
DateTime curExpirationTime = (expirationTime > DateTime.
MaxValue
.Subtract(maxClockSkew)) ? expirationTime : expirationTime.Add(maxClockSkew);
System\IdentityModel\Tokens\DefaultTokenReplayCache.cs (1)
109
if (DateTime.Equals(expirationTime, DateTime.
MaxValue
))
System\IdentityModel\Tokens\Saml2SecurityToken.cs (1)
116
return DateTime.
MaxValue
;
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (1)
1740
tokenExpiration = tokenExpiration ?? DateTime.
MaxValue
;
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (1)
49
static DateTime WCFMaxValue = new DateTime(DateTime.
MaxValue
.Ticks - TimeSpan.TicksPerDay, DateTimeKind.Utc);
System\ServiceModel\Security\Tokens\BinarySecretSecurityToken.cs (1)
99
get { return DateTime.
MaxValue
; }
System\ServiceModel\Security\Tokens\WrappedKeySecurityToken.cs (1)
126
get { return DateTime.
MaxValue
; }
System.Runtime.Caching (1)
System\Caching\MemoryCacheEntry.cs (1)
42
return _utcAbsExp < DateTime.
MaxValue
;
System.Runtime.Serialization (3)
System\Runtime\Serialization\Json\JsonWriterDelegator.cs (1)
214
if ((tickCount > DateTime.
MaxValue
.Ticks) || (tickCount < DateTime.MinValue.Ticks))
System\Xml\XmlConverter.cs (2)
730
result = DateTime.
MaxValue
;
833
if (hourDelta >= 0 && (value < DateTime.
MaxValue
- ts) ||
System.ServiceModel (5)
System\ServiceModel\Dispatcher\TransactedBatchContext.cs (1)
28
this.commitNotLaterThan = DateTime.
MaxValue
;
System\ServiceModel\Security\SecurityUtils.cs (2)
329
DateTime curExpirationTime = (expirationTime > DateTime.
MaxValue
.Subtract(maxClockSkew)) ? expirationTime : expirationTime.Add(maxClockSkew);
374
return new DateTime(DateTime.
MaxValue
.Ticks - TimeSpan.TicksPerDay, DateTimeKind.Utc);
System\ServiceModel\Security\TimeBoundedCache.cs (2)
348
Fx.Assert(item.ExpirationTime == DateTime.
MaxValue
|| item.ExpirationTime.Kind == DateTimeKind.Utc, "");
504
Fx.Assert( expirationTime == DateTime.
MaxValue
|| expirationTime.Kind == DateTimeKind.Utc, "");
System.ServiceModel.Internals (7)
System\Runtime\BackoffTimeoutHelper.cs (3)
56
this.deadline = DateTime.
MaxValue
;
67
if (this.deadline == DateTime.
MaxValue
)
120
if (this.deadline != DateTime.
MaxValue
)
System\Runtime\TimeoutHelper.cs (4)
22
this.deadline = DateTime.
MaxValue
;
84
if (timeout >= TimeSpan.Zero && DateTime.
MaxValue
- time <= timeout)
86
return DateTime.
MaxValue
;
117
else if (this.deadline == DateTime.
MaxValue
)
System.Web (25)
Cache\cache.cs (1)
174
public static readonly DateTime NoAbsoluteExpiration = DateTime.
MaxValue
;
Cache\CacheDependency.cs (10)
97
Init(true, null, null, null, DateTime.
MaxValue
);
106
this (filename, DateTime.
MaxValue
) {
127
Init(true, filenames, null, null, DateTime.
MaxValue
);
142
Init(true, filenames, cachekeys, null, DateTime.
MaxValue
);
153
Init(true, filenames, cachekeys, dependency, DateTime.
MaxValue
);
163
this(dummy, filename, DateTime.
MaxValue
) {
177
Init(false, filenames, null, null, DateTime.
MaxValue
);
185
Init(false, filenames, cachekeys, null, DateTime.
MaxValue
);
193
Init(false, filenames, cachekeys, dependency, DateTime.
MaxValue
);
480
if (utcStart < DateTime.
MaxValue
) {
Cache\CacheEntry.cs (1)
216
return _utcExpires < DateTime.
MaxValue
;
Compilation\TimeStampChecker.cs (2)
48
if (storedValue == DateTime.
MaxValue
) {
55
_timeStamps[virtualPath] = DateTime.
MaxValue
;
Hosting\VirtualPathProvider.cs (1)
272
new SingleObjectCollection(virtualPath.VirtualPathString), DateTime.
MaxValue
);
httpserverutility.cs (2)
1514
if (dt < DateTime.
MaxValue
.AddDays(-1) && dt > DateTime.MinValue.AddDays(1))
1524
if (dt < DateTime.
MaxValue
.AddDays(-1) && dt > DateTime.MinValue.AddDays(1))
Management\webeventbuffer.cs (2)
312
DateTime lastFlushTime = DateTime.
MaxValue
;
512
Debug.Assert(lastFlushTime != DateTime.
MaxValue
, "lastFlushTime != DateTime.MaxValue");
UI\PartialCachingControl.cs (2)
300
if (_utcExpirationTime == DateTime.
MaxValue
)
310
_utcExpirationTime = DateTime.
MaxValue
;
UI\WebParts\PersonalizationAdministration.cs (1)
25
internal static readonly DateTime DefaultInactiveSinceDate = DateTime.
MaxValue
;
Util\DateTimeUtil.cs (3)
24
static readonly DateTime MaxValueMinusOneDay = DateTime.
MaxValue
.AddDays(-1);
40
return DateTime.
MaxValue
;
52
return DateTime.
MaxValue
;
System.Web.Mobile (1)
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicPageAdapter.cs (1)
405
Page.Cache.Insert(writer.CacheKey, writer.GetStyles (), null, DateTime.
MaxValue
, _cacheExpirationTime);
System.Windows.Forms (6)
winforms\Managed\System\WinForms\DateTimePicker.cs (2)
105
private DateTime max = DateTime.
MaxValue
;
1529
return max != MaximumDateTime && max != DateTime.
MaxValue
;
winforms\Managed\System\WinForms\MonthCalendar.cs (3)
131
private DateTime maxDate = DateTime.
MaxValue
;
1860
MaxDate = DateTime.
MaxValue
;
2204
return maxDate != DateTimePicker.MaximumDateTime && maxDate != DateTime.
MaxValue
;
winforms\Managed\System\WinForms\SelectionRange.cs (1)
38
private DateTime end = DateTime.
MaxValue
.Date;
System.Workflow.Runtime (10)
Hosting\SqlWorkflowPersistenceService.cs (6)
182
command.Parameters.Add(this.dbResourceAllocator.NewDbParameter("@ownedUntil", ownedUntil == DateTime.
MaxValue
? SqlDateTime.MaxValue : ownedUntil));
258
command.Parameters.Add(this.dbResourceAllocator.NewDbParameter("@ownedUntil", ownedUntil == DateTime.
MaxValue
? SqlDateTime.MaxValue : ownedUntil));
307
command.Parameters.Add(this.dbResourceAllocator.NewDbParameter("@ownedUntil", ownedUntil == DateTime.
MaxValue
? SqlDateTime.MaxValue : ownedUntil));
372
command.Parameters.Add(this.dbResourceAllocator.NewDbParameter("@ownedUntil", ownedUntil == DateTime.
MaxValue
? SqlDateTime.MaxValue : ownedUntil));
424
command.Parameters.Add(this.dbResourceAllocator.NewDbParameter("@ownedUntil", timeout == DateTime.
MaxValue
? SqlDateTime.MaxValue : timeout));
730
timeout = DateTime.
MaxValue
;
Tracking\SqlTrackingQuery.cs (3)
195
if (DateTime.MinValue != opt.StatusMinDateTime || DateTime.
MaxValue
!= opt.StatusMaxDateTime)
286
private DateTime _min = DateTime.MinValue, _max = DateTime.
MaxValue
;
319
_max = DateTime.
MaxValue
;
WorkflowExecutor.cs (1)
1373
return sub == null ? DateTime.
MaxValue
: sub.ExpiresAt;
System.Xml (3)
System\Xml\Schema\XsdDateTime.cs (3)
417
if (ticks > DateTime.
MaxValue
.Ticks)
421
if (ticks > DateTime.
MaxValue
.Ticks)
422
ticks = DateTime.
MaxValue
.Ticks;
WindowsBase (12)
Base\MS\Internal\Security\RightsManagement\ClientSession.cs (2)
1709
DateTime timeUntil = DateTime.
MaxValue
;
1752
DateTime.
MaxValue
);
Base\MS\Internal\Security\RightsManagement\IssuanceLicense.cs (5)
114
if ((validFrom != DateTime.MinValue) || (validUntil != DateTime.
MaxValue
))
467
if ((grant.ValidFrom != DateTime.MinValue) || (grant.ValidUntil != DateTime.
MaxValue
))
550
validUntil = validUntilSysTime.GetDateTime(DateTime.
MaxValue
);
806
validUntil = DateTime.
MaxValue
;
892
timeUntil = timeUntilTemp.GetDateTime(DateTime.
MaxValue
);
Base\System\Security\RightsManagement\Grant.cs (1)
47
: this(user, right, DateTime.MinValue, DateTime.
MaxValue
)
Base\System\Security\RightsManagement\UnsignedPublishLicense.cs (4)
79
DateTime.
MaxValue
, // validUntil, - default
125
DateTime.
MaxValue
, // validUntil, - default
272
DateTime.
MaxValue
,
301
DateTime.
MaxValue
, // validUntil, - default