Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // //// 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
- DesignBindingConverter.cs
- WasNotInstalledException.cs
- XmlSchemaSet.cs
- UntrustedRecipientException.cs
- JsonUriDataContract.cs
- MediaElement.cs
- FacetChecker.cs
- HttpRuntime.cs
- PeerInputChannelListener.cs
- EtwTrace.cs
- ScrollProviderWrapper.cs
- RegexNode.cs
- OutputCacheSection.cs
- ScriptControl.cs
- Rotation3DAnimationBase.cs
- CompositeFontInfo.cs
- ComplexTypeEmitter.cs
- WsdlBuildProvider.cs
- UIElement3D.cs
- RemoteWebConfigurationHostServer.cs
- SqlDuplicator.cs
- RelatedImageListAttribute.cs
- XmlSchemaAny.cs
- GlyphRun.cs
- Crypto.cs
- WorkflowNamespace.cs
- Point.cs
- RootBrowserWindowAutomationPeer.cs
- ScrollChrome.cs
- DataKey.cs
- PageCatalogPart.cs
- Script.cs
- ping.cs
- ThousandthOfEmRealDoubles.cs
- DateTimeUtil.cs
- ThicknessAnimationBase.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- SizeConverter.cs
- ExpressionsCollectionEditor.cs
- TabItemWrapperAutomationPeer.cs
- EdmSchemaError.cs
- Int32Rect.cs
- SplayTreeNode.cs
- Ray3DHitTestResult.cs
- MouseBinding.cs
- MenuItem.cs
- ReadContentAsBinaryHelper.cs
- LambdaCompiler.Logical.cs
- ProfileSettingsCollection.cs
- IPipelineRuntime.cs
- TerminatorSinks.cs
- TrackingDataItem.cs
- odbcmetadatacollectionnames.cs
- ImageMetadata.cs
- _FtpControlStream.cs
- MasterPageBuildProvider.cs
- AxHost.cs
- Pkcs9Attribute.cs
- DataGridViewCellStyleChangedEventArgs.cs
- TableSectionStyle.cs
- UTF7Encoding.cs
- ProgressiveCrcCalculatingStream.cs
- TimerEventSubscription.cs
- __FastResourceComparer.cs
- DataGridPageChangedEventArgs.cs
- DataControlButton.cs
- ErrorTableItemStyle.cs
- UserMapPath.cs
- HtmlLink.cs
- SqlClientMetaDataCollectionNames.cs
- IPGlobalProperties.cs
- ToolStripTextBox.cs
- ProjectionCamera.cs
- ClientConvert.cs
- MediaCommands.cs
- SoapUnknownHeader.cs
- CompiledAction.cs
- BinaryCommonClasses.cs
- CategoryAttribute.cs
- CompressedStack.cs
- GroupPartitionExpr.cs
- Compiler.cs
- DataServiceRequestArgs.cs
- WorkflowRuntimeServiceElementCollection.cs
- DesignerTextViewAdapter.cs
- Calendar.cs
- RowToParametersTransformer.cs
- CmsInterop.cs
- HelpExampleGenerator.cs
- PeerEndPoint.cs
- __Filters.cs
- BuildResult.cs
- SingleStorage.cs
- _ScatterGatherBuffers.cs
- HScrollProperties.cs
- HttpStreamXmlDictionaryReader.cs
- StyleConverter.cs
- CacheOutputQuery.cs
- XmlObjectSerializer.cs
- PageTheme.cs