Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ObjectDisposedException.cs
- Function.cs
- FlowPosition.cs
- EntityContainerAssociationSet.cs
- ColumnMapTranslator.cs
- SecurityTokenSpecification.cs
- BinaryConverter.cs
- RegexCaptureCollection.cs
- HtmlSelect.cs
- DataGridViewCellStyleConverter.cs
- QueryOpcode.cs
- ClientUrlResolverWrapper.cs
- SoapSchemaExporter.cs
- Literal.cs
- DocumentXmlWriter.cs
- CodeCommentStatement.cs
- Viewport3DVisual.cs
- XPathSelectionIterator.cs
- precedingsibling.cs
- TextBoxLine.cs
- SqlClientWrapperSmiStream.cs
- DefaultParameterValueAttribute.cs
- IOThreadScheduler.cs
- COM2ComponentEditor.cs
- Button.cs
- BehaviorEditorPart.cs
- OledbConnectionStringbuilder.cs
- IgnoreDeviceFilterElementCollection.cs
- PriorityBinding.cs
- PrintController.cs
- ButtonBase.cs
- AsyncCompletedEventArgs.cs
- DrawingDrawingContext.cs
- LongValidatorAttribute.cs
- PackagingUtilities.cs
- FacetValueContainer.cs
- HierarchicalDataBoundControl.cs
- DispatcherProcessingDisabled.cs
- BitmapEffectOutputConnector.cs
- MarkupCompiler.cs
- PlainXmlDeserializer.cs
- HighlightVisual.cs
- SerTrace.cs
- BindUriHelper.cs
- ScriptReferenceEventArgs.cs
- ComponentResourceManager.cs
- RuleSettingsCollection.cs
- SourceFileInfo.cs
- ToolbarAUtomationPeer.cs
- _ScatterGatherBuffers.cs
- WebPartConnectionsConnectVerb.cs
- VirtualizedItemProviderWrapper.cs
- Vector.cs
- LogManagementAsyncResult.cs
- NullEntityWrapper.cs
- DependencyPropertyAttribute.cs
- AssemblyGen.cs
- DiscriminatorMap.cs
- CompilerTypeWithParams.cs
- ClientSettingsProvider.cs
- DelayedRegex.cs
- ActiveDocumentEvent.cs
- Section.cs
- storepermissionattribute.cs
- SymLanguageVendor.cs
- SimpleTypeResolver.cs
- EventDescriptor.cs
- Point3DKeyFrameCollection.cs
- SerializationFieldInfo.cs
- DataGridCaption.cs
- ListContractAdapter.cs
- SqlWebEventProvider.cs
- SourceFilter.cs
- DisplayInformation.cs
- TextStore.cs
- DynamicPropertyHolder.cs
- TemplateBindingExtensionConverter.cs
- IgnoreFlushAndCloseStream.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- TreeViewImageGenerator.cs
- ConfigXmlWhitespace.cs
- DataMemberFieldConverter.cs
- ToolStripItem.cs
- HttpCookie.cs
- DataColumnCollection.cs
- XmlSerializerObjectSerializer.cs
- PixelFormat.cs
- handlecollector.cs
- DocumentSequenceHighlightLayer.cs
- ImageIndexConverter.cs
- LineBreak.cs
- ReaderWriterLock.cs
- StringArrayConverter.cs
- UrlUtility.cs
- BindingContext.cs
- SQLInt16Storage.cs
- OutputCacheSettings.cs
- MarkupCompilePass2.cs
- PropertyNames.cs
- HashMembershipCondition.cs