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
- ConfigXmlElement.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- TextElementEnumerator.cs
- DiscoveryOperationContextExtension.cs
- SafeNativeMethods.cs
- AnnouncementSendsAsyncResult.cs
- MD5CryptoServiceProvider.cs
- ValidationPropertyAttribute.cs
- XmlImplementation.cs
- AuthenticationConfig.cs
- DashStyle.cs
- SoapSchemaMember.cs
- SetterBase.cs
- SspiSecurityToken.cs
- TypeConverterHelper.cs
- TimersDescriptionAttribute.cs
- BaseTemplateBuildProvider.cs
- DecimalAnimationBase.cs
- EntityViewGenerator.cs
- FileSecurity.cs
- MetricEntry.cs
- SystemUdpStatistics.cs
- IItemProperties.cs
- QueryCursorEventArgs.cs
- ObjectContext.cs
- MetadataSource.cs
- ExceptionValidationRule.cs
- DataGridHeaderBorder.cs
- CompositeActivityCodeGenerator.cs
- Simplifier.cs
- TextCompositionEventArgs.cs
- TcpServerChannel.cs
- SoapIgnoreAttribute.cs
- SqlOuterApplyReducer.cs
- SqlGenericUtil.cs
- NumberFunctions.cs
- EventItfInfo.cs
- PackWebResponse.cs
- DataRecord.cs
- EntitySetBaseCollection.cs
- WebPartExportVerb.cs
- VirtualDirectoryMapping.cs
- EventMappingSettings.cs
- SafeViewOfFileHandle.cs
- VariableDesigner.xaml.cs
- XhtmlBasicTextViewAdapter.cs
- ServiceHttpHandlerFactory.cs
- ping.cs
- GacUtil.cs
- Stack.cs
- DataGridViewCheckBoxCell.cs
- VirtualStackFrame.cs
- CategoryGridEntry.cs
- ToolStripItemDesigner.cs
- ComponentCollection.cs
- InheritanceService.cs
- StateMachineWorkflow.cs
- UTF8Encoding.cs
- PerformanceCounterCategory.cs
- ValueQuery.cs
- PaintEvent.cs
- MessageEncoder.cs
- ContainsRowNumberChecker.cs
- SelectionRangeConverter.cs
- Relationship.cs
- MsdtcClusterUtils.cs
- DataFormats.cs
- Invariant.cs
- SafeHandle.cs
- BitmapImage.cs
- ChildrenQuery.cs
- MenuItem.cs
- UrlPropertyAttribute.cs
- ZipFileInfoCollection.cs
- Attributes.cs
- XPathScanner.cs
- Menu.cs
- IdnElement.cs
- XmlSchemaGroup.cs
- PassportAuthenticationModule.cs
- InvalidOperationException.cs
- SecurityContext.cs
- InternalRelationshipCollection.cs
- EllipseGeometry.cs
- StringUtil.cs
- _HTTPDateParse.cs
- RuntimeArgumentHandle.cs
- Reference.cs
- AssociatedControlConverter.cs
- XmlSerializationGeneratedCode.cs
- StreamInfo.cs
- KeySplineConverter.cs
- parserscommon.cs
- CryptoStream.cs
- CroppedBitmap.cs
- BrowserCapabilitiesFactory.cs
- ColumnMapCopier.cs
- TextTreeUndo.cs
- Drawing.cs
- VariableQuery.cs