Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- X509Utils.cs
- SapiRecognizer.cs
- XNodeValidator.cs
- UDPClient.cs
- AsyncDataRequest.cs
- XAMLParseException.cs
- ConnectionConsumerAttribute.cs
- RouteValueDictionary.cs
- MappingMetadataHelper.cs
- WSHttpBindingElement.cs
- ListViewCommandEventArgs.cs
- XmlArrayItemAttribute.cs
- DataKeyCollection.cs
- TextServicesProperty.cs
- InvalidCommandTreeException.cs
- OleDbRowUpdatingEvent.cs
- bindurihelper.cs
- MimeTypeAttribute.cs
- SamlDoNotCacheCondition.cs
- SiteMapDataSourceView.cs
- InternalBufferOverflowException.cs
- VisualBrush.cs
- InkCanvasInnerCanvas.cs
- SharedConnectionListener.cs
- WebPartCatalogAddVerb.cs
- RowUpdatingEventArgs.cs
- XmlNamedNodeMap.cs
- SocketException.cs
- BehaviorEditorPart.cs
- CommunicationObject.cs
- DocumentViewer.cs
- ISCIIEncoding.cs
- HtmlFormParameterWriter.cs
- DataObjectSettingDataEventArgs.cs
- columnmapfactory.cs
- AlternateView.cs
- ProvidersHelper.cs
- TraceSwitch.cs
- XmlAnyElementAttributes.cs
- DropShadowBitmapEffect.cs
- FixUpCollection.cs
- Vector3DIndependentAnimationStorage.cs
- MinimizableAttributeTypeConverter.cs
- UIElement3D.cs
- BatchWriter.cs
- Path.cs
- Update.cs
- TimeoutConverter.cs
- EventWaitHandle.cs
- DataTemplateKey.cs
- DataPagerFieldCommandEventArgs.cs
- TransportSecurityProtocolFactory.cs
- TextAction.cs
- StringComparer.cs
- StackOverflowException.cs
- PreparingEnlistment.cs
- UnSafeCharBuffer.cs
- AccessControlList.cs
- X509ChainPolicy.cs
- XamlWrapperReaders.cs
- PaperSize.cs
- DocumentApplication.cs
- CodeChecksumPragma.cs
- JobInputBins.cs
- BlurBitmapEffect.cs
- ReferencedAssembly.cs
- EdmComplexPropertyAttribute.cs
- UInt64.cs
- BamlReader.cs
- BypassElementCollection.cs
- InvokeProviderWrapper.cs
- ItemsPanelTemplate.cs
- DeclarationUpdate.cs
- DependentList.cs
- HebrewCalendar.cs
- localization.cs
- BindingMemberInfo.cs
- DataBoundLiteralControl.cs
- RoutedEvent.cs
- CriticalHandle.cs
- ResourceCollectionInfo.cs
- IISMapPath.cs
- TextRunCache.cs
- LambdaCompiler.ControlFlow.cs
- LayoutTable.cs
- VSWCFServiceContractGenerator.cs
- DataGridViewSortCompareEventArgs.cs
- SqlProfileProvider.cs
- EntityDataSourceDesignerHelper.cs
- PositiveTimeSpanValidatorAttribute.cs
- CodeDOMUtility.cs
- ClientFormsIdentity.cs
- ZipIOBlockManager.cs
- XmlEventCache.cs
- Int64KeyFrameCollection.cs
- ItemAutomationPeer.cs
- ComplexBindingPropertiesAttribute.cs
- DataGridRowDetailsEventArgs.cs
- SemanticAnalyzer.cs
- DataSourceXmlAttributeAttribute.cs