Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ProxyFragment.cs
- Exceptions.cs
- UserNameServiceElement.cs
- ProxyElement.cs
- LookupTables.cs
- MobileControlBuilder.cs
- SharedUtils.cs
- XmlResolver.cs
- WindowsFormsHostPropertyMap.cs
- WebBrowserNavigatedEventHandler.cs
- ContractListAdapter.cs
- XmlSchemaFacet.cs
- OrthographicCamera.cs
- SpotLight.cs
- EncoderBestFitFallback.cs
- Facet.cs
- ProjectionPathBuilder.cs
- TextEffect.cs
- HostingEnvironment.cs
- EntityDataSourceContextCreatingEventArgs.cs
- SEHException.cs
- RadioButtonList.cs
- UnSafeCharBuffer.cs
- Pointer.cs
- QuerySettings.cs
- Tuple.cs
- SizeAnimationBase.cs
- ImageBrush.cs
- DataFieldCollectionEditor.cs
- Exception.cs
- ControlIdConverter.cs
- EventRouteFactory.cs
- TempEnvironment.cs
- TextRunProperties.cs
- EntityWithKeyStrategy.cs
- GlobalItem.cs
- SqlBinder.cs
- ApplicationFileParser.cs
- SystemKeyConverter.cs
- XmlTextEncoder.cs
- TextTreeInsertUndoUnit.cs
- Sequence.cs
- CompiledRegexRunnerFactory.cs
- ComplusEndpointConfigContainer.cs
- HttpServerVarsCollection.cs
- ToolStripKeyboardHandlingService.cs
- WeakReadOnlyCollection.cs
- HyperLink.cs
- PackagePartCollection.cs
- DocumentViewerAutomationPeer.cs
- NullableConverter.cs
- NegatedCellConstant.cs
- AppDomainGrammarProxy.cs
- WebControlsSection.cs
- TemplateBaseAction.cs
- ModifierKeysConverter.cs
- OleDbDataAdapter.cs
- FSWPathEditor.cs
- TrustDriver.cs
- PostBackTrigger.cs
- MethodBuilderInstantiation.cs
- OleStrCAMarshaler.cs
- FileVersionInfo.cs
- WebPartManagerInternals.cs
- TextOnlyOutput.cs
- AnnotationResourceCollection.cs
- ConfigurationStrings.cs
- SettingsPropertyCollection.cs
- AnimationStorage.cs
- TypeToStringValueConverter.cs
- SiteMap.cs
- SqlDataSourceEnumerator.cs
- DocumentOrderQuery.cs
- EnlistmentTraceIdentifier.cs
- BridgeDataRecord.cs
- DataGridViewSortCompareEventArgs.cs
- ActivationService.cs
- QilXmlReader.cs
- AuthenticationException.cs
- BezierSegment.cs
- MultipleCopiesCollection.cs
- Events.cs
- OutputCacheModule.cs
- SetState.cs
- ExceptionWrapper.cs
- UnknownBitmapDecoder.cs
- InputLanguageProfileNotifySink.cs
- HttpCapabilitiesSectionHandler.cs
- DeclarativeCatalogPart.cs
- AppDomainProtocolHandler.cs
- TextParagraph.cs
- LinqDataSourceHelper.cs
- TextBoxAutoCompleteSourceConverter.cs
- Int64.cs
- XamlStyleSerializer.cs
- IndentTextWriter.cs
- WebConfigurationHostFileChange.cs
- ProbeMatchesMessage11.cs
- _ListenerResponseStream.cs
- DrawingContextWalker.cs