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
- BuildProviderAppliesToAttribute.cs
- LiteralControl.cs
- RightsManagementPermission.cs
- SqlDataSourceCache.cs
- TextEndOfLine.cs
- DatagridviewDisplayedBandsData.cs
- SystemWebExtensionsSectionGroup.cs
- SettingsPropertyCollection.cs
- VersionedStream.cs
- _SafeNetHandles.cs
- BrowserDefinitionCollection.cs
- ControlUtil.cs
- BamlVersionHeader.cs
- DataView.cs
- PropertyItem.cs
- SignedXmlDebugLog.cs
- MultipleViewPatternIdentifiers.cs
- UnsafeNativeMethods.cs
- KeyValueConfigurationElement.cs
- LinkClickEvent.cs
- LeaseManager.cs
- HiddenFieldPageStatePersister.cs
- ConsumerConnectionPoint.cs
- ShaderRenderModeValidation.cs
- DataObjectMethodAttribute.cs
- EdmEntityTypeAttribute.cs
- Attributes.cs
- CultureTable.cs
- XmlQueryType.cs
- DependencyObjectValidator.cs
- XmlSignatureManifest.cs
- XmlReturnWriter.cs
- GenerateTemporaryTargetAssembly.cs
- RuntimeHelpers.cs
- ListBindingHelper.cs
- PartitionedStreamMerger.cs
- PointCollection.cs
- RegexCompiler.cs
- EntityUtil.cs
- DoubleStorage.cs
- FamilyMap.cs
- RepeaterCommandEventArgs.cs
- EventWaitHandle.cs
- FileSystemEventArgs.cs
- WebServiceEnumData.cs
- DataGridViewRow.cs
- RTLAwareMessageBox.cs
- EventTask.cs
- AudioBase.cs
- StringCollection.cs
- LayoutEditorPart.cs
- DbDataRecord.cs
- MaterialGroup.cs
- CodeExporter.cs
- TextEndOfLine.cs
- BaseWebProxyFinder.cs
- EmptyStringExpandableObjectConverter.cs
- ExpressionBuilderContext.cs
- StringExpressionSet.cs
- IsolatedStorageFilePermission.cs
- VisualBrush.cs
- XmlSchemaSimpleTypeRestriction.cs
- KeyEvent.cs
- EntryPointNotFoundException.cs
- PerfCounterSection.cs
- Tuple.cs
- StringComparer.cs
- TagMapInfo.cs
- WebPartVerb.cs
- SqlCacheDependencyDatabase.cs
- ListViewCommandEventArgs.cs
- storepermission.cs
- CLSCompliantAttribute.cs
- CodeIdentifier.cs
- ColorDialog.cs
- DataSourceCache.cs
- PageCatalogPart.cs
- InternalTransaction.cs
- wgx_commands.cs
- BlurBitmapEffect.cs
- SeverityFilter.cs
- CurrencyManager.cs
- KerberosTicketHashIdentifierClause.cs
- MultiBindingExpression.cs
- XmlBinaryReader.cs
- Parameter.cs
- CompareInfo.cs
- WebPartHelpVerb.cs
- SafeCoTaskMem.cs
- AdRotator.cs
- DbParameterCollectionHelper.cs
- SynchronizedRandom.cs
- MouseDevice.cs
- XmlToDatasetMap.cs
- WebBrowserNavigatingEventHandler.cs
- UIInitializationException.cs
- CodeSnippetStatement.cs
- ExecutionContext.cs
- StorageInfo.cs
- Rule.cs