Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / KernelTypeValidation.cs / 1305600 / 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
- mediaeventargs.cs
- _SslStream.cs
- GcSettings.cs
- XPathNodeInfoAtom.cs
- SmtpReplyReaderFactory.cs
- DecimalAnimationUsingKeyFrames.cs
- DateBoldEvent.cs
- CategoryValueConverter.cs
- MatrixValueSerializer.cs
- DataBoundLiteralControl.cs
- SimpleWorkerRequest.cs
- TemplateControl.cs
- WindowsSecurityTokenAuthenticator.cs
- BufferModesCollection.cs
- WebBaseEventKeyComparer.cs
- SelectionList.cs
- Command.cs
- FieldCollectionEditor.cs
- CodeDirectoryCompiler.cs
- DesignTimeVisibleAttribute.cs
- NotifyParentPropertyAttribute.cs
- IImplicitResourceProvider.cs
- DataGridColumnReorderingEventArgs.cs
- SrgsToken.cs
- ClientBuildManagerCallback.cs
- ValidationHelper.cs
- Cell.cs
- WebPartEditorOkVerb.cs
- SynthesizerStateChangedEventArgs.cs
- ManagementPath.cs
- x509utils.cs
- SerializationInfoEnumerator.cs
- MailBnfHelper.cs
- OutputCacheSection.cs
- WindowInteractionStateTracker.cs
- DefaultParameterValueAttribute.cs
- SimpleMailWebEventProvider.cs
- BindingGroup.cs
- RepeatBehavior.cs
- ToolStripMenuItem.cs
- ComponentSerializationService.cs
- DataGridViewHitTestInfo.cs
- EndpointAddress10.cs
- PropertyCollection.cs
- BindingMemberInfo.cs
- TypeUnloadedException.cs
- PageAdapter.cs
- XmlText.cs
- DataGridViewButtonColumn.cs
- HtmlLink.cs
- Misc.cs
- LineBreak.cs
- ADConnectionHelper.cs
- ItemCheckEvent.cs
- DoWorkEventArgs.cs
- Exceptions.cs
- LogSwitch.cs
- PasswordTextContainer.cs
- GestureRecognitionResult.cs
- StylusPointProperty.cs
- SpecularMaterial.cs
- LayoutUtils.cs
- FlowDocumentScrollViewer.cs
- Transaction.cs
- MDIWindowDialog.cs
- Thickness.cs
- Int16Converter.cs
- UriGenerator.cs
- PropertyChangedEventManager.cs
- TransactionManagerProxy.cs
- OracleRowUpdatedEventArgs.cs
- Parameter.cs
- RestHandler.cs
- IItemProperties.cs
- WindowsListBox.cs
- Bits.cs
- Logging.cs
- selecteditemcollection.cs
- DataAccessor.cs
- FloatUtil.cs
- DbCommandTree.cs
- WrappedKeySecurityTokenParameters.cs
- EdmSchemaError.cs
- DataGridViewHitTestInfo.cs
- Schema.cs
- ImplicitInputBrush.cs
- Types.cs
- HtmlMeta.cs
- XmlSerializerFactory.cs
- ScrollItemProviderWrapper.cs
- Hashtable.cs
- DBSqlParserTableCollection.cs
- HttpConfigurationSystem.cs
- SingleSelectRootGridEntry.cs
- StrongTypingException.cs
- TypeTypeConverter.cs
- DataBoundControlHelper.cs
- ClientScriptManager.cs
- Line.cs
- TCPClient.cs