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
- RectangleGeometry.cs
- TransactionTraceIdentifier.cs
- DataColumnSelectionConverter.cs
- TextProviderWrapper.cs
- EntitySet.cs
- LicenseProviderAttribute.cs
- HttpApplicationFactory.cs
- ReadOnlyDictionary.cs
- safelinkcollection.cs
- ProfileModule.cs
- MimePart.cs
- PtsPage.cs
- GenericAuthenticationEventArgs.cs
- ToolStripGripRenderEventArgs.cs
- InternalSafeNativeMethods.cs
- ConstNode.cs
- VisualStyleRenderer.cs
- IdentifierCollection.cs
- CommonDialog.cs
- DbParameterCollectionHelper.cs
- UidManager.cs
- CompilerError.cs
- ObjectSpanRewriter.cs
- EntryWrittenEventArgs.cs
- ProfileProvider.cs
- ToolStripSplitButton.cs
- ClientRuntimeConfig.cs
- Stroke.cs
- GZipStream.cs
- CommonXSendMessage.cs
- SetterBaseCollection.cs
- Menu.cs
- EdmPropertyAttribute.cs
- EventLogger.cs
- ArrangedElementCollection.cs
- ArgumentOutOfRangeException.cs
- StatementContext.cs
- DecoderFallbackWithFailureFlag.cs
- EnumMember.cs
- EntityKeyElement.cs
- MethodBody.cs
- TableLayoutPanelCellPosition.cs
- HashStream.cs
- VectorCollectionValueSerializer.cs
- WebPartTransformer.cs
- ScalarOps.cs
- WindowsRichEdit.cs
- DateTimeEditor.cs
- WhereaboutsReader.cs
- OutputChannel.cs
- RelationshipConverter.cs
- TemplateParser.cs
- DataTemplateKey.cs
- TextServicesCompartmentContext.cs
- FunctionCommandText.cs
- XMLDiffLoader.cs
- CollectionViewGroupRoot.cs
- DiagnosticsElement.cs
- HtmlInputFile.cs
- OutputCacheSettings.cs
- KeyValuePairs.cs
- Ray3DHitTestResult.cs
- StylusShape.cs
- ListViewItem.cs
- ConfigXmlSignificantWhitespace.cs
- SettingsPropertyWrongTypeException.cs
- MenuCommands.cs
- DataGridViewRowPrePaintEventArgs.cs
- Int32Collection.cs
- DelegateTypeInfo.cs
- HwndSubclass.cs
- Comparer.cs
- CustomValidator.cs
- ErrorItem.cs
- BindingContext.cs
- ExpressionTextBox.xaml.cs
- UnmanagedBitmapWrapper.cs
- XmlLinkedNode.cs
- pingexception.cs
- KeyGestureConverter.cs
- ExtensionDataReader.cs
- NullableDecimalSumAggregationOperator.cs
- SchemaSetCompiler.cs
- ProviderBase.cs
- FixedSOMPageConstructor.cs
- PersonalizationProviderHelper.cs
- HttpResponseHeader.cs
- XmlExceptionHelper.cs
- RtType.cs
- TypedDatasetGenerator.cs
- RSAPKCS1SignatureDeformatter.cs
- TileBrush.cs
- UrlPath.cs
- ToolTip.cs
- DesignBindingValueUIHandler.cs
- UpdateCompiler.cs
- TypeDescriptorFilterService.cs
- XmlEnumAttribute.cs
- ProviderSettings.cs
- AssociatedControlConverter.cs