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
- SoundPlayer.cs
- ThrowOnMultipleAssignment.cs
- ManualResetEvent.cs
- AnonymousIdentificationSection.cs
- XmlName.cs
- ActivityMarkupSerializer.cs
- InheritedPropertyChangedEventArgs.cs
- XmlWhitespace.cs
- SerTrace.cs
- BoundPropertyEntry.cs
- ConfigurationManagerInternalFactory.cs
- ToolboxComponentsCreatingEventArgs.cs
- CellIdBoolean.cs
- DataBoundLiteralControl.cs
- RandomNumberGenerator.cs
- FormViewPagerRow.cs
- WebControlParameterProxy.cs
- DeobfuscatingStream.cs
- Int32Collection.cs
- StorageMappingItemCollection.cs
- SettingsSavedEventArgs.cs
- DataRecordInternal.cs
- HealthMonitoringSectionHelper.cs
- QueryResults.cs
- __ComObject.cs
- DocumentReferenceCollection.cs
- PolyLineSegment.cs
- ProxySimple.cs
- ComponentChangingEvent.cs
- RawStylusInputCustomDataList.cs
- ConfigXmlElement.cs
- BinHexDecoder.cs
- XsdDataContractExporter.cs
- Polyline.cs
- StructuralCache.cs
- ISAPIApplicationHost.cs
- HostedHttpTransportManager.cs
- SvcMapFileLoader.cs
- Comparer.cs
- TypeConverterAttribute.cs
- DbReferenceCollection.cs
- TemplateComponentConnector.cs
- KeyMatchBuilder.cs
- BinaryUtilClasses.cs
- MultilineStringConverter.cs
- ObjectFullSpanRewriter.cs
- DelegateHelpers.cs
- SerializationInfo.cs
- ServiceElementCollection.cs
- SqlAliaser.cs
- listitem.cs
- Imaging.cs
- LinqDataSourceUpdateEventArgs.cs
- HelpProvider.cs
- SynchronousSendBindingElement.cs
- TracedNativeMethods.cs
- FixedDocument.cs
- ElementAction.cs
- SafeBuffer.cs
- GeometryConverter.cs
- BaseInfoTable.cs
- DrawingContextDrawingContextWalker.cs
- SqlUtil.cs
- TextSerializer.cs
- ConstrainedDataObject.cs
- HttpCachePolicy.cs
- InvalidCastException.cs
- PerformanceCountersElement.cs
- SystemWebCachingSectionGroup.cs
- _Events.cs
- OleDbConnectionFactory.cs
- NaturalLanguageHyphenator.cs
- PingReply.cs
- DesignerAttribute.cs
- _FtpControlStream.cs
- XmlSignatureProperties.cs
- PaperSize.cs
- WebPermission.cs
- DynamicResourceExtensionConverter.cs
- embossbitmapeffect.cs
- webproxy.cs
- DataGridViewTopLeftHeaderCell.cs
- XmlArrayItemAttributes.cs
- DynamicPropertyReader.cs
- ProtocolInformationReader.cs
- ButtonBase.cs
- ILGenerator.cs
- RefreshEventArgs.cs
- PriorityRange.cs
- MatrixKeyFrameCollection.cs
- Stylesheet.cs
- CommonObjectSecurity.cs
- NullableFloatSumAggregationOperator.cs
- EncoderParameter.cs
- ReferencedCollectionType.cs
- XamlTypeMapper.cs
- GlyphRun.cs
- Base64Decoder.cs
- AppSettingsSection.cs
- WizardForm.cs