Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.Activities / System / Activities / XamlIntegration / OutArgumentConverter.cs / 1305376 / OutArgumentConverter.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.Activities.XamlIntegration
{
using System;
using System.ComponentModel;
using System.Windows.Markup;
public sealed class OutArgumentConverter : TypeConverterBase
{
public OutArgumentConverter()
: base(typeof(OutArgument<>), typeof(OutArgumentConverterHelper<>))
{
}
public OutArgumentConverter(Type type)
: base(type, typeof(OutArgument < > ), typeof(OutArgumentConverterHelper < > ))
{
}
internal sealed class OutArgumentConverterHelper : TypeConverterHelper>
{
ActivityWithResultConverter.ExpressionConverterHelper> expressionHelper;
public OutArgumentConverterHelper()
{
this.expressionHelper = new ActivityWithResultConverter.ExpressionConverterHelper>(true);
}
public override OutArgument ConvertFromString(string text, ITypeDescriptorContext context)
{
return new OutArgument
{
Expression = this.expressionHelper.ConvertFromString(text.Trim(), context)
};
}
}
}
}
// 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
- EditBehavior.cs
- ColorConvertedBitmap.cs
- SecureUICommand.cs
- Oid.cs
- ScriptResourceInfo.cs
- StatusBarDrawItemEvent.cs
- PrintDialog.cs
- HttpProfileGroupBase.cs
- MediaCommands.cs
- RotateTransform3D.cs
- DeflateStreamAsyncResult.cs
- MasterPage.cs
- DataGridPagerStyle.cs
- TreeBuilder.cs
- DesignBindingPropertyDescriptor.cs
- RepeaterCommandEventArgs.cs
- Transform3DGroup.cs
- Semaphore.cs
- ContextMarshalException.cs
- TypeGeneratedEventArgs.cs
- GeneralTransform3DCollection.cs
- Config.cs
- DataRowChangeEvent.cs
- TextBreakpoint.cs
- DataGridViewCheckBoxCell.cs
- ExcCanonicalXml.cs
- TranslateTransform3D.cs
- TypeDependencyAttribute.cs
- HybridDictionary.cs
- DecimalAnimationUsingKeyFrames.cs
- EasingFunctionBase.cs
- MessagingDescriptionAttribute.cs
- BufferedGraphicsContext.cs
- AttributeTable.cs
- CalculatedColumn.cs
- BuildResult.cs
- UserUseLicenseDictionaryLoader.cs
- PropertyExpression.cs
- DataContract.cs
- StringAnimationBase.cs
- OracleInfoMessageEventArgs.cs
- OracleColumn.cs
- EntityDataSourceChangedEventArgs.cs
- XPathNodeInfoAtom.cs
- TranslateTransform3D.cs
- ComProxy.cs
- KeyMatchBuilder.cs
- ObjectFullSpanRewriter.cs
- Application.cs
- processwaithandle.cs
- CommandDevice.cs
- SerializerProvider.cs
- CodeTypeConstructor.cs
- _NtlmClient.cs
- ToolStripButton.cs
- WindowsIdentity.cs
- TypeElement.cs
- AliasedSlot.cs
- NGCSerializationManager.cs
- DataControlPagerLinkButton.cs
- SqlDataSourceView.cs
- OpenFileDialog.cs
- InvokeBinder.cs
- LayoutEditorPart.cs
- HttpApplicationFactory.cs
- TableParagraph.cs
- CompModHelpers.cs
- SQLBinary.cs
- DictionaryGlobals.cs
- PropVariant.cs
- OdbcFactory.cs
- ShimAsPublicXamlType.cs
- SqlDataAdapter.cs
- EmptyControlCollection.cs
- WpfPayload.cs
- SubclassTypeValidator.cs
- DesignerActionTextItem.cs
- Drawing.cs
- ConsumerConnectionPointCollection.cs
- DataSetFieldSchema.cs
- PlaceHolder.cs
- Animatable.cs
- SplashScreenNativeMethods.cs
- WindowsRegion.cs
- TextEditorTables.cs
- XmlSchemaAnyAttribute.cs
- HostedBindingBehavior.cs
- XhtmlMobileTextWriter.cs
- MDIControlStrip.cs
- WaitHandleCannotBeOpenedException.cs
- ObjectDataSourceSelectingEventArgs.cs
- StylusEventArgs.cs
- NumericPagerField.cs
- AutomationElementCollection.cs
- SoapAttributeOverrides.cs
- FullTextState.cs
- EdmPropertyAttribute.cs
- WindowsGraphicsCacheManager.cs
- TagPrefixCollection.cs
- ProjectionCamera.cs