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
- DynamicObjectAccessor.cs
- XmlDigitalSignatureProcessor.cs
- CannotUnloadAppDomainException.cs
- AsyncCompletedEventArgs.cs
- HttpCacheVary.cs
- SqlClientMetaDataCollectionNames.cs
- FusionWrap.cs
- GenerateHelper.cs
- ProxyAssemblyNotLoadedException.cs
- Comparer.cs
- BamlResourceDeserializer.cs
- OdbcTransaction.cs
- DecoderExceptionFallback.cs
- AvTraceDetails.cs
- ArrayWithOffset.cs
- SQLDecimal.cs
- OLEDB_Util.cs
- namescope.cs
- FilterQueryOptionExpression.cs
- SkipStoryboardToFill.cs
- ICspAsymmetricAlgorithm.cs
- WebPartTransformerCollection.cs
- AssociationEndMember.cs
- Material.cs
- HtmlLink.cs
- AppLevelCompilationSectionCache.cs
- CellParaClient.cs
- DataControlImageButton.cs
- ProcessModelSection.cs
- QilInvokeEarlyBound.cs
- TypeLibConverter.cs
- Transform3DGroup.cs
- DynamicQueryableWrapper.cs
- Visitor.cs
- SourceElementsCollection.cs
- TextControl.cs
- DockPanel.cs
- ArraySortHelper.cs
- Cursor.cs
- PropertyGridView.cs
- TrackingLocationCollection.cs
- ToolStripSettings.cs
- ProxyWebPartConnectionCollection.cs
- QueryOptionExpression.cs
- OdbcFactory.cs
- XmlILOptimizerVisitor.cs
- MeshGeometry3D.cs
- AudioStateChangedEventArgs.cs
- RangeBase.cs
- SqlDataReaderSmi.cs
- LogWriteRestartAreaAsyncResult.cs
- SecurityManager.cs
- SpeakProgressEventArgs.cs
- XpsS0ValidatingLoader.cs
- Grid.cs
- DependencyObjectPropertyDescriptor.cs
- DataServiceStreamResponse.cs
- Debugger.cs
- RowBinding.cs
- WebBaseEventKeyComparer.cs
- MobileResource.cs
- ListSurrogate.cs
- PlanCompiler.cs
- SeekStoryboard.cs
- StateBag.cs
- ResXDataNode.cs
- PeerNameRegistration.cs
- PerformanceCounterPermissionEntryCollection.cs
- x509utils.cs
- SafeLocalMemHandle.cs
- DesignRelationCollection.cs
- ProxyAttribute.cs
- WorkflowServiceAttributes.cs
- FtpWebRequest.cs
- BuildProviderAppliesToAttribute.cs
- InfiniteTimeSpanConverter.cs
- ScrollChrome.cs
- MdiWindowListStrip.cs
- UInt32Converter.cs
- QilUnary.cs
- TypeUtil.cs
- ApplicationGesture.cs
- Compiler.cs
- ExtensibleClassFactory.cs
- GridToolTip.cs
- SrgsToken.cs
- IteratorDescriptor.cs
- RowToParametersTransformer.cs
- DecimalAnimation.cs
- BuilderInfo.cs
- ExtensionDataObject.cs
- TableCell.cs
- XmlChildNodes.cs
- EntitySetBase.cs
- PolicyVersionConverter.cs
- SyndicationItemFormatter.cs
- FontFamilyIdentifier.cs
- SettingsSection.cs
- HttpInputStream.cs
- MouseWheelEventArgs.cs