Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Shared / MS / Internal / Generated / SweepDirectionValidation.cs / 1 / 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
- MouseGestureConverter.cs
- DataSourceGeneratorException.cs
- SqlException.cs
- RoutingUtilities.cs
- StructureChangedEventArgs.cs
- DataTemplate.cs
- Constraint.cs
- TreeNodeEventArgs.cs
- BaseComponentEditor.cs
- CodeDirectiveCollection.cs
- ScaleTransform.cs
- CollectionDataContract.cs
- DynamicValidatorEventArgs.cs
- TrackBar.cs
- SchemaImporterExtensionElement.cs
- Camera.cs
- XmlSerializer.cs
- FixedTextBuilder.cs
- RecipientInfo.cs
- SoundPlayer.cs
- Size.cs
- Size3DConverter.cs
- OdbcDataAdapter.cs
- SmiEventStream.cs
- TaiwanCalendar.cs
- EntityDesignerUtils.cs
- MatchSingleFxEngineOpcode.cs
- MatrixCamera.cs
- ServerIdentity.cs
- RayMeshGeometry3DHitTestResult.cs
- SevenBitStream.cs
- SymLanguageVendor.cs
- XPathNodePointer.cs
- PlaceHolder.cs
- ToolStripManager.cs
- DataSourceControl.cs
- RankException.cs
- ConfigurationManagerInternalFactory.cs
- ChameleonKey.cs
- ObjectAnimationUsingKeyFrames.cs
- WebBrowserNavigatingEventHandler.cs
- WizardForm.cs
- ZipIOLocalFileHeader.cs
- RecognizedWordUnit.cs
- FatalException.cs
- WindowProviderWrapper.cs
- ImageList.cs
- XmlSchemaImport.cs
- ExecutionContext.cs
- ManagementOptions.cs
- DesignerTextWriter.cs
- GridViewRow.cs
- ExpressionEditorAttribute.cs
- TextInfo.cs
- EntityCommandDefinition.cs
- Configuration.cs
- StackOverflowException.cs
- Rect3D.cs
- SingleObjectCollection.cs
- ReadOnlyHierarchicalDataSource.cs
- Events.cs
- DateBoldEvent.cs
- DataGridViewRowCollection.cs
- ByeOperation11AsyncResult.cs
- AffineTransform3D.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- SHA512Cng.cs
- SimpleHandlerBuildProvider.cs
- RedBlackList.cs
- HtmlContainerControl.cs
- UIElement3D.cs
- AsmxEndpointPickerExtension.cs
- Formatter.cs
- DependencySource.cs
- TrackingStringDictionary.cs
- printdlgexmarshaler.cs
- QilVisitor.cs
- SystemInfo.cs
- TableParaClient.cs
- RegionIterator.cs
- DropDownList.cs
- DataObjectCopyingEventArgs.cs
- OleServicesContext.cs
- StandardToolWindows.cs
- DefaultSerializationProviderAttribute.cs
- ButtonPopupAdapter.cs
- PrintEvent.cs
- _LocalDataStore.cs
- CellParagraph.cs
- xamlnodes.cs
- StylusEventArgs.cs
- FunctionImportElement.cs
- KeyValuePairs.cs
- ToolStripDropDownItem.cs
- SiteMapHierarchicalDataSourceView.cs
- SignatureHelper.cs
- BounceEase.cs
- CodeDomConfigurationHandler.cs
- CssClassPropertyAttribute.cs
- InternalTypeHelper.cs