Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / System.Runtime.DurableInstancing / System / Runtime / TimeSpanOrInfiniteValidator.cs / 1305376 / TimeSpanOrInfiniteValidator.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.Runtime { using System; using System.Configuration; class TimeSpanOrInfiniteValidator : TimeSpanValidator { public TimeSpanOrInfiniteValidator(TimeSpan minValue, TimeSpan maxValue) : base(minValue, maxValue) { } public override void Validate(object value) { if (value.GetType() == typeof(TimeSpan) && (TimeSpan)value == TimeSpan.MaxValue) { return; // we're good } base.Validate(value); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Control.cs
- SiteMap.cs
- ListSourceHelper.cs
- FrameworkElement.cs
- DBSqlParserColumnCollection.cs
- StaticTextPointer.cs
- RegexFCD.cs
- UriSectionData.cs
- XmlDocumentSchema.cs
- recordstatescratchpad.cs
- Types.cs
- OleDbTransaction.cs
- BindingExpression.cs
- LabelExpression.cs
- WebCategoryAttribute.cs
- NameValueCollection.cs
- NeutralResourcesLanguageAttribute.cs
- OLEDB_Enum.cs
- validation.cs
- ValueHandle.cs
- StringAttributeCollection.cs
- InputReferenceExpression.cs
- TypeUtils.cs
- CrossSiteScriptingValidation.cs
- ServiceThrottlingBehavior.cs
- PopupRoot.cs
- RuntimeIdentifierPropertyAttribute.cs
- WorkerRequest.cs
- GACMembershipCondition.cs
- EventLevel.cs
- OrCondition.cs
- PerformanceCounterPermissionAttribute.cs
- CompoundFileStorageReference.cs
- QilTypeChecker.cs
- DbConnectionPoolGroup.cs
- WindowProviderWrapper.cs
- MultiBinding.cs
- SimpleRecyclingCache.cs
- ThreadNeutralSemaphore.cs
- HttpModuleAction.cs
- ControlAdapter.cs
- UserControlParser.cs
- MetabaseSettingsIis7.cs
- UpdateTranslator.cs
- Graphics.cs
- XmlEventCache.cs
- IOThreadTimer.cs
- HwndProxyElementProvider.cs
- HttpConfigurationContext.cs
- XmlComplianceUtil.cs
- TreePrinter.cs
- KeyValueInternalCollection.cs
- LayoutTable.cs
- XPathNavigator.cs
- HttpStreamXmlDictionaryWriter.cs
- ClientProxyGenerator.cs
- VisualTarget.cs
- UserNameSecurityToken.cs
- Clock.cs
- filewebresponse.cs
- ResourceReader.cs
- MouseButton.cs
- InputElement.cs
- SmiEventSink_DeferedProcessing.cs
- ConfigurationStrings.cs
- SafeLibraryHandle.cs
- ThreadExceptionEvent.cs
- WebPartManager.cs
- PermissionSet.cs
- RootBuilder.cs
- TypeReference.cs
- WindowHelperService.cs
- RuleConditionDialog.Designer.cs
- SystemResourceHost.cs
- CultureInfo.cs
- SessionStateContainer.cs
- UnauthorizedWebPart.cs
- UpDownBase.cs
- LogicalCallContext.cs
- PropertyFilter.cs
- BitmapImage.cs
- DataSourceViewSchemaConverter.cs
- RowsCopiedEventArgs.cs
- DataKeyArray.cs
- httpapplicationstate.cs
- infer.cs
- Setter.cs
- OleDbEnumerator.cs
- XmlILModule.cs
- UTF7Encoding.cs
- TemplateNameScope.cs
- Application.cs
- TextLineResult.cs
- PageThemeParser.cs
- WindowsUpDown.cs
- HtmlContainerControl.cs
- DesignerVerb.cs
- CompressStream.cs
- activationcontext.cs
- DataGridAutomationPeer.cs