Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / SweepDirectionValidation.cs / 1305600 / SweepDirectionValidation.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows.Media { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsSweepDirectionValid(object valueObject) { SweepDirection value = (SweepDirection) valueObject; return (value == SweepDirection.Counterclockwise) || (value == SweepDirection.Clockwise); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows.Media { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsSweepDirectionValid(object valueObject) { SweepDirection value = (SweepDirection) valueObject; return (value == SweepDirection.Counterclockwise) || (value == SweepDirection.Clockwise); } } } // 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
- HttpApplication.cs
- AmbientEnvironment.cs
- SafeArchiveContext.cs
- DoubleAnimation.cs
- RewritingValidator.cs
- Random.cs
- MetadataCollection.cs
- ImageMapEventArgs.cs
- VScrollBar.cs
- DataSourceControlBuilder.cs
- TypeElement.cs
- GuidConverter.cs
- Version.cs
- StackSpiller.Generated.cs
- LocationReference.cs
- AvtEvent.cs
- ChineseLunisolarCalendar.cs
- References.cs
- CancellationToken.cs
- BooleanAnimationUsingKeyFrames.cs
- HttpProfileGroupBase.cs
- MetadataImporter.cs
- NegationPusher.cs
- DoubleIndependentAnimationStorage.cs
- PagePropertiesChangingEventArgs.cs
- BinaryNode.cs
- LogEntryHeaderDeserializer.cs
- Wildcard.cs
- Span.cs
- GridView.cs
- BindingExpressionUncommonField.cs
- CodeArgumentReferenceExpression.cs
- PaintEvent.cs
- SolidColorBrush.cs
- Help.cs
- DuplexSecurityProtocolFactory.cs
- BinaryKeyIdentifierClause.cs
- MenuCommand.cs
- DataGridViewSelectedRowCollection.cs
- StreamInfo.cs
- GetIndexBinder.cs
- WebPartCancelEventArgs.cs
- PolyQuadraticBezierSegment.cs
- DispatcherObject.cs
- UIElementParagraph.cs
- JavaScriptObjectDeserializer.cs
- DiscreteKeyFrames.cs
- XmlBoundElement.cs
- FrameworkElementFactory.cs
- StorageEntityContainerMapping.cs
- TreeView.cs
- RangeContentEnumerator.cs
- InheritanceAttribute.cs
- InputLanguageProfileNotifySink.cs
- TextTreeDeleteContentUndoUnit.cs
- WebPageTraceListener.cs
- WindowsSolidBrush.cs
- DynamicEntity.cs
- SqlDataSourceQueryEditorForm.cs
- XpsFilter.cs
- MessageRpc.cs
- InstanceDescriptor.cs
- NavigationWindow.cs
- XmlReflectionImporter.cs
- XmlCustomFormatter.cs
- DecimalConverter.cs
- StagingAreaInputItem.cs
- ConstraintEnumerator.cs
- UInt32Converter.cs
- RouteItem.cs
- CTreeGenerator.cs
- IResourceProvider.cs
- ButtonField.cs
- StylusSystemGestureEventArgs.cs
- ClientScriptManagerWrapper.cs
- CalendarDesigner.cs
- Point4DConverter.cs
- StaticDataManager.cs
- ContainerSelectorBehavior.cs
- DetailsView.cs
- NullableConverter.cs
- SingleConverter.cs
- CompilerResults.cs
- StringFunctions.cs
- HtmlEmptyTagControlBuilder.cs
- Tile.cs
- AssemblyAssociatedContentFileAttribute.cs
- DataGridParentRows.cs
- SequentialOutput.cs
- SourceFileInfo.cs
- CodeExporter.cs
- InputManager.cs
- DispatcherEventArgs.cs
- ConfigErrorGlyph.cs
- DLinqColumnProvider.cs
- ServiceBusyException.cs
- ExceptionCollection.cs
- isolationinterop.cs
- SqlConnectionFactory.cs
- TypeBrowserDialog.cs