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
- TextEndOfParagraph.cs
- FramingDecoders.cs
- ControlIdConverter.cs
- ShaderEffect.cs
- TypeConverterValueSerializer.cs
- ScrollContentPresenter.cs
- ObjectNotFoundException.cs
- StatusBarPanel.cs
- FixedSOMGroup.cs
- AnonymousIdentificationSection.cs
- WindowsSolidBrush.cs
- SizeIndependentAnimationStorage.cs
- AutoCompleteStringCollection.cs
- KeyInstance.cs
- CollaborationHelperFunctions.cs
- KerberosSecurityTokenAuthenticator.cs
- XmlArrayItemAttributes.cs
- EncryptedPackageFilter.cs
- ValueQuery.cs
- Variable.cs
- PhysicalAddress.cs
- ListenerConnectionModeReader.cs
- _TLSstream.cs
- PropertyChangedEventManager.cs
- EventLogQuery.cs
- EntityDataSourceDataSelection.cs
- ZeroOpNode.cs
- HMAC.cs
- QueryConverter.cs
- BitArray.cs
- UserControlBuildProvider.cs
- StringPropertyBuilder.cs
- PartialCachingAttribute.cs
- RtfToken.cs
- FileDialog.cs
- RtType.cs
- ChangesetResponse.cs
- AsyncResult.cs
- XmlComplianceUtil.cs
- SettingsAttributeDictionary.cs
- InkCollectionBehavior.cs
- ICspAsymmetricAlgorithm.cs
- StrokeCollection.cs
- DataGridTable.cs
- StylusDownEventArgs.cs
- WebDisplayNameAttribute.cs
- DesignTimeSiteMapProvider.cs
- InheritanceContextHelper.cs
- FileDataSourceCache.cs
- StrokeCollection2.cs
- SettingsProperty.cs
- StringValidator.cs
- SetIterators.cs
- StrongNameKeyPair.cs
- OuterGlowBitmapEffect.cs
- WithStatement.cs
- ToolStripCodeDomSerializer.cs
- OrderedEnumerableRowCollection.cs
- EmptyEnumerable.cs
- Viewport3DVisual.cs
- FieldNameLookup.cs
- TopClause.cs
- XmlTypeAttribute.cs
- ItemsChangedEventArgs.cs
- JsonClassDataContract.cs
- XmlQualifiedNameTest.cs
- EntityConnectionStringBuilder.cs
- SpeechAudioFormatInfo.cs
- WindowsBrush.cs
- FileChangesMonitor.cs
- OletxEnlistment.cs
- XmlNodeChangedEventArgs.cs
- metadatamappinghashervisitor.cs
- FormClosedEvent.cs
- LOSFormatter.cs
- GridProviderWrapper.cs
- IsolatedStorage.cs
- ZipIOCentralDirectoryBlock.cs
- XmlSchemaComplexContentExtension.cs
- WebBrowserHelper.cs
- FontNamesConverter.cs
- BStrWrapper.cs
- MetafileHeader.cs
- ControlCollection.cs
- MaskPropertyEditor.cs
- SmiEventStream.cs
- XmlSchemaAll.cs
- TimeoutValidationAttribute.cs
- UpdatePanelTrigger.cs
- FilterEventArgs.cs
- DataTableExtensions.cs
- BoundField.cs
- DllNotFoundException.cs
- Label.cs
- StoreUtilities.cs
- IIS7ConfigurationLoader.cs
- CodeTryCatchFinallyStatement.cs
- DependencyPropertyHelper.cs
- DataGridColumnCollection.cs
- ScriptServiceAttribute.cs