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
- CellParaClient.cs
- InkCollectionBehavior.cs
- Stack.cs
- RegionIterator.cs
- _LazyAsyncResult.cs
- QilVisitor.cs
- HtmlInputCheckBox.cs
- PlatformNotSupportedException.cs
- AQNBuilder.cs
- WindowsScrollBarBits.cs
- X509ChainElement.cs
- Rect.cs
- EntitySqlException.cs
- AuthenticateEventArgs.cs
- RijndaelManaged.cs
- InheritanceRules.cs
- XPathMultyIterator.cs
- PartialList.cs
- SafeNativeMethods.cs
- DateTimePicker.cs
- DockPanel.cs
- EntityDesignerDataSourceView.cs
- MailDefinition.cs
- InstanceCreationEditor.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- SubMenuStyle.cs
- LambdaCompiler.Unary.cs
- GlyphRunDrawing.cs
- Light.cs
- ImageCodecInfoPrivate.cs
- DataGrid.cs
- DateTimePickerDesigner.cs
- ClockGroup.cs
- _SslSessionsCache.cs
- CachedFontFamily.cs
- SamlAction.cs
- IndependentlyAnimatedPropertyMetadata.cs
- PresentationSource.cs
- DataGridColumnCollectionEditor.cs
- BackgroundWorker.cs
- ClientUrlResolverWrapper.cs
- SourceFilter.cs
- StickyNoteHelper.cs
- EastAsianLunisolarCalendar.cs
- BitmapCache.cs
- IUnknownConstantAttribute.cs
- DataRowComparer.cs
- ReflectionHelper.cs
- SqlClientWrapperSmiStream.cs
- DataServiceRequestArgs.cs
- PersonalizablePropertyEntry.cs
- WebExceptionStatus.cs
- DynamicQueryStringParameter.cs
- GatewayDefinition.cs
- GridViewUpdatedEventArgs.cs
- InlinedAggregationOperator.cs
- TagMapInfo.cs
- WebDisplayNameAttribute.cs
- SerialErrors.cs
- OracleConnectionFactory.cs
- MethodRental.cs
- MoveSizeWinEventHandler.cs
- BinaryParser.cs
- httpstaticobjectscollection.cs
- HostProtectionPermission.cs
- util.cs
- StreamGeometry.cs
- DocumentDesigner.cs
- DataGridViewBindingCompleteEventArgs.cs
- ServiceThrottlingBehavior.cs
- ProxyFragment.cs
- coordinator.cs
- SqlDependencyListener.cs
- SiteMapPath.cs
- AutoSizeComboBox.cs
- PathStreamGeometryContext.cs
- ScrollContentPresenter.cs
- DigestComparer.cs
- GestureRecognitionResult.cs
- XmlDictionaryWriter.cs
- SynchronizedInputPattern.cs
- IdleTimeoutMonitor.cs
- DesignerSerializerAttribute.cs
- ModuleBuilder.cs
- XsdValidatingReader.cs
- CompilationUtil.cs
- CultureMapper.cs
- SubpageParaClient.cs
- MetadataCache.cs
- SQLMembershipProvider.cs
- CultureSpecificCharacterBufferRange.cs
- FormattedText.cs
- ScriptingWebServicesSectionGroup.cs
- UiaCoreApi.cs
- OdbcReferenceCollection.cs
- CurrentChangedEventManager.cs
- OptimalTextSource.cs
- GridLengthConverter.cs
- FastPropertyAccessor.cs
- GeometryModel3D.cs