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
- SmtpMail.cs
- OracleParameter.cs
- MouseButton.cs
- TableLayoutCellPaintEventArgs.cs
- GlobalDataBindingHandler.cs
- DataGridViewCellStyleEditor.cs
- DrawingBrush.cs
- ColumnHeaderConverter.cs
- RemoteWebConfigurationHost.cs
- SystemIPGlobalProperties.cs
- ControlParameter.cs
- Item.cs
- SectionInput.cs
- CodeIterationStatement.cs
- EmptyControlCollection.cs
- WebBrowserHelper.cs
- SHA512Managed.cs
- ListViewGroupItemCollection.cs
- RoleBoolean.cs
- ResourceExpressionBuilder.cs
- XmlAttributeCollection.cs
- JoinCqlBlock.cs
- DBConnection.cs
- CancellationHandlerDesigner.cs
- DebugInfoExpression.cs
- ToolStripProgressBar.cs
- MappingSource.cs
- EdgeProfileValidation.cs
- PassportAuthenticationEventArgs.cs
- LineServices.cs
- SystemIPv4InterfaceProperties.cs
- EntryIndex.cs
- Reference.cs
- IIS7UserPrincipal.cs
- XmlExpressionDumper.cs
- LinqDataSourceDeleteEventArgs.cs
- UniqueEventHelper.cs
- ValidatingPropertiesEventArgs.cs
- ViewCellSlot.cs
- ForeignKeyFactory.cs
- CodeTypeParameterCollection.cs
- ByeOperationCD1AsyncResult.cs
- ListViewTableRow.cs
- BindingNavigator.cs
- SRGSCompiler.cs
- TextSelectionProcessor.cs
- DigitShape.cs
- ToolStripPanelRow.cs
- AxisAngleRotation3D.cs
- PassportPrincipal.cs
- XpsSerializationException.cs
- PersonalizationProviderCollection.cs
- Cursors.cs
- DrawListViewColumnHeaderEventArgs.cs
- StyleXamlTreeBuilder.cs
- ContravarianceAdapter.cs
- TemplateBindingExtension.cs
- PlainXmlWriter.cs
- IntranetCredentialPolicy.cs
- XmlSchemaSimpleContentExtension.cs
- FontStyleConverter.cs
- MsmqAppDomainProtocolHandler.cs
- JoinCqlBlock.cs
- SchemaCollectionCompiler.cs
- FileVersion.cs
- Animatable.cs
- SafeNativeMethods.cs
- TypeElement.cs
- Container.cs
- JsonDataContract.cs
- CodeMemberEvent.cs
- LocalFileSettingsProvider.cs
- ProjectedSlot.cs
- SqlDependencyListener.cs
- GridViewCommandEventArgs.cs
- ReservationCollection.cs
- DbProviderServices.cs
- DictionaryContent.cs
- BitmapImage.cs
- SqlParameter.cs
- NameValueConfigurationElement.cs
- NestedContainer.cs
- RequestCacheManager.cs
- DataProviderNameConverter.cs
- FlowLayoutPanel.cs
- EventLog.cs
- AppDomainAttributes.cs
- PropertyFilterAttribute.cs
- Path.cs
- XmlSchemaGroup.cs
- _KerberosClient.cs
- ToolStripContainerActionList.cs
- _BufferOffsetSize.cs
- CodeTypeReferenceCollection.cs
- ThicknessAnimationUsingKeyFrames.cs
- TraceShell.cs
- SQLDecimalStorage.cs
- XmlNodeComparer.cs
- ComAdminWrapper.cs
- XmlUtil.cs