Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ForceCopyBuildProvider.cs
- _FtpDataStream.cs
- FamilyMapCollection.cs
- XPathAxisIterator.cs
- SchemaElement.cs
- XmlLinkedNode.cs
- DataObjectMethodAttribute.cs
- XmlNavigatorStack.cs
- CommonGetThemePartSize.cs
- DesignerCategoryAttribute.cs
- FlowLayout.cs
- CodeSubDirectoriesCollection.cs
- AnonymousIdentificationSection.cs
- DataGridViewCellFormattingEventArgs.cs
- SeverityFilter.cs
- GlobalizationAssembly.cs
- WindowsAuthenticationModule.cs
- ClassValidator.cs
- SecurityChannelFaultConverter.cs
- EntityDesignerBuildProvider.cs
- VersionUtil.cs
- RtType.cs
- FlowDocumentPageViewerAutomationPeer.cs
- PresentationTraceSources.cs
- PixelFormatConverter.cs
- VSWCFServiceContractGenerator.cs
- Matrix3D.cs
- CheckBoxField.cs
- ControlPropertyNameConverter.cs
- HierarchicalDataSourceDesigner.cs
- LinqDataView.cs
- HttpChannelHelper.cs
- AutomationPattern.cs
- AlternationConverter.cs
- HeaderUtility.cs
- CodeAttributeArgumentCollection.cs
- IUnknownConstantAttribute.cs
- SpellerError.cs
- AssociatedControlConverter.cs
- FigureParagraph.cs
- ArrangedElement.cs
- HttpModuleAction.cs
- TextTreeInsertUndoUnit.cs
- URLIdentityPermission.cs
- ArgumentNullException.cs
- BulletedList.cs
- XmlSchemaObjectTable.cs
- LiteralControl.cs
- SqlProviderUtilities.cs
- HWStack.cs
- ValueOfAction.cs
- AppearanceEditorPart.cs
- TabletDevice.cs
- ExpressionVisitor.cs
- TransformerTypeCollection.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- path.cs
- SimpleTypeResolver.cs
- Keywords.cs
- _DigestClient.cs
- MarkupProperty.cs
- ProcessHostFactoryHelper.cs
- FileSystemInfo.cs
- cache.cs
- ButtonBase.cs
- Int32CollectionValueSerializer.cs
- FtpRequestCacheValidator.cs
- DataGridCheckBoxColumn.cs
- UInt16.cs
- ItemsPanelTemplate.cs
- TypeUtils.cs
- CookieProtection.cs
- SolidBrush.cs
- RelationshipDetailsCollection.cs
- TargetFrameworkUtil.cs
- GatewayIPAddressInformationCollection.cs
- StdRegProviderWrapper.cs
- ScrollChangedEventArgs.cs
- FocusWithinProperty.cs
- AsnEncodedData.cs
- OledbConnectionStringbuilder.cs
- ExceptionValidationRule.cs
- ProviderConnectionPointCollection.cs
- DefaultParameterValueAttribute.cs
- AssociationSet.cs
- XmlSerializerAssemblyAttribute.cs
- XmlBoundElement.cs
- Popup.cs
- PassportAuthenticationEventArgs.cs
- Assembly.cs
- ExceptionUtil.cs
- Matrix3D.cs
- NumberFormatInfo.cs
- LocationSectionRecord.cs
- OleDbConnectionInternal.cs
- ProfessionalColors.cs
- DebuggerAttributes.cs
- WorkflowLayouts.cs
- ContextDataSourceContextData.cs
- PublisherIdentityPermission.cs