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
- ProfileProvider.cs
- ObjectQueryState.cs
- ChangeNode.cs
- BaseComponentEditor.cs
- XhtmlBasicTextViewAdapter.cs
- BindableTemplateBuilder.cs
- localization.cs
- ThemeDirectoryCompiler.cs
- ClientRolePrincipal.cs
- BinaryFormatterSinks.cs
- ExceptionUtil.cs
- DBConnectionString.cs
- CustomLineCap.cs
- ColumnWidthChangedEvent.cs
- WsiProfilesElement.cs
- WebPartDescriptionCollection.cs
- ListBox.cs
- TextEffectResolver.cs
- ActiveXSerializer.cs
- PrintPreviewGraphics.cs
- WebPartTransformerAttribute.cs
- CalendarDayButton.cs
- WindowsAuthenticationModule.cs
- ClientTarget.cs
- LambdaReference.cs
- InvokeProviderWrapper.cs
- RequestCache.cs
- ConfigurationManagerHelperFactory.cs
- WebPartDisplayModeCancelEventArgs.cs
- ColorEditor.cs
- ControlBuilderAttribute.cs
- SQLDouble.cs
- RegexRunnerFactory.cs
- ComboBoxItem.cs
- NamespaceQuery.cs
- LateBoundBitmapDecoder.cs
- WebResourceUtil.cs
- Separator.cs
- MessageQueuePermissionEntry.cs
- TransformCollection.cs
- MetadataSource.cs
- LineServices.cs
- Container.cs
- DataRelation.cs
- XsltArgumentList.cs
- StrictAndMessageFilter.cs
- OleDbFactory.cs
- ThrowHelper.cs
- ButtonStandardAdapter.cs
- CachedPathData.cs
- XmlLanguageConverter.cs
- ManagementOptions.cs
- TagPrefixCollection.cs
- TokenBasedSet.cs
- SendMailErrorEventArgs.cs
- PeerCollaborationPermission.cs
- TypedTableHandler.cs
- XmlDigitalSignatureProcessor.cs
- EventDriven.cs
- DataGridViewCell.cs
- InheritanceAttribute.cs
- MultipleViewProviderWrapper.cs
- HttpModulesSection.cs
- XmlBinaryReader.cs
- SqlTrackingService.cs
- PublisherIdentityPermission.cs
- Types.cs
- OperationContextScope.cs
- SynchronizationLockException.cs
- ImageMap.cs
- MultitargetUtil.cs
- MetadataCacheItem.cs
- ExpressionStringBuilder.cs
- FixedSOMLineRanges.cs
- Label.cs
- tooltip.cs
- MimeFormatExtensions.cs
- mediaclock.cs
- ExtendedProtectionPolicy.cs
- PersistChildrenAttribute.cs
- xml.cs
- EntityDataSourceDataSelection.cs
- Operand.cs
- Empty.cs
- Console.cs
- ServiceObjectContainer.cs
- RowParagraph.cs
- CodeStatementCollection.cs
- LiteralControl.cs
- EntityParameterCollection.cs
- PEFileEvidenceFactory.cs
- AlphabetConverter.cs
- LoadGrammarCompletedEventArgs.cs
- StateBag.cs
- DesignerVerbCollection.cs
- _UncName.cs
- X509ScopedServiceCertificateElement.cs
- RightsManagementInformation.cs
- DataGridViewAccessibleObject.cs
- VisualTransition.cs