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
- Solver.cs
- HttpValueCollection.cs
- HierarchicalDataSourceDesigner.cs
- BitmapEffectInput.cs
- VerticalAlignConverter.cs
- GridErrorDlg.cs
- PrintDialog.cs
- SemanticTag.cs
- ClassHandlersStore.cs
- EventItfInfo.cs
- Model3DCollection.cs
- ContractInferenceHelper.cs
- EventRoute.cs
- ResourceReferenceExpressionConverter.cs
- BooleanAnimationBase.cs
- Selection.cs
- BasicSecurityProfileVersion.cs
- BrushValueSerializer.cs
- HandleInitializationContext.cs
- PageRouteHandler.cs
- DSASignatureFormatter.cs
- DataQuery.cs
- TextBox.cs
- FormsAuthenticationModule.cs
- WaveHeader.cs
- FontWeightConverter.cs
- AddValidationError.cs
- Visual.cs
- DataGridViewCellMouseEventArgs.cs
- PersonalizationProvider.cs
- UrlMappingsSection.cs
- MessageEnumerator.cs
- InstanceDataCollection.cs
- _ConnectOverlappedAsyncResult.cs
- HttpModuleCollection.cs
- GradientBrush.cs
- FileCodeGroup.cs
- HwndProxyElementProvider.cs
- DropDownButton.cs
- TypeConverterHelper.cs
- RecordBuilder.cs
- log.cs
- PeerNearMe.cs
- Accessors.cs
- XmlAttributeCollection.cs
- SoapFaultCodes.cs
- XmlSchemaInfo.cs
- ViewStateException.cs
- UnsignedPublishLicense.cs
- OracleEncoding.cs
- XmlNodeComparer.cs
- ControlCollection.cs
- OracleCommandSet.cs
- SHA256Cng.cs
- DateTimeConstantAttribute.cs
- Propagator.JoinPropagator.cs
- RelatedView.cs
- ConfigXmlText.cs
- CustomPopupPlacement.cs
- HScrollBar.cs
- DocumentAutomationPeer.cs
- SqlWebEventProvider.cs
- SqlStatistics.cs
- GlobalizationAssembly.cs
- PcmConverter.cs
- SerializableAttribute.cs
- PageAsyncTask.cs
- JsonServiceDocumentSerializer.cs
- ActivityInterfaces.cs
- PointAnimationUsingPath.cs
- DispatcherProcessingDisabled.cs
- IsolationInterop.cs
- columnmapkeybuilder.cs
- ValuePatternIdentifiers.cs
- RadioButtonBaseAdapter.cs
- InfoCardRequestException.cs
- NativeCompoundFileAPIs.cs
- PropertyInfoSet.cs
- NullableBoolConverter.cs
- MetadataArtifactLoader.cs
- AdornerLayer.cs
- DesignObjectWrapper.cs
- TransactionChannel.cs
- ObjectSecurity.cs
- BamlRecordWriter.cs
- ResXDataNode.cs
- Label.cs
- UserMapPath.cs
- IdentifierElement.cs
- ScriptingRoleServiceSection.cs
- ImageAnimator.cs
- TreeViewCancelEvent.cs
- EventRoute.cs
- SrgsRule.cs
- XmlSerializationReader.cs
- FormViewUpdatedEventArgs.cs
- XmlSchemaAttributeGroup.cs
- TableLayout.cs
- InvalidWMPVersionException.cs
- FixedTextBuilder.cs