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
- TextEndOfLine.cs
- JsonDeserializer.cs
- TableLayoutStyleCollection.cs
- PersonalizationState.cs
- XmlValidatingReaderImpl.cs
- ManagementOperationWatcher.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- ThreadBehavior.cs
- Primitive.cs
- KeyPullup.cs
- SqlErrorCollection.cs
- NumberFunctions.cs
- UpdatePanelTriggerCollection.cs
- CodeGen.cs
- ErrorEventArgs.cs
- InfoCardSymmetricAlgorithm.cs
- RemotingAttributes.cs
- DurableRuntimeValidator.cs
- OutputWindow.cs
- TextOutput.cs
- WebContext.cs
- NotifyInputEventArgs.cs
- AssemblyInfo.cs
- WebPartCloseVerb.cs
- JumpPath.cs
- DrawingContextWalker.cs
- GridViewActionList.cs
- ServiceProviders.cs
- MetabaseReader.cs
- CodeAssignStatement.cs
- TransactionChannelFactory.cs
- ErrorWebPart.cs
- NonParentingControl.cs
- NonSerializedAttribute.cs
- CrossContextChannel.cs
- BooleanKeyFrameCollection.cs
- DocumentReferenceCollection.cs
- GridViewCancelEditEventArgs.cs
- SafeHandle.cs
- SchemaNamespaceManager.cs
- Byte.cs
- MimeParameters.cs
- TagPrefixCollection.cs
- IisTraceListener.cs
- PropertyConverter.cs
- PolygonHotSpot.cs
- DataGridAddNewRow.cs
- Base64Stream.cs
- ConfigsHelper.cs
- WorkerRequest.cs
- ResolveCriteria11.cs
- ConstraintConverter.cs
- ColorAnimationBase.cs
- ManipulationDevice.cs
- HyperLinkField.cs
- XmlChoiceIdentifierAttribute.cs
- DefaultTypeArgumentAttribute.cs
- EdmSchemaError.cs
- MeasurementDCInfo.cs
- SqlConnectionFactory.cs
- MarkupObject.cs
- Int32AnimationUsingKeyFrames.cs
- OleStrCAMarshaler.cs
- InternalResources.cs
- Wrapper.cs
- CodeComment.cs
- QilGeneratorEnv.cs
- DataRowComparer.cs
- SqlBooleanMismatchVisitor.cs
- DataGridCheckBoxColumn.cs
- HMACRIPEMD160.cs
- MetafileHeader.cs
- StringUtil.cs
- GenericUriParser.cs
- DataViewManagerListItemTypeDescriptor.cs
- ValidatorCollection.cs
- TabOrder.cs
- DateTimeFormatInfoScanner.cs
- Propagator.JoinPropagator.cs
- BrowserInteropHelper.cs
- GCHandleCookieTable.cs
- CodeDomConfigurationHandler.cs
- CategoryGridEntry.cs
- CodeAttributeDeclarationCollection.cs
- DocumentPageViewAutomationPeer.cs
- MSAAEventDispatcher.cs
- HttpCapabilitiesEvaluator.cs
- RevocationPoint.cs
- PasswordDeriveBytes.cs
- DesignerListAdapter.cs
- Style.cs
- HandlerWithFactory.cs
- MatrixTransform.cs
- ContentFilePart.cs
- GlobalizationAssembly.cs
- RolePrincipal.cs
- CommentAction.cs
- WaitHandleCannotBeOpenedException.cs
- rsa.cs
- DataException.cs