Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ // 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
- ServiceInfo.cs
- DataGridViewCellEventArgs.cs
- HttpConfigurationContext.cs
- CodeGenerator.cs
- TaskSchedulerException.cs
- DynamicILGenerator.cs
- BulletDecorator.cs
- MatrixKeyFrameCollection.cs
- ReachFixedPageSerializer.cs
- TypeDependencyAttribute.cs
- KeyValuePairs.cs
- FixedSOMElement.cs
- SqlUtil.cs
- XmlnsCache.cs
- ListViewInsertEventArgs.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- ApplyImportsAction.cs
- ObjectPersistData.cs
- ObjectSecurity.cs
- Pen.cs
- HeaderedContentControl.cs
- AnyAllSearchOperator.cs
- Line.cs
- Number.cs
- RepeaterItem.cs
- ToolStrip.cs
- CopyNodeSetAction.cs
- input.cs
- CodeVariableDeclarationStatement.cs
- TemplatePropertyEntry.cs
- ClientOptions.cs
- ImageKeyConverter.cs
- Int16.cs
- Matrix3DStack.cs
- Vector3DConverter.cs
- ChangeBlockUndoRecord.cs
- DataPagerFieldCommandEventArgs.cs
- ModelItem.cs
- LinqDataSourceSelectEventArgs.cs
- NetworkAddressChange.cs
- PolyLineSegment.cs
- RbTree.cs
- ReliabilityContractAttribute.cs
- SystemIPInterfaceProperties.cs
- FixedSOMTableRow.cs
- XmlAggregates.cs
- SafeReadContext.cs
- ControlCachePolicy.cs
- DbExpressionVisitor_TResultType.cs
- ItemType.cs
- DocumentPageHost.cs
- ContainerSelectorGlyph.cs
- PropertyPushdownHelper.cs
- WebBrowserHelper.cs
- clipboard.cs
- StringWriter.cs
- DragEventArgs.cs
- IntegerFacetDescriptionElement.cs
- TagPrefixInfo.cs
- TemplateColumn.cs
- ReadingWritingEntityEventArgs.cs
- FormsIdentity.cs
- MemberAssignmentAnalysis.cs
- StaticExtensionConverter.cs
- ContentControl.cs
- _NetworkingPerfCounters.cs
- IndexedString.cs
- ImageListImage.cs
- KeySplineConverter.cs
- PaginationProgressEventArgs.cs
- BamlStream.cs
- StringDictionary.cs
- DataServiceExpressionVisitor.cs
- SchemaElementDecl.cs
- AvTrace.cs
- StylusPointPropertyInfoDefaults.cs
- EFColumnProvider.cs
- EventKeyword.cs
- MsmqHostedTransportManager.cs
- MonitorWrapper.cs
- WindowsNonControl.cs
- DataGridViewRowPrePaintEventArgs.cs
- DataDesignUtil.cs
- DataGridViewCellConverter.cs
- IndependentAnimationStorage.cs
- Int32KeyFrameCollection.cs
- HttpDictionary.cs
- SiteMapPath.cs
- CodeThrowExceptionStatement.cs
- XsdCachingReader.cs
- ScriptResourceHandler.cs
- SystemNetHelpers.cs
- MappingSource.cs
- HelpInfo.cs
- VirtualDirectoryMappingCollection.cs
- DynamicResourceExtension.cs
- XmlTypeMapping.cs
- PairComparer.cs
- EventSetter.cs
- WorkflowServiceAttributesTypeConverter.cs