Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / Tools / System.Activities.Presentation / System / Activities / Presentation / Base / Core / PropertyEditing / EnumValidator.cs / 1305376 / EnumValidator.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.Activities.Presentation.PropertyEditing { using System; //// Class containing a single IsValid() method that ensures // that the given public enum is of expected value. Use this // method to validate the enum value of all publicly exposed setters. // internal static partial class EnumValidator { public static bool IsValid(PropertyValueExceptionSource value) { return value == PropertyValueExceptionSource.Get || value == PropertyValueExceptionSource.Set; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WizardStepBase.cs
- StatementContext.cs
- DocumentViewerAutomationPeer.cs
- MessageSmuggler.cs
- ObfuscateAssemblyAttribute.cs
- ServiceOperationWrapper.cs
- DynamicResourceExtensionConverter.cs
- GlyphInfoList.cs
- IndexedString.cs
- OrderByQueryOptionExpression.cs
- ProfileSettings.cs
- EncryptedKeyIdentifierClause.cs
- ProtectedConfiguration.cs
- Compress.cs
- EntityDataSourceUtil.cs
- XPathBinder.cs
- QueryConverter.cs
- BStrWrapper.cs
- DrawingVisual.cs
- ExtentKey.cs
- ServiceControllerDesigner.cs
- GZipStream.cs
- XmlDataProvider.cs
- StorageRoot.cs
- UnsafeNativeMethods.cs
- serverconfig.cs
- FactoryRecord.cs
- EqualityComparer.cs
- BaseTemplateParser.cs
- SAPIEngineTypes.cs
- AnnotationAuthorChangedEventArgs.cs
- PageStatePersister.cs
- Repeater.cs
- XsdDuration.cs
- XmlReaderSettings.cs
- GridProviderWrapper.cs
- StateFinalizationDesigner.cs
- Boolean.cs
- IdentityHolder.cs
- Content.cs
- FamilyMapCollection.cs
- GridSplitterAutomationPeer.cs
- MdImport.cs
- BrowserCapabilitiesCompiler.cs
- TableLayoutPanelCellPosition.cs
- CharacterShapingProperties.cs
- ChangeConflicts.cs
- SchemaTableColumn.cs
- DictionaryMarkupSerializer.cs
- ContentValidator.cs
- SqlErrorCollection.cs
- GC.cs
- ObjectNotFoundException.cs
- WpfXamlLoader.cs
- OracleColumn.cs
- AssertHelper.cs
- cookie.cs
- DynamicMethod.cs
- BindingsCollection.cs
- RestClientProxyHandler.cs
- ProcessActivityTreeOptions.cs
- LiteralLink.cs
- SmtpFailedRecipientsException.cs
- login.cs
- SettingsProviderCollection.cs
- RotateTransform.cs
- SemaphoreFullException.cs
- BooleanConverter.cs
- DPCustomTypeDescriptor.cs
- ActivityDesignerLayoutSerializers.cs
- Socket.cs
- KnownBoxes.cs
- CallContext.cs
- StaticResourceExtension.cs
- PropertyGridCommands.cs
- MimeMapping.cs
- HMACSHA256.cs
- SqlDataSourceView.cs
- AnnouncementDispatcherAsyncResult.cs
- Crc32.cs
- SchemaHelper.cs
- SelectorAutomationPeer.cs
- GridView.cs
- CustomAttributeFormatException.cs
- ApplicationProxyInternal.cs
- XPathScanner.cs
- PinnedBufferMemoryStream.cs
- OraclePermission.cs
- DispatcherSynchronizationContext.cs
- LeftCellWrapper.cs
- EntityCommandExecutionException.cs
- OrCondition.cs
- WebPartTransformerAttribute.cs
- XmlExpressionDumper.cs
- NativeMethods.cs
- ContainerTracking.cs
- UnhandledExceptionEventArgs.cs
- Environment.cs
- SolidColorBrush.cs
- NameTable.cs