Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- XNameConverter.cs
- AppDomainProtocolHandler.cs
- ActivityTypeCodeDomSerializer.cs
- HttpMethodAttribute.cs
- LazyTextWriterCreator.cs
- ConfigWriter.cs
- PropertyInfoSet.cs
- EmbeddedObject.cs
- UiaCoreApi.cs
- StylusPlugin.cs
- SSmlParser.cs
- DefaultWorkflowSchedulerService.cs
- ScriptModule.cs
- Overlapped.cs
- ViewManager.cs
- TypeSystem.cs
- Vector3D.cs
- DataGridCellsPresenter.cs
- RegistrySecurity.cs
- ToolStripPanelRenderEventArgs.cs
- VirtualDirectoryMapping.cs
- WindowsStreamSecurityUpgradeProvider.cs
- ActivityCodeDomSerializer.cs
- ExpressionWriter.cs
- FullTextLine.cs
- StyleSheet.cs
- DesignTimeTemplateParser.cs
- ByteRangeDownloader.cs
- EncodingTable.cs
- WindowsSysHeader.cs
- DiscoveryRequestHandler.cs
- CodeAccessSecurityEngine.cs
- WebPartCloseVerb.cs
- CompiledXpathExpr.cs
- SpecularMaterial.cs
- SapiInterop.cs
- RepeaterCommandEventArgs.cs
- LineSegment.cs
- ClipboardProcessor.cs
- X509SecurityTokenAuthenticator.cs
- RtType.cs
- SrgsGrammar.cs
- DateTimeConverter.cs
- ProjectionCamera.cs
- UnaryNode.cs
- SafePointer.cs
- DataChangedEventManager.cs
- KeyFrames.cs
- MILUtilities.cs
- ChameleonKey.cs
- CodePrimitiveExpression.cs
- ParameterCollection.cs
- DBBindings.cs
- BinaryUtilClasses.cs
- WebHttpEndpoint.cs
- WebEncodingValidatorAttribute.cs
- Constraint.cs
- XmlSchemaAttribute.cs
- CallbackException.cs
- XmlArrayAttribute.cs
- GridViewUpdateEventArgs.cs
- DateTimeFormatInfo.cs
- ToolStripStatusLabel.cs
- PointCollectionValueSerializer.cs
- ExtractCollection.cs
- ProtectedConfiguration.cs
- TrackingQueryElement.cs
- ManualResetEvent.cs
- sqlinternaltransaction.cs
- FileLogRecordHeader.cs
- ThemeDirectoryCompiler.cs
- Hex.cs
- SectionInput.cs
- DispatcherProcessingDisabled.cs
- Permission.cs
- WindowsToolbar.cs
- DSACryptoServiceProvider.cs
- PolygonHotSpot.cs
- FieldToken.cs
- TemplateAction.cs
- ThumbAutomationPeer.cs
- Rules.cs
- IResourceProvider.cs
- Utils.cs
- XmlSubtreeReader.cs
- DriveInfo.cs
- ValidationPropertyAttribute.cs
- TraceHandlerErrorFormatter.cs
- OperatingSystem.cs
- NameTable.cs
- DocumentViewerAutomationPeer.cs
- UserValidatedEventArgs.cs
- BooleanSwitch.cs
- ColumnResizeAdorner.cs
- ChunkedMemoryStream.cs
- ComponentDispatcherThread.cs
- MimeTypeMapper.cs
- SynchronousChannel.cs
- TableLayoutSettingsTypeConverter.cs
- BaseDataBoundControl.cs