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
- TextElementEditingBehaviorAttribute.cs
- Point3DConverter.cs
- ManagementScope.cs
- Visual3D.cs
- TypeSystem.cs
- DynamicResourceExtensionConverter.cs
- ContractTypeNameElement.cs
- BaseInfoTable.cs
- UIElement.cs
- Point3DCollection.cs
- CapacityStreamGeometryContext.cs
- RadioButton.cs
- DispatcherObject.cs
- DbModificationCommandTree.cs
- SecurityStateEncoder.cs
- WmlSelectionListAdapter.cs
- CompositeCollection.cs
- Button.cs
- _Connection.cs
- SafeHandle.cs
- IgnorePropertiesAttribute.cs
- TargetControlTypeCache.cs
- TTSEvent.cs
- EntityDataSourceDesignerHelper.cs
- RuntimeIdentifierPropertyAttribute.cs
- AccessedThroughPropertyAttribute.cs
- XmlSequenceWriter.cs
- SmiMetaData.cs
- Focus.cs
- X509ThumbprintKeyIdentifierClause.cs
- WindowProviderWrapper.cs
- FileLevelControlBuilderAttribute.cs
- AmbientLight.cs
- MeasureData.cs
- PTUtility.cs
- SchemaSetCompiler.cs
- AutoResizedEvent.cs
- RoleManagerModule.cs
- Binding.cs
- PropertyEntry.cs
- CacheEntry.cs
- WmlValidatorAdapter.cs
- AstTree.cs
- OrthographicCamera.cs
- DetailsViewDeletedEventArgs.cs
- DriveNotFoundException.cs
- SettingsBindableAttribute.cs
- XmlDictionaryWriter.cs
- XmlAttributeOverrides.cs
- ExtendedProperty.cs
- StringBlob.cs
- ExpressionBinding.cs
- SiteMapDataSourceDesigner.cs
- AmbiguousMatchException.cs
- QuaternionAnimationBase.cs
- AmbientEnvironment.cs
- WorkflowViewManager.cs
- NavigationWindowAutomationPeer.cs
- XmlSecureResolver.cs
- DataKey.cs
- CollectionBuilder.cs
- AssemblyNameUtility.cs
- BuildProvider.cs
- PropertyTabChangedEvent.cs
- ChangeInterceptorAttribute.cs
- EntityDataSourceUtil.cs
- RemoveStoryboard.cs
- ValidationUtility.cs
- ThreadExceptionEvent.cs
- Pool.cs
- PasswordRecovery.cs
- WindowsStartMenu.cs
- EditorPart.cs
- BitmapFrameDecode.cs
- ConstructorNeedsTagAttribute.cs
- listitem.cs
- ConnectivityStatus.cs
- BufferedReadStream.cs
- ToolStripStatusLabel.cs
- CopyAction.cs
- TagPrefixCollection.cs
- MDIClient.cs
- AsmxEndpointPickerExtension.cs
- DBProviderConfigurationHandler.cs
- ControlPersister.cs
- BevelBitmapEffect.cs
- SR.cs
- DeviceContext.cs
- MemberCollection.cs
- TransformerInfo.cs
- ListDictionary.cs
- QilFactory.cs
- X509Utils.cs
- storepermission.cs
- OutgoingWebResponseContext.cs
- PeerChannelFactory.cs
- LinkedResource.cs
- XpsSerializationManagerAsync.cs
- TablePattern.cs
- RoutedEventValueSerializer.cs