Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / Animation / TimeEnumHelper.cs / 1 / 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
- TextRangeProviderWrapper.cs
- TileBrush.cs
- XsltLibrary.cs
- PolicyLevel.cs
- ColorIndependentAnimationStorage.cs
- StaticTextPointer.cs
- ControlBuilderAttribute.cs
- OleCmdHelper.cs
- Glyph.cs
- SByte.cs
- PropertyBuilder.cs
- HostingEnvironment.cs
- safelink.cs
- RecipientInfo.cs
- RepeaterItem.cs
- WorkflowMessageEventHandler.cs
- KeyValuePair.cs
- ElementNotEnabledException.cs
- TextEffect.cs
- AsyncPostBackErrorEventArgs.cs
- DropDownButton.cs
- SaveFileDialog.cs
- SpanIndex.cs
- BitmapEffectDrawingContent.cs
- WebResourceAttribute.cs
- CompiledQuery.cs
- ReferenceTypeElement.cs
- FormViewDeleteEventArgs.cs
- DockingAttribute.cs
- Clause.cs
- DocumentViewerBaseAutomationPeer.cs
- ProvidePropertyAttribute.cs
- ListCollectionView.cs
- ResourceProviderFactory.cs
- NamedPipeDuplicateContext.cs
- HandledEventArgs.cs
- WebPartConnectionsCloseVerb.cs
- XPathMessageFilterTable.cs
- HtmlShimManager.cs
- QuadraticBezierSegment.cs
- OneOfElement.cs
- TemplateBaseAction.cs
- DocobjHost.cs
- IntSecurity.cs
- XmlCollation.cs
- AuthenticateEventArgs.cs
- FloaterParagraph.cs
- PolicyException.cs
- ReadContentAsBinaryHelper.cs
- ProfileEventArgs.cs
- ParameterModifier.cs
- ListViewInsertionMark.cs
- QueryInterceptorAttribute.cs
- StorageSetMapping.cs
- StrongNamePublicKeyBlob.cs
- ClientSession.cs
- AssemblyName.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- DataFieldConverter.cs
- ObjectListCommandEventArgs.cs
- EpmCustomContentSerializer.cs
- EntityViewGenerator.cs
- MobileControlsSectionHelper.cs
- DiffuseMaterial.cs
- DiscriminatorMap.cs
- DocumentViewerAutomationPeer.cs
- ApplicationDirectory.cs
- CollectionViewGroupInternal.cs
- DictionaryBase.cs
- PerformanceCounterCategory.cs
- CodeGenerationManager.cs
- SynchronizedPool.cs
- SQLDouble.cs
- RemotingException.cs
- MexTcpBindingElement.cs
- OracleFactory.cs
- HierarchicalDataBoundControl.cs
- DefaultValueConverter.cs
- StaticTextPointer.cs
- LoadedOrUnloadedOperation.cs
- StateElementCollection.cs
- SafeNativeMethods.cs
- SerialErrors.cs
- TextOnlyOutput.cs
- ProjectionPruner.cs
- ForeignConstraint.cs
- TextSerializer.cs
- FileReservationCollection.cs
- TraceHelpers.cs
- ObjectIDGenerator.cs
- WebPartAddingEventArgs.cs
- ValueConversionAttribute.cs
- SerializationFieldInfo.cs
- CommandLibraryHelper.cs
- ComplexBindingPropertiesAttribute.cs
- TraceHandlerErrorFormatter.cs
- X509PeerCertificateAuthentication.cs
- StringStorage.cs
- Form.cs
- ManualResetEvent.cs