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
- EpmSyndicationContentSerializer.cs
- DataObjectFieldAttribute.cs
- XsltLibrary.cs
- WithStatement.cs
- Soap.cs
- ConfigXmlAttribute.cs
- DataBinder.cs
- SystemIPGlobalStatistics.cs
- WebPartDisplayModeCollection.cs
- Vector3DCollectionValueSerializer.cs
- _SslState.cs
- BCryptNative.cs
- Compensation.cs
- ApplicationBuildProvider.cs
- ReferencedType.cs
- ItemDragEvent.cs
- Membership.cs
- SystemInfo.cs
- SendMailErrorEventArgs.cs
- TCPListener.cs
- QualificationDataAttribute.cs
- ModifiableIteratorCollection.cs
- IntellisenseTextBox.cs
- MethodBuilderInstantiation.cs
- DataGridViewColumn.cs
- ByteStreamGeometryContext.cs
- XmlNodeReader.cs
- GetWorkflowTree.cs
- DiagnosticTraceSource.cs
- MethodExpression.cs
- StagingAreaInputItem.cs
- DataGridViewColumn.cs
- ArrowControl.xaml.cs
- ObjectDataProvider.cs
- OutputCacheSettingsSection.cs
- CatalogPartCollection.cs
- OracleRowUpdatingEventArgs.cs
- WebPartsPersonalization.cs
- SmtpLoginAuthenticationModule.cs
- COSERVERINFO.cs
- WeakEventManager.cs
- ContentPropertyAttribute.cs
- DataListItem.cs
- JsonFormatReaderGenerator.cs
- ControlIdConverter.cs
- DataServiceProviderWrapper.cs
- WebPartsSection.cs
- Font.cs
- Line.cs
- SyndicationFeedFormatter.cs
- DirectoryInfo.cs
- SoapCodeExporter.cs
- CompilerLocalReference.cs
- Utils.cs
- CustomError.cs
- FolderBrowserDialog.cs
- CalendarTable.cs
- CompensatableSequenceActivity.cs
- InternalConfigConfigurationFactory.cs
- UInt16Storage.cs
- LoginName.cs
- ConstNode.cs
- ToolboxItemFilterAttribute.cs
- XmlSchemaChoice.cs
- TypeDescriptionProviderAttribute.cs
- RoutedEvent.cs
- Bind.cs
- PageContentAsyncResult.cs
- TableSectionStyle.cs
- DocumentApplicationJournalEntry.cs
- AppDomainInfo.cs
- CryptoHelper.cs
- XmlUtilWriter.cs
- XsltException.cs
- SchemaMapping.cs
- StringAnimationUsingKeyFrames.cs
- ProxyHwnd.cs
- Annotation.cs
- CodeVariableDeclarationStatement.cs
- RegexWorker.cs
- FontSourceCollection.cs
- ClientSideQueueItem.cs
- QueryContinueDragEventArgs.cs
- ErrorView.xaml.cs
- HttpRequestWrapper.cs
- CaseKeyBox.ViewModel.cs
- Int32CollectionConverter.cs
- PatternMatchRules.cs
- StrokeNodeEnumerator.cs
- __Error.cs
- LoginName.cs
- CollectionViewGroupInternal.cs
- CodeDOMProvider.cs
- OrderByBuilder.cs
- ParameterToken.cs
- TextElementEnumerator.cs
- BatchWriter.cs
- CqlLexerHelpers.cs
- DataGridViewAddColumnDialog.cs
- ExpressionLink.cs