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
- TextMetrics.cs
- AsynchronousChannelMergeEnumerator.cs
- NamespaceEmitter.cs
- HotSpot.cs
- ReaderWriterLockWrapper.cs
- MimeReturn.cs
- Splitter.cs
- RoleManagerSection.cs
- Triplet.cs
- VisualBrush.cs
- ElementHostPropertyMap.cs
- PersonalizableTypeEntry.cs
- RijndaelManagedTransform.cs
- CollectionEditVerbManager.cs
- HttpException.cs
- CrossAppDomainChannel.cs
- List.cs
- BindingParameterCollection.cs
- UdpChannelFactory.cs
- SourceSwitch.cs
- Directory.cs
- TreeNodeSelectionProcessor.cs
- SystemSounds.cs
- ListViewItemEventArgs.cs
- DSACryptoServiceProvider.cs
- VersionPair.cs
- BaseTreeIterator.cs
- CategoryAttribute.cs
- AccessViolationException.cs
- SystemNetworkInterface.cs
- AssertUtility.cs
- ObjectListItem.cs
- FixedTextView.cs
- DataObjectSettingDataEventArgs.cs
- SignedInfo.cs
- RelationshipManager.cs
- SecurityAttributeGenerationHelper.cs
- UserMapPath.cs
- _NestedMultipleAsyncResult.cs
- TextBounds.cs
- EntitySqlQueryCacheKey.cs
- TypeConverterAttribute.cs
- BufferedReadStream.cs
- VectorCollectionValueSerializer.cs
- FullTextLine.cs
- Effect.cs
- TabControl.cs
- DeploymentExceptionMapper.cs
- remotingproxy.cs
- PartitionedStream.cs
- DllNotFoundException.cs
- PathTooLongException.cs
- ResourceCategoryAttribute.cs
- ConnectionStringsExpressionBuilder.cs
- MdiWindowListStrip.cs
- AnchorEditor.cs
- DocumentApplication.cs
- Content.cs
- ToolStripPanelRow.cs
- TextTreeUndo.cs
- WorkflowApplication.cs
- XmlSerializerObjectSerializer.cs
- Rectangle.cs
- AttributeExtensions.cs
- PropertyGridView.cs
- TextBox.cs
- _DomainName.cs
- QueryGenerator.cs
- Rect3D.cs
- CommandDesigner.cs
- TextContainer.cs
- PlanCompiler.cs
- Parallel.cs
- TimeoutException.cs
- HelpProvider.cs
- WindowsFont.cs
- AssemblyUtil.cs
- ObsoleteAttribute.cs
- PolyQuadraticBezierSegment.cs
- XPathScanner.cs
- Guid.cs
- XPathException.cs
- EntityDesignerBuildProvider.cs
- DataControlCommands.cs
- Figure.cs
- LineInfo.cs
- InputLangChangeEvent.cs
- EntityContainer.cs
- ThemeInfoAttribute.cs
- VirtualPathProvider.cs
- UdpAnnouncementEndpoint.cs
- MetadataImporterQuotas.cs
- DeclarativeExpressionConditionDeclaration.cs
- DesignUtil.cs
- ParsedRoute.cs
- CombinedHttpChannel.cs
- PathData.cs
- RecordsAffectedEventArgs.cs
- AnimationLayer.cs
- ScriptReference.cs