Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / Animation / TimeEnumHelper.cs / 1305600 / TimeEnumHelper.cs
//------------------------------------------------------------------------------ // Microsoft Windows Client Platform // Copyright (c) Microsoft Corporation, 2004 // // File: TimeEnumHelper.cs //----------------------------------------------------------------------------- using System; using System.Windows.Media.Animation; namespace MS.Internal { ////// A class for validating enumerated types. /// internal static partial class TimeEnumHelper { // IMPORTANT: These values must be kept current with enum definitions for validation to work // Enums declared in Enums.cs private const int _maxTimeSeekOrigin = (int)TimeSeekOrigin.Duration; // Enums declared in PathAnimationSource.cs private const byte _maxPathAnimationSource = (int)PathAnimationSource.Angle; ////// Determines if the enumerated value is defined (valid) for the given enumerated type /// /// /// The variable whose validity is verified. /// ////// True if valid, false otherwise. /// static internal bool IsValidTimeSeekOrigin(TimeSeekOrigin value) { return (0 <= value && (int)value <= _maxTimeSeekOrigin); } ////// Determines if the enumerated value is defined (valid) for the given enumerated type /// /// /// The variable whose validity is verified. /// ////// True if valid, false otherwise. /// static internal bool IsValidPathAnimationSource(PathAnimationSource value) { return (0 <= value && (byte)value <= _maxPathAnimationSource); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BindableAttribute.cs
- MetafileHeader.cs
- LinqToSqlWrapper.cs
- RecognizerBase.cs
- SafeCoTaskMem.cs
- MenuItemStyleCollection.cs
- StringUtil.cs
- GroupBox.cs
- basecomparevalidator.cs
- documentsequencetextview.cs
- ValidationSummary.cs
- DataSetFieldSchema.cs
- QueueProcessor.cs
- Dispatcher.cs
- WmlLabelAdapter.cs
- Socket.cs
- IIS7UserPrincipal.cs
- Int64Converter.cs
- CollectionEditorDialog.cs
- SQLGuid.cs
- XmlTextReaderImplHelpers.cs
- ObjRef.cs
- ServiceRouteHandler.cs
- ThreadAbortException.cs
- XmlnsPrefixAttribute.cs
- BuildResult.cs
- PeerContact.cs
- WizardSideBarListControlItem.cs
- CustomWebEventKey.cs
- DataGridViewCellValueEventArgs.cs
- BooleanConverter.cs
- PersonalizationDictionary.cs
- ProfileService.cs
- JournalEntryListConverter.cs
- sortedlist.cs
- BinaryVersion.cs
- PasswordTextNavigator.cs
- CustomCredentialPolicy.cs
- SoapIgnoreAttribute.cs
- ReadOnlyCollectionBase.cs
- Registry.cs
- BinHexEncoder.cs
- FixedPosition.cs
- TypePresenter.xaml.cs
- BooleanSwitch.cs
- ExceptionRoutedEventArgs.cs
- WindowsFormsSynchronizationContext.cs
- TemplatedWizardStep.cs
- ChtmlPhoneCallAdapter.cs
- MatrixIndependentAnimationStorage.cs
- ResXResourceSet.cs
- Timer.cs
- PcmConverter.cs
- RoleManagerModule.cs
- AppliedDeviceFiltersEditor.cs
- ValidationHelper.cs
- GenerateTemporaryTargetAssembly.cs
- InstalledFontCollection.cs
- Validator.cs
- XmlTypeAttribute.cs
- _KerberosClient.cs
- UInt64Converter.cs
- X509ChainElement.cs
- PathTooLongException.cs
- CompressionTracing.cs
- SlipBehavior.cs
- WSFederationHttpSecurity.cs
- FloaterParagraph.cs
- ListDictionary.cs
- MetadataCollection.cs
- XmlNodeList.cs
- Storyboard.cs
- ModelPropertyCollectionImpl.cs
- XmlWrappingReader.cs
- ObjectParameterCollection.cs
- SignatureHelper.cs
- GenericIdentity.cs
- DragCompletedEventArgs.cs
- ContainerActivationHelper.cs
- AutoGeneratedFieldProperties.cs
- StorageBasedPackageProperties.cs
- AppSettingsExpressionEditor.cs
- ValidationHelpers.cs
- FormViewUpdateEventArgs.cs
- ObjectDataSourceDisposingEventArgs.cs
- PageThemeParser.cs
- TreeNodeCollection.cs
- SqlBinder.cs
- Command.cs
- StrongNameSignatureInformation.cs
- FixedPageProcessor.cs
- GroupPartitionExpr.cs
- DataMemberFieldEditor.cs
- MarginsConverter.cs
- DataGridView.cs
- URIFormatException.cs
- GeneralTransform3DCollection.cs
- StaticContext.cs
- AnnotationDocumentPaginator.cs
- Int64AnimationBase.cs