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
- XpsFilter.cs
- OledbConnectionStringbuilder.cs
- ChangesetResponse.cs
- COM2ExtendedUITypeEditor.cs
- SystemIcmpV6Statistics.cs
- FrameworkContentElementAutomationPeer.cs
- ParseChildrenAsPropertiesAttribute.cs
- MetadataItem_Static.cs
- Instrumentation.cs
- PropertyReferenceSerializer.cs
- UserValidatedEventArgs.cs
- Table.cs
- CellLabel.cs
- HuffmanTree.cs
- streamingZipPartStream.cs
- XmlSchemaResource.cs
- HostingPreferredMapPath.cs
- AutoCompleteStringCollection.cs
- VisualBasicExpressionConverter.cs
- ExternalFile.cs
- ReversePositionQuery.cs
- TreeNodeStyle.cs
- WebPartZoneAutoFormat.cs
- CapabilitiesAssignment.cs
- UdpUtility.cs
- SwitchCase.cs
- GifBitmapEncoder.cs
- WebPartTracker.cs
- ListViewItem.cs
- ReadOnlyDataSourceView.cs
- Rect3D.cs
- MailWriter.cs
- AudioFormatConverter.cs
- AttachInfo.cs
- DatagridviewDisplayedBandsData.cs
- Hashtable.cs
- PopupRootAutomationPeer.cs
- DataIdProcessor.cs
- InstanceLockLostException.cs
- BidPrivateBase.cs
- CodeTypeMember.cs
- RowToParametersTransformer.cs
- DebugController.cs
- KoreanCalendar.cs
- LeftCellWrapper.cs
- XmlDomTextWriter.cs
- TypeDelegator.cs
- StrongTypingException.cs
- SwitchLevelAttribute.cs
- ControlTemplate.cs
- HandledEventArgs.cs
- SpeakCompletedEventArgs.cs
- RecordManager.cs
- ImageFormat.cs
- METAHEADER.cs
- XamlParser.cs
- DrawingAttributesDefaultValueFactory.cs
- WindowsSysHeader.cs
- DictionaryChange.cs
- UpdateManifestForBrowserApplication.cs
- ExtensionDataReader.cs
- TextEffectResolver.cs
- CallTemplateAction.cs
- DummyDataSource.cs
- SiteMapDataSourceView.cs
- StylusEditingBehavior.cs
- FragmentNavigationEventArgs.cs
- URIFormatException.cs
- GridViewRowPresenterBase.cs
- PropertyMapper.cs
- PrimaryKeyTypeConverter.cs
- XmlDocumentType.cs
- TransactionScope.cs
- BinaryNode.cs
- SqlConnectionHelper.cs
- SoapAttributeOverrides.cs
- PresentationSource.cs
- SessionSwitchEventArgs.cs
- SharedStream.cs
- ElementAction.cs
- FieldAccessException.cs
- IntersectQueryOperator.cs
- TextAdaptor.cs
- Range.cs
- RawUIStateInputReport.cs
- TextCharacters.cs
- HGlobalSafeHandle.cs
- Events.cs
- AsymmetricSignatureDeformatter.cs
- FunctionDescription.cs
- HttpsTransportElement.cs
- HostedController.cs
- SHA384Cng.cs
- Misc.cs
- MethodImplAttribute.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- SynchronizationHandlesCodeDomSerializer.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- _DisconnectOverlappedAsyncResult.cs