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
- SqlDependencyUtils.cs
- TouchDevice.cs
- SoapAttributeAttribute.cs
- QuestionEventArgs.cs
- XmlSchemaObject.cs
- XmlIlGenerator.cs
- ScrollBar.cs
- CodeGenerator.cs
- TaskSchedulerException.cs
- Storyboard.cs
- ProcessThread.cs
- QuadraticBezierSegment.cs
- Matrix3D.cs
- ApplicationServicesHostFactory.cs
- ObjectDataSourceDisposingEventArgs.cs
- MarkupCompilePass2.cs
- ServiceDefaults.cs
- TypefaceCollection.cs
- LinkAreaEditor.cs
- ByteStack.cs
- SuppressMergeCheckAttribute.cs
- Button.cs
- PropertyTabChangedEvent.cs
- CodeCommentStatementCollection.cs
- BindingsCollection.cs
- NotEqual.cs
- DesignerForm.cs
- ZipPackage.cs
- AxisAngleRotation3D.cs
- AspNetSynchronizationContext.cs
- Utils.cs
- SpeechRecognizer.cs
- CommandBinding.cs
- XPathNodeInfoAtom.cs
- CodeCastExpression.cs
- DataObject.cs
- LazyTextWriterCreator.cs
- XmlSerializerVersionAttribute.cs
- ContextMenu.cs
- SqlWriter.cs
- DataList.cs
- TreeNodeBinding.cs
- ScrollPatternIdentifiers.cs
- DataGrid.cs
- UnsafeNativeMethods.cs
- SrgsGrammarCompiler.cs
- PropertyMap.cs
- InputScopeNameConverter.cs
- EdmTypeAttribute.cs
- SqlBuilder.cs
- ComboBoxItem.cs
- AutoFocusStyle.xaml.cs
- loginstatus.cs
- OutputWindow.cs
- StylusEditingBehavior.cs
- ValueSerializer.cs
- XmlJsonReader.cs
- LiteralDesigner.cs
- WindowsPen.cs
- ToolStripContentPanel.cs
- OutputScopeManager.cs
- BuildProvidersCompiler.cs
- CompressionTransform.cs
- ObjectQuery_EntitySqlExtensions.cs
- HtmlToClrEventProxy.cs
- _AuthenticationState.cs
- UInt64.cs
- OdbcHandle.cs
- SimpleApplicationHost.cs
- HitTestWithGeometryDrawingContextWalker.cs
- AxHost.cs
- EventLogPermissionAttribute.cs
- odbcmetadatacolumnnames.cs
- Pointer.cs
- __Filters.cs
- SoapReflectionImporter.cs
- PKCS1MaskGenerationMethod.cs
- LinkLabel.cs
- StreamHelper.cs
- InstanceHandle.cs
- SqlMetaData.cs
- MetadataCache.cs
- EntityDescriptor.cs
- SqlCommandBuilder.cs
- AnchoredBlock.cs
- MessageParameterAttribute.cs
- LinearKeyFrames.cs
- SiteMapHierarchicalDataSourceView.cs
- ManualResetEvent.cs
- DragDeltaEventArgs.cs
- SendActivityEventArgs.cs
- PrimitiveXmlSerializers.cs
- MsmqIntegrationBindingCollectionElement.cs
- TempEnvironment.cs
- SQLUtility.cs
- MsmqException.cs
- ZipIOLocalFileBlock.cs
- DrawingGroup.cs
- DataMisalignedException.cs
- SmiGettersStream.cs