Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / KernelTypeValidation.cs / 1305600 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataFieldConverter.cs
- Metadata.cs
- DataGridLength.cs
- HashAlgorithm.cs
- Point3DAnimationUsingKeyFrames.cs
- XsltArgumentList.cs
- XmlAnyElementAttribute.cs
- ListItemConverter.cs
- SqlBulkCopyColumnMappingCollection.cs
- AutoGeneratedFieldProperties.cs
- DataExpression.cs
- CalendarButton.cs
- SafeArrayRankMismatchException.cs
- RepeatBehaviorConverter.cs
- SymbolEqualComparer.cs
- GAC.cs
- ImageIndexConverter.cs
- SuppressMergeCheckAttribute.cs
- ValueUnavailableException.cs
- TextPattern.cs
- ScriptingJsonSerializationSection.cs
- HelpInfo.cs
- CodeStatement.cs
- compensatingcollection.cs
- GeometryConverter.cs
- PlatformNotSupportedException.cs
- NodeLabelEditEvent.cs
- RijndaelCryptoServiceProvider.cs
- DetailsViewDeletedEventArgs.cs
- BinaryNode.cs
- Misc.cs
- ColorTranslator.cs
- CryptographicAttribute.cs
- SchemaDeclBase.cs
- SubpageParaClient.cs
- Convert.cs
- HotCommands.cs
- ResourceWriter.cs
- Int16Converter.cs
- HostedTransportConfigurationBase.cs
- TreeNodeCollection.cs
- QueryLifecycle.cs
- TextEmbeddedObject.cs
- Model3D.cs
- _ListenerAsyncResult.cs
- DeviceSpecificDialogCachedState.cs
- DbProviderFactories.cs
- ValidatingPropertiesEventArgs.cs
- altserialization.cs
- StoreAnnotationsMap.cs
- FilteredDataSetHelper.cs
- LayoutEngine.cs
- TransactionProtocolConverter.cs
- DesignerCategoryAttribute.cs
- VectorConverter.cs
- GeometryHitTestResult.cs
- HttpDictionary.cs
- WindowsSysHeader.cs
- DBBindings.cs
- OdbcCommand.cs
- InputLanguageSource.cs
- JavaScriptSerializer.cs
- UnionExpr.cs
- TextRange.cs
- DefaultTraceListener.cs
- ValidatorUtils.cs
- DisplayInformation.cs
- ServerValidateEventArgs.cs
- Span.cs
- CheckBoxList.cs
- EventLogException.cs
- EncryptedType.cs
- TransformerInfoCollection.cs
- MembershipSection.cs
- Queue.cs
- updatecommandorderer.cs
- CodeAttributeDeclarationCollection.cs
- DeviceSpecific.cs
- DataControlPagerLinkButton.cs
- AddInStore.cs
- UrlAuthorizationModule.cs
- AttachmentCollection.cs
- GeometryCombineModeValidation.cs
- DrawItemEvent.cs
- NoResizeHandleGlyph.cs
- State.cs
- DynamicResourceExtension.cs
- DataControlLinkButton.cs
- XmlAnyElementAttributes.cs
- HtmlFormWrapper.cs
- NamespaceList.cs
- RSAOAEPKeyExchangeDeformatter.cs
- GeneralTransform.cs
- TableItemPattern.cs
- BaseInfoTable.cs
- HttpHandlerActionCollection.cs
- ReferenceEqualityComparer.cs
- XmlAttributeOverrides.cs
- SystemDiagnosticsSection.cs
- GlyphRunDrawing.cs