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
- TypedDatasetGenerator.cs
- DocumentPageHost.cs
- SaveFileDialog.cs
- OleDbDataReader.cs
- DeferredSelectedIndexReference.cs
- ProfileServiceManager.cs
- ReaderWriterLockWrapper.cs
- HandleExceptionArgs.cs
- Util.cs
- TablePatternIdentifiers.cs
- ValueUtilsSmi.cs
- BufferModesCollection.cs
- EntityDataSourceSelectingEventArgs.cs
- ImportCatalogPart.cs
- Divide.cs
- OverloadGroupAttribute.cs
- DictionaryEntry.cs
- SafeThreadHandle.cs
- XsdValidatingReader.cs
- SoapTransportImporter.cs
- RestHandler.cs
- DataBinder.cs
- CodeDOMUtility.cs
- JavaScriptSerializer.cs
- UserPersonalizationStateInfo.cs
- RulePatternOps.cs
- BamlRecordWriter.cs
- OLEDB_Util.cs
- CompensationExtension.cs
- RenderTargetBitmap.cs
- FixUpCollection.cs
- WebPartDisplayModeCancelEventArgs.cs
- GroupJoinQueryOperator.cs
- InputProcessorProfiles.cs
- EntityDataSourceEntityTypeFilterItem.cs
- HyperLinkColumn.cs
- AsyncStreamReader.cs
- ResourceDictionaryCollection.cs
- WebHttpBehavior.cs
- ListBoxItemAutomationPeer.cs
- ReturnType.cs
- ObjectViewQueryResultData.cs
- webeventbuffer.cs
- AlgoModule.cs
- PrimitiveRenderer.cs
- ReflectionUtil.cs
- SqlTopReducer.cs
- WebHttpSecurityModeHelper.cs
- DataPagerCommandEventArgs.cs
- Crypto.cs
- MonthChangedEventArgs.cs
- PageThemeParser.cs
- PnrpPeerResolverElement.cs
- dbenumerator.cs
- WorkflowViewManager.cs
- MonitorWrapper.cs
- XpsLiterals.cs
- Pens.cs
- MatrixAnimationUsingPath.cs
- CodeNamespaceImportCollection.cs
- ActiveXSerializer.cs
- AssemblyName.cs
- DataGridViewElement.cs
- SqlInternalConnection.cs
- DataGridViewColumn.cs
- ECDsaCng.cs
- HostExecutionContextManager.cs
- BrowserTree.cs
- OraclePermission.cs
- SynchronizationHandlesCodeDomSerializer.cs
- DataSourceXmlElementAttribute.cs
- CompiledIdentityConstraint.cs
- ImageInfo.cs
- Missing.cs
- ToggleButtonAutomationPeer.cs
- BasicExpressionVisitor.cs
- Oid.cs
- ProxyFragment.cs
- DynamicQueryableWrapper.cs
- InputLanguageEventArgs.cs
- UserPersonalizationStateInfo.cs
- SpellerInterop.cs
- X509Certificate.cs
- ApplicationInfo.cs
- MobileRedirect.cs
- MetadataSource.cs
- XmlAttributeAttribute.cs
- BlockUIContainer.cs
- TrackBarRenderer.cs
- HttpHeaderCollection.cs
- VectorAnimationBase.cs
- SecurityProtocolCorrelationState.cs
- AutomationPatternInfo.cs
- X509Certificate2.cs
- CompoundFileStreamReference.cs
- SqlDataSourceParameterParser.cs
- HashSetDebugView.cs
- ToolBarPanel.cs
- SplitterEvent.cs
- ControlDesignerState.cs