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
- FormsAuthenticationModule.cs
- ListBox.cs
- DerivedKeyCachingSecurityTokenSerializer.cs
- C14NUtil.cs
- DbConnectionPoolIdentity.cs
- RegexCode.cs
- TablePattern.cs
- NumericUpDown.cs
- ToolStripContainerDesigner.cs
- CollectionType.cs
- ModelItem.cs
- MbpInfo.cs
- SqlInfoMessageEvent.cs
- FixedSOMLineCollection.cs
- XmlReflectionMember.cs
- GeometryModel3D.cs
- XhtmlConformanceSection.cs
- SoapFormatExtensions.cs
- DrawingContextWalker.cs
- HandlerBase.cs
- SessionPageStateSection.cs
- ResourceIDHelper.cs
- KoreanLunisolarCalendar.cs
- AssemblyNameProxy.cs
- CharConverter.cs
- ApplicationGesture.cs
- TimeoutConverter.cs
- GeneratedCodeAttribute.cs
- ConnectionManagementElement.cs
- LinearQuaternionKeyFrame.cs
- KeyedHashAlgorithm.cs
- AspNetHostingPermission.cs
- ElementMarkupObject.cs
- ResetableIterator.cs
- EntityProviderFactory.cs
- ResourceManagerWrapper.cs
- TextReader.cs
- SmtpAuthenticationManager.cs
- InvokeProviderWrapper.cs
- PageVisual.cs
- FactoryRecord.cs
- SynchronizedInputProviderWrapper.cs
- TracingConnectionInitiator.cs
- KeyedCollection.cs
- DesignerMetadata.cs
- XhtmlCssHandler.cs
- BitmapSource.cs
- PasswordTextContainer.cs
- DbDataRecord.cs
- ClockGroup.cs
- ResourceManager.cs
- AuthorizationRule.cs
- TableLayoutPanel.cs
- WebPartDisplayMode.cs
- Label.cs
- CellRelation.cs
- CodeArrayCreateExpression.cs
- EffectiveValueEntry.cs
- SqlDataSource.cs
- ListViewInsertionMark.cs
- XmlWrappingReader.cs
- cache.cs
- AddressHeaderCollection.cs
- StateWorkerRequest.cs
- DataGridCommandEventArgs.cs
- SQLBoolean.cs
- SkewTransform.cs
- SqlDependency.cs
- DesignTimeVisibleAttribute.cs
- DynamicDataManager.cs
- CompModSwitches.cs
- XPathAxisIterator.cs
- ProcessStartInfo.cs
- AuthStoreRoleProvider.cs
- NativeMethods.cs
- CryptoApi.cs
- TextBoxLine.cs
- COM2ExtendedBrowsingHandler.cs
- FamilyCollection.cs
- TransformConverter.cs
- HideDisabledControlAdapter.cs
- ApplicationSecurityManager.cs
- FormsAuthenticationConfiguration.cs
- KeyMatchBuilder.cs
- TypedDataSourceCodeGenerator.cs
- TrustSection.cs
- CharAnimationBase.cs
- EventPrivateKey.cs
- PatternMatcher.cs
- JsonReader.cs
- FlowchartDesigner.Helpers.cs
- XmlAttributeProperties.cs
- ListBox.cs
- EntityContainerAssociationSetEnd.cs
- XmlSchemaAnyAttribute.cs
- BufferedGraphicsManager.cs
- Calendar.cs
- PrintPreviewGraphics.cs
- LabelEditEvent.cs
- ListBase.cs