Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.Activities / System / Activities / ArgumentDirectionHelper.cs / 1305376 / ArgumentDirectionHelper.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.Activities { using System; using System.ComponentModel; static class ArgumentDirectionHelper { internal static bool IsDefined(ArgumentDirection direction) { return (direction == ArgumentDirection.In || direction == ArgumentDirection.Out || direction == ArgumentDirection.InOut); } public static void Validate(ArgumentDirection direction, string argumentName) { if (!IsDefined(direction)) { throw FxTrace.Exception.AsError( new InvalidEnumArgumentException(argumentName, (int)direction, typeof(ArgumentDirection))); } } public static bool IsIn(Argument argument) { return ArgumentDirectionHelper.IsIn(argument.Direction); } public static bool IsIn(ArgumentDirection direction) { return (direction == ArgumentDirection.In) || (direction == ArgumentDirection.InOut); } public static bool IsOut(Argument argument) { return ArgumentDirectionHelper.IsOut(argument.Direction); } public static bool IsOut(ArgumentDirection direction) { return (direction == ArgumentDirection.Out) || (direction == ArgumentDirection.InOut); } } } // 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
- SmtpNtlmAuthenticationModule.cs
- CompilerScopeManager.cs
- SqlDataSourceEnumerator.cs
- ChannelToken.cs
- Version.cs
- ActivityCodeDomSerializationManager.cs
- ShapingEngine.cs
- RegularExpressionValidator.cs
- GridViewRowCollection.cs
- IDataContractSurrogate.cs
- TextBoxAutoCompleteSourceConverter.cs
- OptionUsage.cs
- TemplateKeyConverter.cs
- SvcMapFileSerializer.cs
- ScriptMethodAttribute.cs
- ChangeConflicts.cs
- RefreshPropertiesAttribute.cs
- GeometryModel3D.cs
- PlatformNotSupportedException.cs
- EFTableProvider.cs
- DataBindingExpressionBuilder.cs
- StateManagedCollection.cs
- SparseMemoryStream.cs
- QueryPrefixOp.cs
- SQLChars.cs
- StringAnimationBase.cs
- ConfigurationException.cs
- XmlKeywords.cs
- Clipboard.cs
- ToolStripItemDesigner.cs
- DataGridViewLinkColumn.cs
- EventLogPermissionEntry.cs
- LayoutExceptionEventArgs.cs
- CalendarKeyboardHelper.cs
- ReflectPropertyDescriptor.cs
- PersistenceMetadataNamespace.cs
- BindingManagerDataErrorEventArgs.cs
- BitmapEffectInput.cs
- HttpListenerRequestUriBuilder.cs
- MenuItem.cs
- ConnectionModeReader.cs
- TriggerAction.cs
- DispatcherSynchronizationContext.cs
- SqlClientWrapperSmiStreamChars.cs
- TextServicesContext.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- SelfIssuedSamlTokenFactory.cs
- SessionStateContainer.cs
- XmlSerializableReader.cs
- KeyedCollection.cs
- CmsUtils.cs
- ISFClipboardData.cs
- TextServicesLoader.cs
- ElementAction.cs
- FormsAuthenticationModule.cs
- MailHeaderInfo.cs
- SystemIPAddressInformation.cs
- ScriptComponentDescriptor.cs
- sitestring.cs
- DataObjectMethodAttribute.cs
- SchemaTypeEmitter.cs
- Privilege.cs
- GregorianCalendar.cs
- ActivityContext.cs
- HttpCacheVary.cs
- SqlUtils.cs
- AmbientLight.cs
- InvokeHandlers.cs
- ToolStripItemRenderEventArgs.cs
- ResourceProperty.cs
- UriScheme.cs
- ADRoleFactory.cs
- UrlPropertyAttribute.cs
- MetadataPropertyCollection.cs
- PropertyValueChangedEvent.cs
- DataGridColumn.cs
- MonitorWrapper.cs
- LassoSelectionBehavior.cs
- Binding.cs
- WebPartMinimizeVerb.cs
- ScrollProviderWrapper.cs
- PropertyIDSet.cs
- indexingfiltermarshaler.cs
- IconBitmapDecoder.cs
- IndentedTextWriter.cs
- TCPClient.cs
- DataGridViewColumnEventArgs.cs
- ItemsChangedEventArgs.cs
- TextFormatter.cs
- HighlightComponent.cs
- ClientUrlResolverWrapper.cs
- ContentAlignmentEditor.cs
- TimeoutValidationAttribute.cs
- UserInitiatedRoutedEventPermission.cs
- Color.cs
- Container.cs
- Button.cs
- SqlParameterCollection.cs
- SmtpTransport.cs
- RelationshipEntry.cs