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
- BuildTopDownAttribute.cs
- FilterEventArgs.cs
- EnumBuilder.cs
- SettingsProviderCollection.cs
- RenderingEventArgs.cs
- Int32Storage.cs
- FilteredXmlReader.cs
- TypeSystemProvider.cs
- Win32.cs
- HttpServerProtocol.cs
- CodeBlockBuilder.cs
- EncryptedPackageFilter.cs
- ProfileProvider.cs
- RandomNumberGenerator.cs
- EncoderParameters.cs
- SchemaElementLookUpTable.cs
- XsltArgumentList.cs
- AxisAngleRotation3D.cs
- IntSecurity.cs
- HttpAsyncResult.cs
- AssemblyAttributesGoHere.cs
- View.cs
- LinqTreeNodeEvaluator.cs
- TabletCollection.cs
- HttpPostLocalhostServerProtocol.cs
- BinaryFormatterWriter.cs
- Bezier.cs
- BrowserCapabilitiesFactoryBase.cs
- BindingListCollectionView.cs
- LinqDataSourceUpdateEventArgs.cs
- Directory.cs
- ResolveCompletedEventArgs.cs
- PerformanceCounterPermissionEntryCollection.cs
- EntityKey.cs
- CollectionExtensions.cs
- OutOfMemoryException.cs
- HideDisabledControlAdapter.cs
- EndpointIdentityExtension.cs
- NamespaceCollection.cs
- UnauthorizedWebPart.cs
- DeploymentSection.cs
- BackgroundFormatInfo.cs
- TextEffect.cs
- WindowsScrollBarBits.cs
- TryCatchDesigner.xaml.cs
- GreaterThanOrEqual.cs
- DBParameter.cs
- DragDeltaEventArgs.cs
- Drawing.cs
- ProxyAssemblyNotLoadedException.cs
- ProjectionCamera.cs
- AudioDeviceOut.cs
- Attributes.cs
- GlyphRunDrawing.cs
- X509SecurityTokenParameters.cs
- LineUtil.cs
- SqlMethodCallConverter.cs
- SpellCheck.cs
- DataGridCommandEventArgs.cs
- SoapProtocolImporter.cs
- DataGridGeneralPage.cs
- DropShadowEffect.cs
- NameValueSectionHandler.cs
- TraceData.cs
- DocumentGridPage.cs
- DisplayNameAttribute.cs
- AddInBase.cs
- CredentialCache.cs
- CompilerScopeManager.cs
- LogicalTreeHelper.cs
- TextDecoration.cs
- TextEditorTyping.cs
- OdbcEnvironment.cs
- DataObjectEventArgs.cs
- ColumnTypeConverter.cs
- MetadataImporter.cs
- UpdateTracker.cs
- Message.cs
- PrimitiveXmlSerializers.cs
- GeneratedView.cs
- PerformanceCounterLib.cs
- ISCIIEncoding.cs
- DocumentViewerAutomationPeer.cs
- DataSourceCacheDurationConverter.cs
- DatatypeImplementation.cs
- AssemblyFilter.cs
- DependsOnAttribute.cs
- DBDataPermissionAttribute.cs
- HitTestWithGeometryDrawingContextWalker.cs
- BaseUriHelper.cs
- IdentityManager.cs
- WindowCollection.cs
- HandleRef.cs
- SqlConnectionString.cs
- TraceContext.cs
- HealthMonitoringSectionHelper.cs
- HelpKeywordAttribute.cs
- HttpHandlersSection.cs
- NetPeerTcpBindingElement.cs
- HandlerFactoryCache.cs