Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- RegionIterator.cs
- ZipPackagePart.cs
- TransformedBitmap.cs
- NativeMethods.cs
- StateWorkerRequest.cs
- ManifestResourceInfo.cs
- ListItemConverter.cs
- SqlClientMetaDataCollectionNames.cs
- PropertyValueChangedEvent.cs
- PeekCompletedEventArgs.cs
- TreeChangeInfo.cs
- PasswordPropertyTextAttribute.cs
- AuthenticationModuleElement.cs
- TextParaLineResult.cs
- ToolStripContentPanel.cs
- HMACSHA256.cs
- SendingRequestEventArgs.cs
- PreservationFileReader.cs
- TraceFilter.cs
- ValueSerializer.cs
- AxHost.cs
- HandleCollector.cs
- _SecureChannel.cs
- DataControlFieldCell.cs
- ColorMatrix.cs
- MulticastDelegate.cs
- TemplateNameScope.cs
- basenumberconverter.cs
- TransactionScope.cs
- EntityCommandCompilationException.cs
- ToolStripDropDownClosedEventArgs.cs
- RequestCacheManager.cs
- AnnotationStore.cs
- XPathDescendantIterator.cs
- ViewStateModeByIdAttribute.cs
- TypeToTreeConverter.cs
- MethodCallConverter.cs
- FormsAuthentication.cs
- HtmlMeta.cs
- SpotLight.cs
- recordstatescratchpad.cs
- ExtensionSimplifierMarkupObject.cs
- MgmtConfigurationRecord.cs
- DynamicPropertyReader.cs
- Vars.cs
- LongTypeConverter.cs
- ToolBarTray.cs
- Variable.cs
- SqlWorkflowInstanceStore.cs
- TextParagraphCache.cs
- SqlEnums.cs
- HtmlInputButton.cs
- CaseInsensitiveHashCodeProvider.cs
- DataGridViewIntLinkedList.cs
- CodeGeneratorAttribute.cs
- TextServicesProperty.cs
- BaseParaClient.cs
- XmlCollation.cs
- DesigntimeLicenseContext.cs
- EnterpriseServicesHelper.cs
- TextElementEnumerator.cs
- FamilyMap.cs
- RestrictedTransactionalPackage.cs
- ContentValidator.cs
- RemoteWebConfigurationHostStream.cs
- SQLByte.cs
- PageCatalogPartDesigner.cs
- CustomErrorsSection.cs
- HtmlInputText.cs
- SqlWriter.cs
- ImageCreator.cs
- EdgeModeValidation.cs
- Globals.cs
- AnnotationResourceCollection.cs
- TemplateControlParser.cs
- Publisher.cs
- X509SecurityTokenParameters.cs
- SchemaComplexType.cs
- DateTimeConverter.cs
- IsolatedStorageException.cs
- InputDevice.cs
- TraceHandlerErrorFormatter.cs
- SafeWaitHandle.cs
- ConditionCollection.cs
- ControllableStoryboardAction.cs
- CustomError.cs
- IntPtr.cs
- FormsAuthenticationUser.cs
- BinaryFormatter.cs
- TextSchema.cs
- PageRanges.cs
- LayoutExceptionEventArgs.cs
- VisualStyleInformation.cs
- NonSerializedAttribute.cs
- BitmapCacheBrush.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- SequenceDesigner.cs
- DesignerSerializationVisibilityAttribute.cs
- EntryPointNotFoundException.cs
- HandlerFactoryCache.cs