Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / Tools / System.Activities.Presentation / System / Activities / Presentation / View / TypeToArgumentTypeConverter.cs / 1305376 / TypeToArgumentTypeConverter.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.Activities.Presentation.View { using System.Diagnostics; using System.Globalization; using System.Windows.Data; using System.Activities.Presentation.Model; using System.Runtime; // This converter converts from InArgument, OutArgument , Activity to T // this does not support convert back. internal sealed class TypeToArgumentTypeConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { object convertedValue = null; Type type = value as Type; if (type != null) { if (type.GetGenericArguments().Length > 0) { convertedValue = type.GetGenericArguments()[0]; } } return convertedValue; } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { throw FxTrace.Exception.AsError(new NotSupportedException()); } } } // 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
- SspiWrapper.cs
- ToolStripItem.cs
- Stackframe.cs
- BufferManager.cs
- FrameworkElementFactory.cs
- SchemaReference.cs
- Storyboard.cs
- ItemsChangedEventArgs.cs
- ProxyAttribute.cs
- AxDesigner.cs
- RuntimeHandles.cs
- ArglessEventHandlerProxy.cs
- HandoffBehavior.cs
- BaseAsyncResult.cs
- HttpModuleActionCollection.cs
- SqlDataSourceCache.cs
- SafeSecurityHelper.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- NullRuntimeConfig.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- DeclarationUpdate.cs
- DataGridTextBox.cs
- _FtpControlStream.cs
- indexingfiltermarshaler.cs
- CultureInfoConverter.cs
- ErrorHandlerModule.cs
- TextTreeNode.cs
- IIS7WorkerRequest.cs
- Executor.cs
- RangeValidator.cs
- DataShape.cs
- PerspectiveCamera.cs
- ImageDesigner.cs
- UserNameServiceElement.cs
- FrameworkPropertyMetadata.cs
- CompletedAsyncResult.cs
- LinkDescriptor.cs
- DataListItem.cs
- AccessedThroughPropertyAttribute.cs
- _NativeSSPI.cs
- ImmComposition.cs
- UrlAuthFailedErrorFormatter.cs
- TypeBrowserDialog.cs
- SqlCacheDependencyDatabaseCollection.cs
- Graphics.cs
- WindowsListViewItemStartMenu.cs
- WebEventTraceProvider.cs
- ETagAttribute.cs
- TreeViewImageIndexConverter.cs
- SpecularMaterial.cs
- ToolStripItemRenderEventArgs.cs
- SystemIPAddressInformation.cs
- WebOperationContext.cs
- PagesChangedEventArgs.cs
- UIElementAutomationPeer.cs
- QueryPageSettingsEventArgs.cs
- DiagnosticSection.cs
- EFColumnProvider.cs
- TaiwanLunisolarCalendar.cs
- IPipelineRuntime.cs
- TextEditorTyping.cs
- SignatureGenerator.cs
- LinkUtilities.cs
- Encoding.cs
- ButtonChrome.cs
- SendActivityDesignerTheme.cs
- CorrelationToken.cs
- UriWriter.cs
- DoubleMinMaxAggregationOperator.cs
- SharedUtils.cs
- CodeSubDirectory.cs
- EmptyEnumerator.cs
- AuthenticatingEventArgs.cs
- StackBuilderSink.cs
- OrderByQueryOptionExpression.cs
- DetailsViewRow.cs
- safesecurityhelperavalon.cs
- _BasicClient.cs
- DataGridViewElement.cs
- MultiPageTextView.cs
- OdbcConnection.cs
- StrongNameUtility.cs
- BitHelper.cs
- TextBreakpoint.cs
- ListDictionaryInternal.cs
- Debugger.cs
- TextParagraphCache.cs
- LocationEnvironment.cs
- TabItemAutomationPeer.cs
- SelectionRange.cs
- RemoteCryptoTokenProvider.cs
- securitycriticaldataformultiplegetandset.cs
- TextServicesCompartmentEventSink.cs
- _ListenerAsyncResult.cs
- ToolBarOverflowPanel.cs
- ManipulationDevice.cs
- SafeEventLogReadHandle.cs
- DataObjectEventArgs.cs
- ProtocolsConfiguration.cs
- ContextBase.cs