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
- DataServiceRequestOfT.cs
- selecteditemcollection.cs
- invalidudtexception.cs
- SyntaxCheck.cs
- EmbeddedObject.cs
- ExpressionSelection.cs
- MatrixAnimationBase.cs
- SafeRegistryHandle.cs
- SevenBitStream.cs
- PartialTrustHelpers.cs
- Point3DAnimation.cs
- FixedSOMPage.cs
- XomlCompiler.cs
- x509store.cs
- BuildProvider.cs
- AlternationConverter.cs
- TouchEventArgs.cs
- ToolStripEditorManager.cs
- ModelToObjectValueConverter.cs
- UIElement3D.cs
- PrintController.cs
- _OverlappedAsyncResult.cs
- MDIControlStrip.cs
- Camera.cs
- Utility.cs
- HttpConfigurationSystem.cs
- StylusCollection.cs
- SerialErrors.cs
- DataGridViewCellEventArgs.cs
- WinFormsUtils.cs
- CaseStatement.cs
- MenuEventArgs.cs
- HttpCachePolicy.cs
- GridViewRowCollection.cs
- DataGridViewDesigner.cs
- ColorDialog.cs
- ContextMenuStripActionList.cs
- SyntaxCheck.cs
- TableRow.cs
- GridViewSortEventArgs.cs
- ObjectDataSourceMethodEventArgs.cs
- XmlBaseReader.cs
- ExtendedProtectionPolicy.cs
- ScrollBar.cs
- TextDocumentView.cs
- DataRowView.cs
- ConstraintEnumerator.cs
- DragEvent.cs
- SparseMemoryStream.cs
- AssertFilter.cs
- AdapterUtil.cs
- HwndKeyboardInputProvider.cs
- CustomAttributeSerializer.cs
- Parser.cs
- TableLayoutColumnStyleCollection.cs
- AuthenticationException.cs
- DesignerView.Commands.cs
- MailHeaderInfo.cs
- ReflectionTypeLoadException.cs
- TextRunProperties.cs
- EventSinkActivity.cs
- StringToken.cs
- IODescriptionAttribute.cs
- EventProviderWriter.cs
- AppDomainUnloadedException.cs
- MexHttpBindingElement.cs
- EntityDataSourceContextDisposingEventArgs.cs
- EnlistmentTraceIdentifier.cs
- TextTreeTextElementNode.cs
- WsatConfiguration.cs
- XmlLinkedNode.cs
- ImageFormat.cs
- CultureMapper.cs
- DesignerAutoFormat.cs
- OleTxTransactionInfo.cs
- MouseButtonEventArgs.cs
- X509CertificateCollection.cs
- DataTemplateKey.cs
- ArrangedElement.cs
- BuiltInExpr.cs
- Attribute.cs
- GridViewRowPresenter.cs
- HTTPNotFoundHandler.cs
- METAHEADER.cs
- PeerContact.cs
- ObjectDisposedException.cs
- WmlCalendarAdapter.cs
- _ShellExpression.cs
- CipherData.cs
- HtmlHistory.cs
- InternalConfigEventArgs.cs
- BindingWorker.cs
- DynamicQueryableWrapper.cs
- FilterException.cs
- CodeEntryPointMethod.cs
- GroupBoxRenderer.cs
- BaseCodeDomTreeGenerator.cs
- Models.cs
- BindingExpressionUncommonField.cs
- DispatcherProcessingDisabled.cs