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
- X509Extension.cs
- BindingOperations.cs
- ProviderConnectionPoint.cs
- EtwTrackingBehaviorElement.cs
- ResourcesChangeInfo.cs
- InputLanguageProfileNotifySink.cs
- SHA256.cs
- Table.cs
- XmlNodeList.cs
- IsolatedStorageException.cs
- Rectangle.cs
- OleDbConnectionFactory.cs
- CustomWebEventKey.cs
- AttachedPropertiesService.cs
- ManagementDateTime.cs
- StrongTypingException.cs
- LongAverageAggregationOperator.cs
- CodeDelegateCreateExpression.cs
- UriSection.cs
- MatrixTransform3D.cs
- SchemaObjectWriter.cs
- IconBitmapDecoder.cs
- PTUtility.cs
- TagPrefixCollection.cs
- PropertyPath.cs
- CallbackDebugElement.cs
- ToolStripButton.cs
- SqlNodeTypeOperators.cs
- WebPartConnectionsEventArgs.cs
- JavascriptCallbackMessageInspector.cs
- LostFocusEventManager.cs
- Italic.cs
- SupportsEventValidationAttribute.cs
- TextFormatter.cs
- StateWorkerRequest.cs
- AutomationElement.cs
- XmlMembersMapping.cs
- HijriCalendar.cs
- HttpApplication.cs
- UpdateManifestForBrowserApplication.cs
- Unit.cs
- InvalidAsynchronousStateException.cs
- SourceFilter.cs
- EntityConnectionStringBuilder.cs
- WarningException.cs
- XpsS0ValidatingLoader.cs
- WindowsAuthenticationEventArgs.cs
- ColorInterpolationModeValidation.cs
- CapabilitiesAssignment.cs
- ClientSettings.cs
- TableLayoutStyleCollection.cs
- ExpressionBuilderCollection.cs
- CurrentChangedEventManager.cs
- EmptyEnumerable.cs
- Inflater.cs
- Variable.cs
- CqlQuery.cs
- FloaterBaseParagraph.cs
- RequestDescription.cs
- CharacterBufferReference.cs
- RequestNavigateEventArgs.cs
- ColumnWidthChangingEvent.cs
- Simplifier.cs
- Int16Storage.cs
- NetTcpSection.cs
- EncoderReplacementFallback.cs
- unitconverter.cs
- PagerStyle.cs
- CodeCompileUnit.cs
- TTSEngineTypes.cs
- CqlLexerHelpers.cs
- LinqDataSourceHelper.cs
- HyperLinkStyle.cs
- SimpleHandlerBuildProvider.cs
- FormsAuthenticationCredentials.cs
- InvokeCompletedEventArgs.cs
- EditableLabelControl.cs
- SQLConvert.cs
- WebPartDisplayMode.cs
- XmlNullResolver.cs
- CompilerInfo.cs
- CheckBoxStandardAdapter.cs
- SetterBase.cs
- TransformerConfigurationWizardBase.cs
- InternalSafeNativeMethods.cs
- RemotingServices.cs
- AbandonedMutexException.cs
- ByteKeyFrameCollection.cs
- EventProviderBase.cs
- PolicyValidationException.cs
- CodeIdentifiers.cs
- AutomationPropertyInfo.cs
- BaseEntityWrapper.cs
- RegexStringValidator.cs
- DataGridViewCheckBoxCell.cs
- VoiceSynthesis.cs
- ResourceDescriptionAttribute.cs
- SafeHandles.cs
- DecimalAverageAggregationOperator.cs
- ExplicitDiscriminatorMap.cs