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
- GacUtil.cs
- ObjectSpanRewriter.cs
- NativeMethods.cs
- XamlPathDataSerializer.cs
- SecurityMessageProperty.cs
- WebSysDescriptionAttribute.cs
- ImageMetadata.cs
- DrawingContextDrawingContextWalker.cs
- DocumentOrderComparer.cs
- HttpWebResponse.cs
- WindowsServiceElement.cs
- EdmScalarPropertyAttribute.cs
- SQLDateTimeStorage.cs
- SQLMoneyStorage.cs
- HasCopySemanticsAttribute.cs
- ObjectDataSourceEventArgs.cs
- ParameterModifier.cs
- WebPartCancelEventArgs.cs
- RemotingConfigParser.cs
- prefixendpointaddressmessagefilter.cs
- InternalBase.cs
- BigInt.cs
- HttpCacheVaryByContentEncodings.cs
- EventOpcode.cs
- IntegerFacetDescriptionElement.cs
- HashJoinQueryOperatorEnumerator.cs
- ThreadStaticAttribute.cs
- AsymmetricSignatureFormatter.cs
- WebPartMenuStyle.cs
- ContentType.cs
- WebBrowserHelper.cs
- ConversionContext.cs
- DataGridViewRowCollection.cs
- NavigationWindowAutomationPeer.cs
- IListConverters.cs
- BufferAllocator.cs
- AncillaryOps.cs
- TerminatorSinks.cs
- TrackBarRenderer.cs
- StringAnimationBase.cs
- TextServicesPropertyRanges.cs
- SiteMapDataSource.cs
- OutputWindow.cs
- AdapterUtil.cs
- Visual3D.cs
- GridLength.cs
- CodePropertyReferenceExpression.cs
- MergeFailedEvent.cs
- ScalarConstant.cs
- KnownTypesHelper.cs
- BinaryParser.cs
- WebPartMinimizeVerb.cs
- GenericIdentity.cs
- GlyphCache.cs
- KeyedHashAlgorithm.cs
- RSAOAEPKeyExchangeDeformatter.cs
- TypeConverterValueSerializer.cs
- BitStack.cs
- SimpleMailWebEventProvider.cs
- CodeConstructor.cs
- SyntaxCheck.cs
- ComponentGlyph.cs
- AnimationClock.cs
- ContextMenu.cs
- StrokeNodeOperations.cs
- BuildProviderAppliesToAttribute.cs
- CancellableEnumerable.cs
- DesignerActionList.cs
- InvalidCommandTreeException.cs
- TypeConverterAttribute.cs
- HtmlLink.cs
- PtsHelper.cs
- DataGridClipboardHelper.cs
- MULTI_QI.cs
- QuaternionKeyFrameCollection.cs
- DataObjectMethodAttribute.cs
- itemelement.cs
- DesignerGeometryHelper.cs
- NullableDecimalMinMaxAggregationOperator.cs
- ToolStripProgressBar.cs
- XmlObjectSerializer.cs
- RemoteWebConfigurationHostStream.cs
- OutputCacheModule.cs
- EntityCommandCompilationException.cs
- SmiRequestExecutor.cs
- GridViewCellAutomationPeer.cs
- FormsAuthenticationCredentials.cs
- SmiSettersStream.cs
- GiveFeedbackEvent.cs
- RenameRuleObjectDialog.Designer.cs
- RadioButtonList.cs
- ThreadAbortException.cs
- HostingEnvironmentSection.cs
- ValidationError.cs
- Facet.cs
- MemberDescriptor.cs
- XmlSchemaResource.cs
- WebPartEditorOkVerb.cs
- COM2ICategorizePropertiesHandler.cs
- MorphHelper.cs