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
- IndicShape.cs
- EntityObject.cs
- _ListenerRequestStream.cs
- ConnectionPointCookie.cs
- SupportingTokenListenerFactory.cs
- versioninfo.cs
- GridViewEditEventArgs.cs
- SpnegoTokenAuthenticator.cs
- Speller.cs
- ClientOptions.cs
- UnsafeNativeMethods.cs
- XPathDocumentIterator.cs
- StickyNote.cs
- MailDefinition.cs
- ToolStripManager.cs
- CssClassPropertyAttribute.cs
- DPCustomTypeDescriptor.cs
- LogicalExpressionEditor.cs
- AffineTransform3D.cs
- SqlServer2KCompatibilityAnnotation.cs
- BinaryObjectReader.cs
- keycontainerpermission.cs
- DataIdProcessor.cs
- IisTraceWebEventProvider.cs
- SemaphoreFullException.cs
- VisualProxy.cs
- InputLanguageCollection.cs
- DataPagerFieldCommandEventArgs.cs
- EdmTypeAttribute.cs
- EventLogEntryCollection.cs
- PartialList.cs
- InfoCardSymmetricAlgorithm.cs
- CookielessHelper.cs
- XamlVector3DCollectionSerializer.cs
- HttpPostedFileBase.cs
- EntityContainerRelationshipSet.cs
- RequestQueryParser.cs
- SpecialFolderEnumConverter.cs
- XamlSerializerUtil.cs
- CustomLineCap.cs
- ConfigurationSectionGroup.cs
- ConfigurationFileMap.cs
- InvalidPrinterException.cs
- ListViewItem.cs
- TypeRestriction.cs
- ProfileGroupSettingsCollection.cs
- SecUtil.cs
- Package.cs
- AmbientValueAttribute.cs
- SizeIndependentAnimationStorage.cs
- InlineUIContainer.cs
- CaseStatement.cs
- PagedDataSource.cs
- FieldAccessException.cs
- XmlSchemaInclude.cs
- SimpleType.cs
- HuffmanTree.cs
- DbModificationClause.cs
- TableCell.cs
- NameTable.cs
- LayoutManager.cs
- CommandPlan.cs
- ProfileSection.cs
- ToolStrip.cs
- ConnectionsZone.cs
- TemplateNameScope.cs
- BitmapEffectDrawingContextWalker.cs
- RegexMatch.cs
- ToolStripItemClickedEventArgs.cs
- CapacityStreamGeometryContext.cs
- StateBag.cs
- PasswordBoxAutomationPeer.cs
- ASCIIEncoding.cs
- HierarchicalDataSourceConverter.cs
- SecurityContextSecurityTokenParameters.cs
- StringWriter.cs
- ConnectionInterfaceCollection.cs
- ThicknessAnimationBase.cs
- RectAnimationUsingKeyFrames.cs
- DesignerTextWriter.cs
- COM2PictureConverter.cs
- ListViewDeletedEventArgs.cs
- ServiceDescriptionReflector.cs
- DataRelationCollection.cs
- HandleExceptionArgs.cs
- AccessControlEntry.cs
- SequenceFullException.cs
- FunctionParameter.cs
- EntityTypeEmitter.cs
- AssemblyResourceLoader.cs
- PageHandlerFactory.cs
- RSAPKCS1SignatureFormatter.cs
- FSWPathEditor.cs
- ReachDocumentPageSerializer.cs
- CuspData.cs
- GridViewEditEventArgs.cs
- AutomationPattern.cs
- CommandBinding.cs
- EventMap.cs
- QuaternionRotation3D.cs