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
- DesignerSerializationOptionsAttribute.cs
- DynamicPropertyHolder.cs
- SafeHandle.cs
- FormsAuthenticationEventArgs.cs
- DesignerDataView.cs
- ObjectConverter.cs
- TypeInfo.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ImportContext.cs
- WebPartVerb.cs
- CompilerTypeWithParams.cs
- MenuItemBindingCollection.cs
- DataListDesigner.cs
- WriterOutput.cs
- MenuItemBinding.cs
- InputLanguageSource.cs
- CompilationUtil.cs
- HTTPNotFoundHandler.cs
- TableRowGroup.cs
- CheckBoxList.cs
- ServiceReference.cs
- CategoryNameCollection.cs
- UniqueSet.cs
- MatrixValueSerializer.cs
- UriParserTemplates.cs
- Model3D.cs
- PassportAuthentication.cs
- CommandHelper.cs
- InstanceCreationEditor.cs
- fixedPageContentExtractor.cs
- XmlSchemaComplexContentRestriction.cs
- _Connection.cs
- BoolExpr.cs
- PerformanceCounterPermission.cs
- XmlSignificantWhitespace.cs
- FontFamilyIdentifier.cs
- HttpDateParse.cs
- ValidationErrorCollection.cs
- HyperLink.cs
- SemaphoreSecurity.cs
- CompilerResults.cs
- BasicExpandProvider.cs
- DecimalStorage.cs
- XmlSchemaRedefine.cs
- DataRelation.cs
- regiisutil.cs
- ConnectionPoolManager.cs
- KeyValuePair.cs
- BasicKeyConstraint.cs
- SrgsSemanticInterpretationTag.cs
- DigitalSignature.cs
- CodeDirectiveCollection.cs
- FilteredDataSetHelper.cs
- Win32MouseDevice.cs
- ImageField.cs
- PropertyMap.cs
- CodeNamespaceImport.cs
- DateTimeValueSerializerContext.cs
- TableParagraph.cs
- RegexBoyerMoore.cs
- FileInfo.cs
- Recipient.cs
- ChtmlTextWriter.cs
- ResXDataNode.cs
- MarkerProperties.cs
- ByteStreamGeometryContext.cs
- HtmlTableRowCollection.cs
- TableCell.cs
- SocketPermission.cs
- XhtmlBasicCalendarAdapter.cs
- BuildProvider.cs
- StrongBox.cs
- GroupItemAutomationPeer.cs
- OdbcErrorCollection.cs
- DataShape.cs
- FieldToken.cs
- SoapElementAttribute.cs
- Console.cs
- ToggleButtonAutomationPeer.cs
- MouseActionConverter.cs
- ResourcesChangeInfo.cs
- Rect3D.cs
- ExpressionEditorSheet.cs
- WindowsIPAddress.cs
- XPathNavigatorReader.cs
- GifBitmapDecoder.cs
- OledbConnectionStringbuilder.cs
- BinaryParser.cs
- XmlWrappingWriter.cs
- PerformanceCounterManager.cs
- Win32Exception.cs
- ResetableIterator.cs
- XmlDataSource.cs
- CellTreeNodeVisitors.cs
- GeometryConverter.cs
- ApplicationDirectoryMembershipCondition.cs
- KeyValueSerializer.cs
- MimeWriter.cs
- SettingsBase.cs
- HitTestResult.cs