Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / EdgeModeValidation.cs / 1305600 / EdgeModeValidation.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. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #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 { 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 IsEdgeModeValid(object valueObject) { EdgeMode value = (EdgeMode) valueObject; return (value == EdgeMode.Unspecified) || (value == EdgeMode.Aliased); } } } // 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. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #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 { 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 IsEdgeModeValid(object valueObject) { EdgeMode value = (EdgeMode) valueObject; return (value == EdgeMode.Unspecified) || (value == EdgeMode.Aliased); } } } // 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
- Soap12ServerProtocol.cs
- DataReceivedEventArgs.cs
- NameSpaceExtractor.cs
- RegexNode.cs
- ChannelParameterCollection.cs
- TdsParserSafeHandles.cs
- DefaultSettingsSection.cs
- Int32Rect.cs
- StringToken.cs
- GridLengthConverter.cs
- filewebresponse.cs
- VariableQuery.cs
- DependencyPropertyHelper.cs
- ReferenceEqualityComparer.cs
- CmsUtils.cs
- CodeSnippetExpression.cs
- SoapFault.cs
- TableRowGroup.cs
- DoubleUtil.cs
- WorkflowTerminatedException.cs
- DataGridViewTopRowAccessibleObject.cs
- WorkflowTraceTransfer.cs
- CellCreator.cs
- FormsAuthenticationConfiguration.cs
- CodeTypeParameter.cs
- GridViewColumnCollectionChangedEventArgs.cs
- PropertyNames.cs
- PageCatalogPart.cs
- GroupBox.cs
- BinaryParser.cs
- SoapFault.cs
- connectionpool.cs
- EventHandlingScope.cs
- AssociationTypeEmitter.cs
- SupportingTokenAuthenticatorSpecification.cs
- VideoDrawing.cs
- ImageMetadata.cs
- OdbcDataReader.cs
- WebPartConnection.cs
- DataServiceCollectionOfT.cs
- ConvertEvent.cs
- XamlHostingSection.cs
- Drawing.cs
- Switch.cs
- TypeToArgumentTypeConverter.cs
- XmlTextAttribute.cs
- ListManagerBindingsCollection.cs
- CollectionViewSource.cs
- MetafileHeader.cs
- FocusWithinProperty.cs
- Drawing.cs
- SamlConstants.cs
- ArraySet.cs
- RepeatEnumerable.cs
- DataGridLength.cs
- WaitHandle.cs
- WindowsListViewItem.cs
- SplineKeyFrames.cs
- DataAdapter.cs
- SqlProvider.cs
- Dump.cs
- ReflectionUtil.cs
- TreeNodeCollection.cs
- CreateUserWizardStep.cs
- SignatureResourceHelper.cs
- TextParagraphCache.cs
- DataSetMappper.cs
- ExpressionParser.cs
- DefaultBindingPropertyAttribute.cs
- ProjectedSlot.cs
- CustomCategoryAttribute.cs
- HttpPostClientProtocol.cs
- CalendarDateChangedEventArgs.cs
- COSERVERINFO.cs
- GroupStyle.cs
- SkewTransform.cs
- metadatamappinghashervisitor.cs
- SystemThemeKey.cs
- Part.cs
- HttpResponseWrapper.cs
- StrongNameKeyPair.cs
- CustomAttributeBuilder.cs
- MenuCommand.cs
- SurrogateChar.cs
- CachedCompositeFamily.cs
- MarshalByRefObject.cs
- SqlCacheDependencySection.cs
- ConfigurationManagerInternalFactory.cs
- StorageAssociationSetMapping.cs
- SmtpFailedRecipientsException.cs
- SystemIPInterfaceStatistics.cs
- SamlNameIdentifierClaimResource.cs
- ClaimComparer.cs
- PathParser.cs
- ImageButton.cs
- XmlRootAttribute.cs
- EntityAdapter.cs
- Point3DAnimationBase.cs
- ControlAdapter.cs
- WindowsListView.cs