Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ConnectionAcceptor.cs
- FunctionQuery.cs
- DataGridLinkButton.cs
- DetailsView.cs
- OptionalMessageQuery.cs
- RightNameExpirationInfoPair.cs
- BaseDataBoundControl.cs
- BigInt.cs
- TableLayoutStyleCollection.cs
- TabControlAutomationPeer.cs
- WebDescriptionAttribute.cs
- SudsWriter.cs
- ObjectHandle.cs
- TimeSpanConverter.cs
- BrowserDefinitionCollection.cs
- DataGridViewRowCollection.cs
- RunInstallerAttribute.cs
- AffineTransform3D.cs
- UriParserTemplates.cs
- sqlnorm.cs
- xmlglyphRunInfo.cs
- WrappedReader.cs
- LocalValueEnumerator.cs
- Stacktrace.cs
- SchemaMapping.cs
- BuildProvider.cs
- MonitorWrapper.cs
- BorderSidesEditor.cs
- DataGridCellEditEndingEventArgs.cs
- BufferedWebEventProvider.cs
- ItemList.cs
- PrintEvent.cs
- DelegateSerializationHolder.cs
- SqlClientWrapperSmiStream.cs
- ProjectionPath.cs
- printdlgexmarshaler.cs
- CloudCollection.cs
- ResourcesGenerator.cs
- MasterPageCodeDomTreeGenerator.cs
- LabelLiteral.cs
- DynamicDataRouteHandler.cs
- UseLicense.cs
- CodeStatement.cs
- ItemsChangedEventArgs.cs
- loginstatus.cs
- PlaceHolder.cs
- FindSimilarActivitiesVerb.cs
- MsmqTransportSecurityElement.cs
- StrokeNodeData.cs
- ResourcesBuildProvider.cs
- ControlPager.cs
- ContextInformation.cs
- DesignBindingPicker.cs
- XmlSchemaComplexType.cs
- RuntimeHandles.cs
- GroupBox.cs
- _Connection.cs
- SafeArrayRankMismatchException.cs
- SaveFileDialogDesigner.cs
- ExcCanonicalXml.cs
- DataGridViewDataErrorEventArgs.cs
- XmlExtensionFunction.cs
- NavigationProgressEventArgs.cs
- DefaultHttpHandler.cs
- LineInfo.cs
- RawStylusInputCustomData.cs
- XmlSchemaException.cs
- EpmSyndicationContentSerializer.cs
- UserInitiatedNavigationPermission.cs
- CollectionView.cs
- IDictionary.cs
- FacetValues.cs
- NavigationFailedEventArgs.cs
- WinEventHandler.cs
- TempFiles.cs
- GridView.cs
- MaskDescriptors.cs
- HtmlSelect.cs
- MouseBinding.cs
- SqlConnectionPoolProviderInfo.cs
- FormatterConverter.cs
- PreloadedPackages.cs
- ZipIOCentralDirectoryBlock.cs
- TagPrefixAttribute.cs
- ThousandthOfEmRealDoubles.cs
- SerialPort.cs
- _Events.cs
- JournalEntryListConverter.cs
- TypeDependencyAttribute.cs
- UpDownEvent.cs
- RegionData.cs
- ProtocolsSection.cs
- XmlQueryTypeFactory.cs
- TableParaClient.cs
- CodeExpressionStatement.cs
- SqlException.cs
- LineGeometry.cs
- SmiTypedGetterSetter.cs
- IDispatchConstantAttribute.cs
- ClientTarget.cs