Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- TrackingStringDictionary.cs
- wgx_commands.cs
- BindingNavigator.cs
- HuffModule.cs
- ProgressBarHighlightConverter.cs
- FontStyle.cs
- MDIClient.cs
- EncoderFallback.cs
- OdbcInfoMessageEvent.cs
- HttpException.cs
- ExtensionQuery.cs
- Compress.cs
- TypeResolver.cs
- WebPartManagerInternals.cs
- EpmHelper.cs
- ActivityFunc.cs
- CodeSpit.cs
- XmlSchemaComplexContent.cs
- LoadedOrUnloadedOperation.cs
- RuntimeEnvironment.cs
- ConnectionStringEditor.cs
- EdmRelationshipRoleAttribute.cs
- TypedTableBase.cs
- XmlSecureResolver.cs
- DbXmlEnabledProviderManifest.cs
- TracingConnectionListener.cs
- BamlMapTable.cs
- EventManager.cs
- SafeLocalAllocation.cs
- HtmlControlPersistable.cs
- DataGridViewLayoutData.cs
- SpotLight.cs
- SessionParameter.cs
- TypeLibConverter.cs
- MtomMessageEncoder.cs
- OperationContractAttribute.cs
- SchemaAttDef.cs
- LogRecordSequence.cs
- ObjectContext.cs
- HitTestParameters3D.cs
- ColorAnimationUsingKeyFrames.cs
- ColorAnimation.cs
- ToolStripSystemRenderer.cs
- ProtocolReflector.cs
- WriteableBitmap.cs
- DBAsyncResult.cs
- Selector.cs
- DBCommand.cs
- PaintEvent.cs
- SizeConverter.cs
- FontCollection.cs
- WindowsFormsSectionHandler.cs
- ReaderContextStackData.cs
- UnmanagedMemoryStreamWrapper.cs
- cookie.cs
- MachineKeySection.cs
- MenuAutomationPeer.cs
- SqlCacheDependencyDatabaseCollection.cs
- AsnEncodedData.cs
- ProgressPage.cs
- ToolStripManager.cs
- CodeRemoveEventStatement.cs
- UdpContractFilterBehavior.cs
- UnsafeNativeMethodsMilCoreApi.cs
- DataGridRowsPresenter.cs
- ReservationCollection.cs
- StorageEndPropertyMapping.cs
- CssClassPropertyAttribute.cs
- ExpressionPrefixAttribute.cs
- EmptyImpersonationContext.cs
- AvTrace.cs
- AutoCompleteStringCollection.cs
- MostlySingletonList.cs
- RenderingEventArgs.cs
- OdbcError.cs
- UserControl.cs
- OleTxTransaction.cs
- SizeF.cs
- webproxy.cs
- DescendentsWalker.cs
- PieceDirectory.cs
- FormatVersion.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- HiddenFieldPageStatePersister.cs
- UIElement3D.cs
- DetailsViewInsertedEventArgs.cs
- ClientTargetCollection.cs
- Currency.cs
- DataGridViewCellStateChangedEventArgs.cs
- CharEnumerator.cs
- BezierSegment.cs
- CookieParameter.cs
- DeviceSpecificChoiceCollection.cs
- DataGridParentRows.cs
- TargetException.cs
- DataServiceRequestOfT.cs
- IntegerValidatorAttribute.cs
- Monitor.cs
- TemplatePartAttribute.cs
- AttributeProviderAttribute.cs