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
- BadImageFormatException.cs
- ChannelBinding.cs
- oledbmetadatacolumnnames.cs
- InvalidPrinterException.cs
- ClearTypeHintValidation.cs
- StringFormat.cs
- FontDifferentiator.cs
- GrabHandleGlyph.cs
- DataGridCommandEventArgs.cs
- KeyValuePair.cs
- _Rfc2616CacheValidators.cs
- ConstraintCollection.cs
- NullRuntimeConfig.cs
- TraceSection.cs
- GridViewColumnCollectionChangedEventArgs.cs
- DoubleCollection.cs
- RuntimeConfigLKG.cs
- X509Extension.cs
- ImageCodecInfo.cs
- ToolStripItemEventArgs.cs
- PartitionResolver.cs
- EditingMode.cs
- ToolStripGripRenderEventArgs.cs
- TraceFilter.cs
- AssociationSet.cs
- Console.cs
- ResourcePermissionBaseEntry.cs
- ObjectTokenCategory.cs
- WebPartDisplayModeCancelEventArgs.cs
- ActivationServices.cs
- DrawingContextDrawingContextWalker.cs
- SubMenuStyleCollection.cs
- DataGridCellsPresenter.cs
- CompareInfo.cs
- TypeGeneratedEventArgs.cs
- DataShape.cs
- CellNormalizer.cs
- XmlNotation.cs
- figurelengthconverter.cs
- DataObjectPastingEventArgs.cs
- StructuredTypeEmitter.cs
- CodeValidator.cs
- PolyQuadraticBezierSegment.cs
- LayoutEngine.cs
- IIS7UserPrincipal.cs
- CodeSubDirectoriesCollection.cs
- BuildProvidersCompiler.cs
- MemoryPressure.cs
- SQLBytesStorage.cs
- Model3DGroup.cs
- Message.cs
- ScriptingProfileServiceSection.cs
- DataGridViewIntLinkedList.cs
- SettingsAttributes.cs
- ParameterSubsegment.cs
- XsltContext.cs
- ConnectivityStatus.cs
- exports.cs
- ThreadInterruptedException.cs
- CodeDirectoryCompiler.cs
- CheckBoxField.cs
- EventLogEntryCollection.cs
- GlobalProxySelection.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- CodeNamespaceImport.cs
- FontWeightConverter.cs
- remotingproxy.cs
- InheritablePropertyChangeInfo.cs
- SimplePropertyEntry.cs
- SchemaNames.cs
- PropertyTab.cs
- StylusCollection.cs
- DTCTransactionManager.cs
- CursorConverter.cs
- MachineKeySection.cs
- ObjectDataSourceMethodEventArgs.cs
- GeometryValueSerializer.cs
- FlowDocumentFormatter.cs
- FileCodeGroup.cs
- XmlTextWriter.cs
- DbConnectionPoolOptions.cs
- TextRunCache.cs
- AnnotationResourceChangedEventArgs.cs
- MetadataPropertyAttribute.cs
- XmlAutoDetectWriter.cs
- BookmarkNameHelper.cs
- ThreadStateException.cs
- MouseEventArgs.cs
- Selection.cs
- HttpRequestCacheValidator.cs
- TextEditorTables.cs
- ThicknessAnimationUsingKeyFrames.cs
- Point3DCollection.cs
- SizeLimitedCache.cs
- SoapDocumentServiceAttribute.cs
- Query.cs
- XmlSchemaSimpleContentExtension.cs
- RuntimeEnvironment.cs
- WsatServiceCertificate.cs
- AutomationPatternInfo.cs