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
- WebMessageBodyStyleHelper.cs
- SqlError.cs
- DataGridViewCellValueEventArgs.cs
- SortDescription.cs
- DeferredElementTreeState.cs
- LongTypeConverter.cs
- ListView.cs
- ButtonBaseAutomationPeer.cs
- LinqDataSourceInsertEventArgs.cs
- PeerCredential.cs
- TableHeaderCell.cs
- ExecutionPropertyManager.cs
- TextParentUndoUnit.cs
- DirectionalAction.cs
- Message.cs
- DropTarget.cs
- SplashScreenNativeMethods.cs
- CqlQuery.cs
- CompiledAction.cs
- EntityDataSourceViewSchema.cs
- SelectingProviderEventArgs.cs
- DataMemberConverter.cs
- PathTooLongException.cs
- ObjectItemCachedAssemblyLoader.cs
- XamlRtfConverter.cs
- LoadRetryAsyncResult.cs
- ScriptDescriptor.cs
- TdsParserSafeHandles.cs
- ScrollBarRenderer.cs
- SerializableAttribute.cs
- WebHeaderCollection.cs
- OperationFormatStyle.cs
- Win32SafeHandles.cs
- TextProperties.cs
- BamlBinaryWriter.cs
- SafeRightsManagementSessionHandle.cs
- Int16Converter.cs
- NativeObjectSecurity.cs
- SqlDataSourceEnumerator.cs
- ColorKeyFrameCollection.cs
- EqualityArray.cs
- LicenseException.cs
- WindowsFormsHostPropertyMap.cs
- COM2TypeInfoProcessor.cs
- WindowsPrincipal.cs
- Matrix3DStack.cs
- MeasurementDCInfo.cs
- ClientConfigurationHost.cs
- TabPage.cs
- basevalidator.cs
- SHA384Managed.cs
- WorkflowMessageEventArgs.cs
- EntityDataSourceStatementEditor.cs
- Range.cs
- XmlCountingReader.cs
- PackageDigitalSignature.cs
- Attributes.cs
- SecurityTokenParametersEnumerable.cs
- CheckBox.cs
- QilInvokeEarlyBound.cs
- SqlTransaction.cs
- NamespaceEmitter.cs
- MissingSatelliteAssemblyException.cs
- WsdlInspector.cs
- TrackingLocationCollection.cs
- DropTarget.cs
- ImageMap.cs
- RequestFactory.cs
- ControlCachePolicy.cs
- Button.cs
- Configuration.cs
- SQLBinary.cs
- WeakEventManager.cs
- XsltContext.cs
- EntityDataSourceDesigner.cs
- ThrowHelper.cs
- AuthorizationSection.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- FormsAuthenticationTicket.cs
- peernodeimplementation.cs
- ScrollableControlDesigner.cs
- DSASignatureDeformatter.cs
- _NestedMultipleAsyncResult.cs
- Cursor.cs
- DocumentPageHost.cs
- CustomValidator.cs
- ProcessHost.cs
- SoapExtensionStream.cs
- TypeFieldSchema.cs
- HandleCollector.cs
- AesManaged.cs
- HtmlInputButton.cs
- CellQuery.cs
- CodeSnippetStatement.cs
- ImageAttributes.cs
- MessageQueueConverter.cs
- HtmlHead.cs
- BitmapEffectGroup.cs
- GroupBox.cs
- CardSpacePolicyElement.cs