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
- RootAction.cs
- DeflateStreamAsyncResult.cs
- DataServiceResponse.cs
- PeerInvitationResponse.cs
- SoapMessage.cs
- Types.cs
- SystemException.cs
- IntegerValidatorAttribute.cs
- TreeViewImageKeyConverter.cs
- MetadataUtilsSmi.cs
- ItemDragEvent.cs
- NullableBoolConverter.cs
- CompModHelpers.cs
- NameValueCache.cs
- XmlHierarchicalDataSourceView.cs
- TextEndOfLine.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- GlyphsSerializer.cs
- MailSettingsSection.cs
- SwitchAttribute.cs
- ControlPager.cs
- DocumentPaginator.cs
- MemberHolder.cs
- ISAPIWorkerRequest.cs
- TextTreeTextNode.cs
- ErrorTableItemStyle.cs
- ExceptionHandlersDesigner.cs
- SystemThemeKey.cs
- WindowInteractionStateTracker.cs
- SiteMapNodeItemEventArgs.cs
- XmlSchemaIdentityConstraint.cs
- PersistStreamTypeWrapper.cs
- RegexInterpreter.cs
- AccessDataSource.cs
- EventSinkHelperWriter.cs
- LayoutExceptionEventArgs.cs
- OneToOneMappingSerializer.cs
- EnumType.cs
- NativeMethods.cs
- Helpers.cs
- ContextItemManager.cs
- ListViewItemMouseHoverEvent.cs
- PreservationFileWriter.cs
- IndexedString.cs
- StateMachineAction.cs
- RemoteWebConfigurationHost.cs
- Deflater.cs
- AnnotationObservableCollection.cs
- Constant.cs
- PerspectiveCamera.cs
- SQLString.cs
- ChannelParameterCollection.cs
- FileStream.cs
- AsyncCompletedEventArgs.cs
- NetworkInformationPermission.cs
- FormViewRow.cs
- NamespaceImport.cs
- BasicExpressionVisitor.cs
- RegexNode.cs
- TextSerializer.cs
- MemoryStream.cs
- TextTreeUndo.cs
- HttpRuntimeSection.cs
- SequenceQuery.cs
- HttpRuntimeSection.cs
- DetailsViewActionList.cs
- HttpListenerException.cs
- KeyEvent.cs
- DBConnection.cs
- SrgsElement.cs
- RtType.cs
- RowTypePropertyElement.cs
- VisualStyleInformation.cs
- ServiceModelEnumValidatorAttribute.cs
- DeferredSelectedIndexReference.cs
- BorderGapMaskConverter.cs
- WebPartPersonalization.cs
- AssertUtility.cs
- ToolStripLabel.cs
- TargetInvocationException.cs
- UnsafeNativeMethods.cs
- TraceContextEventArgs.cs
- StateManagedCollection.cs
- ThemeableAttribute.cs
- IntegrationExceptionEventArgs.cs
- PerformanceCounterPermission.cs
- IndexedWhereQueryOperator.cs
- ManifestSignatureInformation.cs
- CompilationLock.cs
- EpmAttributeNameBuilder.cs
- XmlWriterDelegator.cs
- HttpModuleActionCollection.cs
- RMEnrollmentPage2.cs
- Label.cs
- Synchronization.cs
- SchemeSettingElement.cs
- RawStylusInputCustomDataList.cs
- Point3DCollection.cs
- Viewport3DAutomationPeer.cs
- SqlCacheDependencyDatabase.cs