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
- SQLGuidStorage.cs
- CompletedAsyncResult.cs
- XPathAncestorIterator.cs
- InfoCardAsymmetricCrypto.cs
- _TLSstream.cs
- dataprotectionpermission.cs
- CollectionChangedEventManager.cs
- HierarchicalDataTemplate.cs
- OuterGlowBitmapEffect.cs
- ParallelSeparator.xaml.cs
- BooleanExpr.cs
- validation.cs
- CheckedListBox.cs
- Int64AnimationBase.cs
- HijriCalendar.cs
- DbProviderFactories.cs
- DataBoundControlHelper.cs
- QueryContinueDragEvent.cs
- DesignerVerbCollection.cs
- TrackBarRenderer.cs
- ProfileInfo.cs
- HttpHandlerAction.cs
- BaseUriHelper.cs
- OrderedDictionary.cs
- SerializationFieldInfo.cs
- FilterableAttribute.cs
- ThemeDictionaryExtension.cs
- Cursor.cs
- QilReference.cs
- TextClipboardData.cs
- AQNBuilder.cs
- InstanceKeyCollisionException.cs
- BrowserDefinitionCollection.cs
- IOThreadTimer.cs
- HtmlInputPassword.cs
- HostingEnvironment.cs
- SwitchAttribute.cs
- XmlCustomFormatter.cs
- MaxSessionCountExceededException.cs
- OleDbReferenceCollection.cs
- WSSecurityPolicy11.cs
- Maps.cs
- CombinedHttpChannel.cs
- Calendar.cs
- XPathArrayIterator.cs
- ConnectionConsumerAttribute.cs
- XPathAncestorIterator.cs
- _ServiceNameStore.cs
- GlobalizationAssembly.cs
- PaintEvent.cs
- TraceHandler.cs
- KerberosRequestorSecurityToken.cs
- AesManaged.cs
- CellQuery.cs
- PropertyChangedEventManager.cs
- LambdaCompiler.Lambda.cs
- XmlSerializer.cs
- FactoryGenerator.cs
- FixedSOMTableCell.cs
- CurrencyManager.cs
- CompilerParameters.cs
- MetadataItem_Static.cs
- SafeLibraryHandle.cs
- ClientScriptManager.cs
- Span.cs
- FixUp.cs
- AnnotationDocumentPaginator.cs
- ColumnTypeConverter.cs
- SqlCrossApplyToCrossJoin.cs
- CurrencyWrapper.cs
- ServicesUtilities.cs
- PeerInvitationResponse.cs
- NameValueSectionHandler.cs
- PageAsyncTask.cs
- PrinterUnitConvert.cs
- ListControlDesigner.cs
- ParallelEnumerableWrapper.cs
- SystemIPGlobalStatistics.cs
- SemaphoreSecurity.cs
- ObjectSpanRewriter.cs
- IPAddressCollection.cs
- SqlCacheDependencyDatabase.cs
- XPathBinder.cs
- Binding.cs
- CacheMode.cs
- RuntimeIdentifierPropertyAttribute.cs
- XPathCompileException.cs
- WpfGeneratedKnownProperties.cs
- Pair.cs
- Scene3D.cs
- FtpRequestCacheValidator.cs
- StdValidatorsAndConverters.cs
- ValidateNames.cs
- DisplayNameAttribute.cs
- RIPEMD160.cs
- PermissionSet.cs
- _IPv6Address.cs
- ConfigurationLockCollection.cs
- OutKeywords.cs
- DataFormats.cs