Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- odbcmetadatacolumnnames.cs
- _BasicClient.cs
- NetCodeGroup.cs
- CustomError.cs
- NullRuntimeConfig.cs
- IssuedTokenServiceElement.cs
- PrinterResolution.cs
- CustomDictionarySources.cs
- WebScriptEndpoint.cs
- ToolStripPanelCell.cs
- RefreshEventArgs.cs
- ProcessManager.cs
- OleDbParameterCollection.cs
- XamlVector3DCollectionSerializer.cs
- HostedElements.cs
- ComponentResourceKeyConverter.cs
- TextChange.cs
- Stroke.cs
- CodeStatementCollection.cs
- SecurityException.cs
- LocationUpdates.cs
- WinOEToolBoxItem.cs
- ImageListDesigner.cs
- WebControlAdapter.cs
- PersianCalendar.cs
- Registry.cs
- RewritingPass.cs
- DesignerAttributeInfo.cs
- PenThreadWorker.cs
- XmlAttributeProperties.cs
- TokenBasedSet.cs
- ZipIOLocalFileHeader.cs
- Binding.cs
- KerberosSecurityTokenProvider.cs
- Converter.cs
- AccessDataSourceDesigner.cs
- X509Extension.cs
- IndexerNameAttribute.cs
- RegisterInfo.cs
- DataList.cs
- XPathSelfQuery.cs
- Setter.cs
- SoapObjectReader.cs
- EndpointAddressMessageFilter.cs
- ParseHttpDate.cs
- ColorBlend.cs
- WindowsSlider.cs
- SafeFileMappingHandle.cs
- DataTableReader.cs
- StaticFileHandler.cs
- NumericExpr.cs
- Simplifier.cs
- LinqDataSourceContextEventArgs.cs
- SqlBinder.cs
- Int64Storage.cs
- HotCommands.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ResXBuildProvider.cs
- ToolStripContainer.cs
- _AuthenticationState.cs
- LinqDataView.cs
- Viewport2DVisual3D.cs
- FederatedMessageSecurityOverHttpElement.cs
- Constraint.cs
- ListBase.cs
- SurrogateSelector.cs
- ObjectList.cs
- ValidationErrorEventArgs.cs
- XmlSchemaObject.cs
- SafeProcessHandle.cs
- UpdatePanel.cs
- DataGridTablesFactory.cs
- DataPagerField.cs
- XPathPatternParser.cs
- ExceptionUtil.cs
- EqualityComparer.cs
- Int16AnimationUsingKeyFrames.cs
- Interlocked.cs
- WorkflowInstanceUnhandledExceptionRecord.cs
- ISessionStateStore.cs
- MetadataAssemblyHelper.cs
- ApplicationId.cs
- objectquery_tresulttype.cs
- WindowInteractionStateTracker.cs
- RequestCachePolicyConverter.cs
- MultiPropertyDescriptorGridEntry.cs
- PolicyImporterElement.cs
- DataMemberFieldConverter.cs
- XmlRawWriterWrapper.cs
- DatagridviewDisplayedBandsData.cs
- SemanticAnalyzer.cs
- WinCategoryAttribute.cs
- LocalizableAttribute.cs
- TabRenderer.cs
- EditorPart.cs
- QilInvokeEarlyBound.cs
- DiffuseMaterial.cs
- IdleTimeoutMonitor.cs
- SmtpCommands.cs
- DiscardableAttribute.cs