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
- StringSorter.cs
- querybuilder.cs
- RelativeSource.cs
- NodeFunctions.cs
- _SafeNetHandles.cs
- WebFormsRootDesigner.cs
- ExpressionBuilderCollection.cs
- UnaryNode.cs
- HandleRef.cs
- TaskExceptionHolder.cs
- FlowDecisionDesigner.xaml.cs
- Rights.cs
- UnsafeNativeMethods.cs
- UpdatePanel.cs
- PixelShader.cs
- BitmapSource.cs
- OutputCacheProfile.cs
- XmlElementList.cs
- DbProviderFactory.cs
- DoubleKeyFrameCollection.cs
- InvalidChannelBindingException.cs
- DocumentAutomationPeer.cs
- WebPartRestoreVerb.cs
- ItemCheckedEvent.cs
- DispatcherTimer.cs
- LinearKeyFrames.cs
- Compensation.cs
- SqlDataSourceCommandEventArgs.cs
- NativeMethods.cs
- VisualTreeUtils.cs
- Span.cs
- odbcmetadatafactory.cs
- BaseParagraph.cs
- DocumentPageTextView.cs
- UserControlAutomationPeer.cs
- MouseWheelEventArgs.cs
- TextBoxBase.cs
- HierarchicalDataBoundControlAdapter.cs
- HierarchicalDataSourceControl.cs
- MetadataFile.cs
- UdpDuplexChannel.cs
- DataRecordInternal.cs
- WebPartMovingEventArgs.cs
- Color.cs
- DataGridViewLinkCell.cs
- CodeDelegateInvokeExpression.cs
- DataContext.cs
- StreamGeometry.cs
- BufferBuilder.cs
- DataQuery.cs
- ToolStripControlHost.cs
- XmlDataSourceView.cs
- SharedRuntimeState.cs
- DataGridViewRowHeaderCell.cs
- ButtonBase.cs
- XmlSerializerNamespaces.cs
- ToolTip.cs
- EventLogEntry.cs
- DrawTreeNodeEventArgs.cs
- AggregateNode.cs
- CalendarDateRange.cs
- AppSettingsReader.cs
- CompilerErrorCollection.cs
- TrustLevel.cs
- EventHandlersStore.cs
- XmlSchemaImport.cs
- DataGridViewCellEventArgs.cs
- ThemeDirectoryCompiler.cs
- assertwrapper.cs
- TrustManager.cs
- StringSorter.cs
- SmtpMail.cs
- InputScopeNameConverter.cs
- MinimizableAttributeTypeConverter.cs
- SQLGuid.cs
- CompilerGeneratedAttribute.cs
- ContentType.cs
- TextServicesManager.cs
- RelatedImageListAttribute.cs
- PermissionRequestEvidence.cs
- UnrecognizedAssertionsBindingElement.cs
- LinqDataSourceDeleteEventArgs.cs
- TemplatePartAttribute.cs
- DurableInstanceContextProvider.cs
- EdmType.cs
- SqlCacheDependencyDatabase.cs
- ProxyHelper.cs
- BaseTemplateCodeDomTreeGenerator.cs
- MemoryStream.cs
- NullableBoolConverter.cs
- WebResourceAttribute.cs
- Automation.cs
- StackBuilderSink.cs
- IBuiltInEvidence.cs
- PieceNameHelper.cs
- SimpleType.cs
- TemplateComponentConnector.cs
- ButtonPopupAdapter.cs
- DataGridViewRowStateChangedEventArgs.cs
- ReachPrintTicketSerializer.cs