Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- HashAlgorithm.cs
- Int32Rect.cs
- DivideByZeroException.cs
- TouchesCapturedWithinProperty.cs
- RenderingBiasValidation.cs
- Membership.cs
- DrawingAttributeSerializer.cs
- MatrixConverter.cs
- TraceHwndHost.cs
- ListViewItem.cs
- ToolStripOverflow.cs
- EntitySetBaseCollection.cs
- ResolvedKeyFrameEntry.cs
- ADMembershipProvider.cs
- Documentation.cs
- ContractInferenceHelper.cs
- CLRBindingWorker.cs
- ClientUtils.cs
- WindowsTitleBar.cs
- SrgsSubset.cs
- Blend.cs
- FastEncoderWindow.cs
- IdentityManager.cs
- DragEvent.cs
- BinaryFormatterSinks.cs
- ComboBoxRenderer.cs
- SettingsPropertyIsReadOnlyException.cs
- WindowsButton.cs
- figurelength.cs
- SqlConnectionPoolGroupProviderInfo.cs
- LineSegment.cs
- ExtensionsSection.cs
- DrawItemEvent.cs
- ProxyWebPart.cs
- ToolStripProgressBar.cs
- OutputWindow.cs
- AsymmetricKeyExchangeFormatter.cs
- HandlerBase.cs
- CancellationTokenRegistration.cs
- FixedSOMFixedBlock.cs
- WindowsClientCredential.cs
- QilXmlReader.cs
- TraceFilter.cs
- QueryCreatedEventArgs.cs
- SqlLiftWhereClauses.cs
- NestedContainer.cs
- CssTextWriter.cs
- FileDialogCustomPlacesCollection.cs
- CompressEmulationStream.cs
- NamespaceMapping.cs
- WebPartCloseVerb.cs
- Array.cs
- BasicCellRelation.cs
- SettingsAttributeDictionary.cs
- EditCommandColumn.cs
- ContentWrapperAttribute.cs
- KeyConverter.cs
- SmtpDateTime.cs
- Expressions.cs
- SchemaTypeEmitter.cs
- Control.cs
- RSAProtectedConfigurationProvider.cs
- DependencyPropertyKind.cs
- InstalledFontCollection.cs
- UniqueIdentifierService.cs
- DnsEndPoint.cs
- WindowsToolbarAsMenu.cs
- SettingsProviderCollection.cs
- NavigatingCancelEventArgs.cs
- HScrollBar.cs
- ColumnClickEvent.cs
- SaveWorkflowCommand.cs
- Rect.cs
- TimeoutTimer.cs
- NavigateEvent.cs
- CompiledQuery.cs
- RegisteredHiddenField.cs
- EmptyQuery.cs
- BamlTreeNode.cs
- MimeObjectFactory.cs
- ScrollProviderWrapper.cs
- CallbackValidator.cs
- cryptoapiTransform.cs
- SelectorAutomationPeer.cs
- DesignerActionUIStateChangeEventArgs.cs
- MonitoringDescriptionAttribute.cs
- ScriptRegistrationManager.cs
- RoleGroup.cs
- ExtentCqlBlock.cs
- ContextMenuStripGroup.cs
- TdsValueSetter.cs
- XmlSubtreeReader.cs
- FtpCachePolicyElement.cs
- SourceChangedEventArgs.cs
- BindUriHelper.cs
- PageWrapper.cs
- GenericTransactionFlowAttribute.cs
- AuthorizationRuleCollection.cs
- DateTimeSerializationSection.cs
- DoubleAnimationBase.cs