Code:
/ 4.0 / 4.0 / 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.
//----------------------------------------------------------------------------
//
//
// 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
- NameValuePermission.cs
- Queue.cs
- CapabilitiesSection.cs
- StandardTransformFactory.cs
- WorkflowServiceOperationListItem.cs
- AxWrapperGen.cs
- Comparer.cs
- LinkUtilities.cs
- CalendarDataBindingHandler.cs
- DocumentPageTextView.cs
- SerializationSectionGroup.cs
- TextContainer.cs
- CallbackBehaviorAttribute.cs
- RightsManagementEncryptedStream.cs
- HttpResponseWrapper.cs
- SelectionPatternIdentifiers.cs
- KerberosSecurityTokenProvider.cs
- DragStartedEventArgs.cs
- TreeViewImageKeyConverter.cs
- VolatileResourceManager.cs
- HostingPreferredMapPath.cs
- AspProxy.cs
- ReferenceConverter.cs
- Popup.cs
- InitiatorSessionSymmetricMessageSecurityProtocol.cs
- XmlCDATASection.cs
- HyperLinkColumn.cs
- DataTableMappingCollection.cs
- FastPropertyAccessor.cs
- ArrayConverter.cs
- DiscoveryClientChannelBase.cs
- Odbc32.cs
- X509Chain.cs
- UnionExpr.cs
- DbConnectionClosed.cs
- SiteMapSection.cs
- DateTimeOffsetConverter.cs
- CompilationUnit.cs
- BindingExpression.cs
- Window.cs
- ContentControl.cs
- Lock.cs
- ObjectDataSourceFilteringEventArgs.cs
- HttpRawResponse.cs
- AdvancedBindingPropertyDescriptor.cs
- PropertyGeneratedEventArgs.cs
- OdbcConnection.cs
- AuthenticatingEventArgs.cs
- JsonEncodingStreamWrapper.cs
- UIElement3DAutomationPeer.cs
- KeyboardNavigation.cs
- ToolStripContentPanel.cs
- SqlConnectionStringBuilder.cs
- CodeConstructor.cs
- FileStream.cs
- XmlAnyElementAttribute.cs
- D3DImage.cs
- PrivateFontCollection.cs
- XmlReader.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- TextElement.cs
- ValidatingReaderNodeData.cs
- NumericUpDownAcceleration.cs
- Panel.cs
- TemplateColumn.cs
- ChannelDispatcherCollection.cs
- SqlClientWrapperSmiStreamChars.cs
- QueueProcessor.cs
- Expr.cs
- IsolatedStorageFileStream.cs
- AccessViolationException.cs
- CreateRefExpr.cs
- GB18030Encoding.cs
- RichTextBoxContextMenu.cs
- NativeMethodsOther.cs
- ColumnClickEvent.cs
- DataStorage.cs
- BamlStream.cs
- DateTimeConverter.cs
- CmsInterop.cs
- AnalyzedTree.cs
- PropertyEntry.cs
- FileDialog.cs
- CanonicalFontFamilyReference.cs
- ExpressionValueEditor.cs
- ItemAutomationPeer.cs
- TextSimpleMarkerProperties.cs
- SQLGuidStorage.cs
- TextFragmentEngine.cs
- MailWebEventProvider.cs
- XmlWrappingWriter.cs
- SqlDataSourceCommandEventArgs.cs
- DataGridCellsPanel.cs
- DataPagerFieldCommandEventArgs.cs
- TextSelection.cs
- ArrayTypeMismatchException.cs
- MetadataCollection.cs
- DrawingGroup.cs
- DbConnectionInternal.cs
- ApplicationSecurityManager.cs