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
- DbConnectionHelper.cs
- Boolean.cs
- TextEditorMouse.cs
- CqlErrorHelper.cs
- TypeUnloadedException.cs
- ModelUIElement3D.cs
- LiteralControl.cs
- Merger.cs
- OuterGlowBitmapEffect.cs
- WebResponse.cs
- HttpPostLocalhostServerProtocol.cs
- BoundPropertyEntry.cs
- ItemList.cs
- MissingFieldException.cs
- DeclarationUpdate.cs
- OdbcConnectionStringbuilder.cs
- EnumValAlphaComparer.cs
- ContextMenuStripGroupCollection.cs
- keycontainerpermission.cs
- TableDesigner.cs
- SoapReflector.cs
- infer.cs
- Attribute.cs
- InputEventArgs.cs
- ProviderUtil.cs
- TransformGroup.cs
- EditableTreeList.cs
- ADConnectionHelper.cs
- ClientBuildManagerCallback.cs
- CodeConditionStatement.cs
- Msec.cs
- QueryAsyncResult.cs
- ScrollableControl.cs
- X509DefaultServiceCertificateElement.cs
- VirtualDirectoryMappingCollection.cs
- ListItemCollection.cs
- DataTable.cs
- SchemaCollectionCompiler.cs
- ColorAnimationUsingKeyFrames.cs
- EntityDataSourceColumn.cs
- GeneralTransform3DTo2DTo3D.cs
- RegistryKey.cs
- ObjectListDesigner.cs
- MissingSatelliteAssemblyException.cs
- StructuralObject.cs
- ProvidersHelper.cs
- SymbolType.cs
- XmlNamespaceMappingCollection.cs
- DataListCommandEventArgs.cs
- DesignerEventService.cs
- StorageScalarPropertyMapping.cs
- CurrentChangingEventArgs.cs
- ElementHostPropertyMap.cs
- RSAPKCS1SignatureFormatter.cs
- DurableMessageDispatchInspector.cs
- ListDataHelper.cs
- DocumentReference.cs
- TdsParserSafeHandles.cs
- DecimalAnimationUsingKeyFrames.cs
- ImageButton.cs
- BulletChrome.cs
- TraceHandlerErrorFormatter.cs
- RelationshipConstraintValidator.cs
- Merger.cs
- GraphicsContainer.cs
- BitmapCodecInfoInternal.cs
- TypeBuilder.cs
- Receive.cs
- SafeHandles.cs
- CompositeControl.cs
- InternalEnumValidatorAttribute.cs
- Repeater.cs
- HTTPRemotingHandler.cs
- WebServiceErrorEvent.cs
- DbConvert.cs
- XmlSerializationGeneratedCode.cs
- HorizontalAlignConverter.cs
- ObjectDataSourceFilteringEventArgs.cs
- ServiceAuthorizationElement.cs
- TextElementEnumerator.cs
- WindowsClaimSet.cs
- AccessDataSource.cs
- LineServicesRun.cs
- XDeferredAxisSource.cs
- BindingOperations.cs
- FileIOPermission.cs
- ProviderSettingsCollection.cs
- FontEmbeddingManager.cs
- sqlstateclientmanager.cs
- ButtonPopupAdapter.cs
- EFTableProvider.cs
- Scripts.cs
- XmlName.cs
- UserControlParser.cs
- InkCanvas.cs
- Font.cs
- ArgumentOutOfRangeException.cs
- CodeTypeReferenceExpression.cs
- XmlReflectionMember.cs
- SplitterEvent.cs