Code:
                         / 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.Activities / System / Activities / XamlIntegration / InArgumentConverter.cs / 1305376 / InArgumentConverter.cs
                        
                        
                            //------------------------------------------------------------------------------ 
// Copyright (c) Microsoft Corporation.  All rights reserved.
//-----------------------------------------------------------------------------
namespace System.Activities.XamlIntegration 
{
    using System; 
    using System.ComponentModel; 
    using System.Windows.Markup;
 
    public sealed class InArgumentConverter : TypeConverterBase
    {
        public InArgumentConverter()
            : base(typeof(InArgument<>), typeof(InArgumentConverterHelper<>)) 
        {
        } 
 
        public InArgumentConverter(Type type)
            : base(type, typeof(InArgument < > ), typeof(InArgumentConverterHelper < > )) 
        {
        }
        internal sealed class InArgumentConverterHelper : TypeConverterHelper> 
        {
            ActivityWithResultConverter.ExpressionConverterHelper valueExpressionHelper; 
 
            public InArgumentConverterHelper()
            { 
                this.valueExpressionHelper = new ActivityWithResultConverter.ExpressionConverterHelper(false);
            }
            public override InArgument ConvertFromString(string text, ITypeDescriptorContext context) 
            {
                return new InArgument 
                    { 
                        Expression = this.valueExpressionHelper.ConvertFromString(text, 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
- StringFreezingAttribute.cs
- IntellisenseTextBox.cs
- MethodBuilderInstantiation.cs
- ServiceDescriptions.cs
- PenThreadWorker.cs
- Matrix.cs
- DataRowView.cs
- InitializerFacet.cs
- MultiTrigger.cs
- FormViewCommandEventArgs.cs
- EntityDataSourceColumn.cs
- SqlAliasesReferenced.cs
- SourceInterpreter.cs
- DocumentApplicationState.cs
- path.cs
- ExtensionQuery.cs
- TableParaClient.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- LinqDataSourceContextEventArgs.cs
- XamlSerializationHelper.cs
- OrderedDictionary.cs
- RuntimeArgumentHandle.cs
- ExpressionHelper.cs
- TrackingStringDictionary.cs
- WorkflowRuntimeBehavior.cs
- ReferentialConstraint.cs
- TypeExtensionConverter.cs
- DataSourceCache.cs
- FilterableAttribute.cs
- Point4DConverter.cs
- TreeViewImageKeyConverter.cs
- _UriTypeConverter.cs
- WriteFileContext.cs
- SelectionChangedEventArgs.cs
- PathSegment.cs
- ContextActivityUtils.cs
- SmiContextFactory.cs
- HttpHandlersSection.cs
- filewebresponse.cs
- StoreItemCollection.cs
- SystemIcons.cs
- StylusPointCollection.cs
- categoryentry.cs
- UIPropertyMetadata.cs
- MultipartContentParser.cs
- FlowDocumentView.cs
- CompilerResults.cs
- DiscreteKeyFrames.cs
- DashStyle.cs
- DbProviderServices.cs
- MultipleViewPatternIdentifiers.cs
- DataStreamFromComStream.cs
- StringArrayConverter.cs
- ResumeStoryboard.cs
- DetailsViewUpdatedEventArgs.cs
- TranslateTransform.cs
- ClientReliableChannelBinder.cs
- Config.cs
- RootBrowserWindowProxy.cs
- Geometry3D.cs
- PeerCredentialElement.cs
- SoapSchemaMember.cs
- ScalarOps.cs
- NullableIntMinMaxAggregationOperator.cs
- DBAsyncResult.cs
- SerialReceived.cs
- PreviewKeyDownEventArgs.cs
- CheckBoxBaseAdapter.cs
- ListViewSortEventArgs.cs
- ZoneIdentityPermission.cs
- DataDocumentXPathNavigator.cs
- XmlnsPrefixAttribute.cs
- WindowsScrollBarBits.cs
- EventToken.cs
- CodeDelegateInvokeExpression.cs
- ListParaClient.cs
- mediaeventargs.cs
- TextElement.cs
- COM2ExtendedUITypeEditor.cs
- UnknownBitmapDecoder.cs
- ToolStripSeparatorRenderEventArgs.cs
- SimpleHandlerBuildProvider.cs
- TreeNodeConverter.cs
- DeferredSelectedIndexReference.cs
- HighlightOverlayGlyph.cs
- SQLConvert.cs
- CommandLineParser.cs
- Duration.cs
- WebPartUtil.cs
- Workspace.cs
- RsaSecurityTokenAuthenticator.cs
- ConfigurationStrings.cs
- DigestComparer.cs
- DynamicActionMessageFilter.cs
- AnonymousIdentificationModule.cs
- ConstraintCollection.cs
- lengthconverter.cs
- XmlUtil.cs
- CssTextWriter.cs
- HttpRequestWrapper.cs