Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Shared / MS / Internal / Generated / KernelTypeValidation.cs / 1 / KernelTypeValidation.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.
//
//---------------------------------------------------------------------------
#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.Effects
{
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 IsKernelTypeValid(object valueObject)
{
KernelType value = (KernelType) valueObject;
return (value == KernelType.Gaussian) ||
(value == KernelType.Box);
}
}
}
// 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.
//
//---------------------------------------------------------------------------
#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.Effects
{
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 IsKernelTypeValid(object valueObject)
{
KernelType value = (KernelType) valueObject;
return (value == KernelType.Gaussian) ||
(value == KernelType.Box);
}
}
}
// 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
- TypeHelper.cs
- ByteConverter.cs
- DataSourceControl.cs
- Size3DValueSerializer.cs
- LongPath.cs
- ClientRuntimeConfig.cs
- Exceptions.cs
- SqlProviderServices.cs
- sqlser.cs
- WebPartConnectionsConfigureVerb.cs
- TextBox.cs
- AsyncOperation.cs
- MenuItemBinding.cs
- AsymmetricSignatureDeformatter.cs
- BitmapEffectDrawingContent.cs
- BindingContext.cs
- WS2007HttpBinding.cs
- PointValueSerializer.cs
- UIElement.cs
- RelationshipEndMember.cs
- KeyedCollection.cs
- EventDrivenDesigner.cs
- StrokeCollectionConverter.cs
- CodeParameterDeclarationExpression.cs
- FileStream.cs
- xml.cs
- WindowsListViewItemStartMenu.cs
- XmlBaseWriter.cs
- AliasGenerator.cs
- DataTableClearEvent.cs
- EasingQuaternionKeyFrame.cs
- IgnoreSectionHandler.cs
- ParentUndoUnit.cs
- XPathArrayIterator.cs
- IDQuery.cs
- PageEventArgs.cs
- HttpStreamFormatter.cs
- XsltCompileContext.cs
- LinqTreeNodeEvaluator.cs
- PrePostDescendentsWalker.cs
- DetailsViewRow.cs
- ElementsClipboardData.cs
- AsymmetricKeyExchangeDeformatter.cs
- ReferencedAssembly.cs
- OleDbPermission.cs
- FloatUtil.cs
- RuntimeConfigurationRecord.cs
- EdmToObjectNamespaceMap.cs
- KnownTypeDataContractResolver.cs
- SqlTriggerContext.cs
- RangeContentEnumerator.cs
- ListViewItemMouseHoverEvent.cs
- ValueSerializerAttribute.cs
- SpotLight.cs
- FileNotFoundException.cs
- ModelTypeConverter.cs
- Stopwatch.cs
- LocalizationParserHooks.cs
- KeyedHashAlgorithm.cs
- HttpRequest.cs
- EmbeddedMailObjectCollectionEditor.cs
- SamlSecurityToken.cs
- SelfIssuedAuthAsymmetricKey.cs
- ClaimComparer.cs
- FocusManager.cs
- SessionStateModule.cs
- QilCloneVisitor.cs
- TextDpi.cs
- SQLMoney.cs
- TypeSystem.cs
- HandledMouseEvent.cs
- ListViewDesigner.cs
- Grant.cs
- WebPartCloseVerb.cs
- SessionStateSection.cs
- Matrix.cs
- ToolStripContentPanelRenderEventArgs.cs
- SqlTypesSchemaImporter.cs
- BuildProvider.cs
- XmlSchemaSimpleTypeList.cs
- MarkerProperties.cs
- XmlQueryOutput.cs
- WebScriptMetadataMessageEncodingBindingElement.cs
- AdornerLayer.cs
- InfoCardServiceInstallComponent.cs
- VirtualPathProvider.cs
- StylusPointCollection.cs
- ToolStripControlHost.cs
- CacheVirtualItemsEvent.cs
- GPPOINTF.cs
- InputManager.cs
- COAUTHIDENTITY.cs
- MemoryFailPoint.cs
- OdbcConnection.cs
- XmlNodeList.cs
- Control.cs
- BitmapDecoder.cs
- ComEventsHelper.cs
- FlowchartDesigner.Helpers.cs
- SettingsBase.cs