Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- WebExceptionStatus.cs
- URLString.cs
- NetworkInformationPermission.cs
- CategoryList.cs
- StrokeDescriptor.cs
- BoundColumn.cs
- NamespaceDecl.cs
- RuleProcessor.cs
- ContentValidator.cs
- SoapObjectWriter.cs
- XmlSecureResolver.cs
- SubqueryTrackingVisitor.cs
- DataServiceQueryOfT.cs
- HttpCachePolicyBase.cs
- TableItemStyle.cs
- DrawingDrawingContext.cs
- PaperSize.cs
- WebPartConnectionsEventArgs.cs
- NameNode.cs
- Size3D.cs
- StateManager.cs
- SqlParameter.cs
- Literal.cs
- FormsAuthenticationEventArgs.cs
- DeleteMemberBinder.cs
- Version.cs
- ResXBuildProvider.cs
- BlockingCollection.cs
- CoreSwitches.cs
- SimpleWorkerRequest.cs
- CloseCollectionAsyncResult.cs
- TreeWalkHelper.cs
- QueryFunctions.cs
- CachedBitmap.cs
- ObjectContext.cs
- ConditionCollection.cs
- ReadWriteObjectLock.cs
- AccessDataSource.cs
- ColumnClickEvent.cs
- SrgsText.cs
- HtmlInputCheckBox.cs
- TripleDES.cs
- RoutedCommand.cs
- BaseUriWithWildcard.cs
- EntityDataSourceDesignerHelper.cs
- ObjectAssociationEndMapping.cs
- CounterCreationData.cs
- StaticFileHandler.cs
- SimpleBitVector32.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- WebPartConnection.cs
- ServiceDescriptionData.cs
- ConfigurationErrorsException.cs
- IChannel.cs
- GacUtil.cs
- MsmqSecureHashAlgorithm.cs
- XmlSignificantWhitespace.cs
- ColumnHeaderConverter.cs
- StateMachine.cs
- CodeDefaultValueExpression.cs
- PropertyPathWorker.cs
- SecurityAlgorithmSuiteConverter.cs
- XmlResolver.cs
- CellCreator.cs
- RegistryKey.cs
- KeyValueConfigurationCollection.cs
- TypeListConverter.cs
- FixedNode.cs
- EntityType.cs
- ThreadExceptionDialog.cs
- ImplicitInputBrush.cs
- FreezableCollection.cs
- PersonalizationEntry.cs
- PagesSection.cs
- ExeContext.cs
- HttpServerUtilityWrapper.cs
- ExceptionRoutedEventArgs.cs
- FrameworkElement.cs
- TypeElementCollection.cs
- ImpersonateTokenRef.cs
- Color.cs
- MatrixTransform.cs
- AdornerLayer.cs
- CultureInfoConverter.cs
- FormsAuthenticationModule.cs
- LabelEditEvent.cs
- XmlLinkedNode.cs
- SocketPermission.cs
- AsynchronousChannel.cs
- TemplateAction.cs
- WebColorConverter.cs
- ThreadPool.cs
- XmlSubtreeReader.cs
- SignatureDescription.cs
- DiscoveryVersionConverter.cs
- WebConfigurationHost.cs
- ReceiveActivityValidator.cs
- Expression.cs
- RouteValueExpressionBuilder.cs
- BinaryUtilClasses.cs