Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / SweepDirectionValidation.cs / 1305600 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DiscoveryDocumentReference.cs
- ColumnMapCopier.cs
- LoadWorkflowByKeyAsyncResult.cs
- PasswordDeriveBytes.cs
- ValidatorCompatibilityHelper.cs
- Rect.cs
- AuthenticationService.cs
- XmlObjectSerializerContext.cs
- CurrencyManager.cs
- LineInfo.cs
- OrderPreservingSpoolingTask.cs
- XmlConverter.cs
- OleDbDataReader.cs
- BigInt.cs
- _CacheStreams.cs
- initElementDictionary.cs
- MaskDescriptor.cs
- InfoCardTrace.cs
- FunctionImportElement.cs
- MailMessageEventArgs.cs
- MulticastOption.cs
- ManifestResourceInfo.cs
- ListViewGroup.cs
- BufferModesCollection.cs
- CutCopyPasteHelper.cs
- TextProperties.cs
- TiffBitmapDecoder.cs
- InstancePersistenceException.cs
- UndoUnit.cs
- FrameworkReadOnlyPropertyMetadata.cs
- Margins.cs
- BitmapEffectInput.cs
- ListMarkerSourceInfo.cs
- StorageModelBuildProvider.cs
- PhysicalOps.cs
- DataGridViewAutoSizeModeEventArgs.cs
- ComponentEvent.cs
- SponsorHelper.cs
- ConfigurationErrorsException.cs
- DbDataReader.cs
- securitycriticaldata.cs
- FileChangesMonitor.cs
- SignatureToken.cs
- DesignTimeParseData.cs
- WrappedReader.cs
- BookmarkResumptionRecord.cs
- ZipIOExtraFieldPaddingElement.cs
- XmlCollation.cs
- MissingMethodException.cs
- PropertyValidationContext.cs
- WebPartDisplayModeEventArgs.cs
- TrustManagerPromptUI.cs
- RemotingServices.cs
- ObjectDataSourceStatusEventArgs.cs
- XamlTemplateSerializer.cs
- SeekStoryboard.cs
- PointLightBase.cs
- InputProcessorProfilesLoader.cs
- Color.cs
- GridSplitter.cs
- QuadraticBezierSegment.cs
- DataTemplateKey.cs
- SmtpException.cs
- FunctionImportElement.cs
- StyleReferenceConverter.cs
- GlyphRunDrawing.cs
- PreloadedPackages.cs
- DbProviderFactory.cs
- datacache.cs
- ExitEventArgs.cs
- ConfigXmlWhitespace.cs
- LayoutEditorPart.cs
- UrlEncodedParameterWriter.cs
- ClockGroup.cs
- SqlWebEventProvider.cs
- HandlerWithFactory.cs
- SpeechSeg.cs
- GenericAuthenticationEventArgs.cs
- HierarchicalDataBoundControlAdapter.cs
- SimpleRecyclingCache.cs
- UpdatePanelTrigger.cs
- FrameworkElementFactory.cs
- Deserializer.cs
- ProtocolsConfigurationHandler.cs
- BatchStream.cs
- Package.cs
- ObjectDataSourceChooseTypePanel.cs
- PrintDialog.cs
- RecordManager.cs
- SecurityPolicySection.cs
- XmlRootAttribute.cs
- PlainXmlWriter.cs
- AvtEvent.cs
- InstallHelper.cs
- FormView.cs
- UiaCoreProviderApi.cs
- BitmapCache.cs
- EnumValAlphaComparer.cs
- RelationshipFixer.cs
- XsdDuration.cs