Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Base / System / Windows / Markup / TypeTypeConverter.cs / 1 / TypeTypeConverter.cs
/****************************************************************************\ * * File: DateTimeConverter2.cs * \***************************************************************************/ using System; using System.ComponentModel; #if PBTCOMPILER namespace MS.Internal.Markup #else namespace System.Windows.Markup #endif { ////// TypeConverter for System.Type /// internal class TypeTypeConverter : TypeConverter { #if !PBTCOMPILER public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { return sourceType == typeof(string); } public override object ConvertFrom(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) { string typeName = value as string; if (null != context && typeName != null) { IXamlTypeResolver xamlTypeResolver = (IXamlTypeResolver)context.GetService(typeof(IXamlTypeResolver)); if (null != xamlTypeResolver) { return xamlTypeResolver.Resolve(typeName); } } return base.ConvertFrom(context, culture, value); } #endif } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlSchemaSimpleContent.cs
- TemplatingOptionsDialog.cs
- EnumValidator.cs
- PopupRoot.cs
- MemberHolder.cs
- TripleDESCryptoServiceProvider.cs
- PackageRelationshipCollection.cs
- HyperlinkAutomationPeer.cs
- DataFormat.cs
- Expander.cs
- TypeForwardedToAttribute.cs
- DataGridViewRowConverter.cs
- Expander.cs
- serverconfig.cs
- ColorConverter.cs
- OledbConnectionStringbuilder.cs
- BaseHashHelper.cs
- TextModifierScope.cs
- DataBoundControlHelper.cs
- SQLMoneyStorage.cs
- DeflateStream.cs
- EncoderFallback.cs
- XmlTextAttribute.cs
- DesignerSerializationVisibilityAttribute.cs
- Error.cs
- login.cs
- DebugView.cs
- CustomAttributeSerializer.cs
- SeverityFilter.cs
- XPathBinder.cs
- SmtpMail.cs
- _NetRes.cs
- SqlAliaser.cs
- ScaleTransform.cs
- AsymmetricCryptoHandle.cs
- GroupAggregateExpr.cs
- TimeStampChecker.cs
- DescendentsWalker.cs
- ImmComposition.cs
- EdmScalarPropertyAttribute.cs
- ForeignConstraint.cs
- HelloMessage11.cs
- odbcmetadatacolumnnames.cs
- HttpServerVarsCollection.cs
- JsonByteArrayDataContract.cs
- CollectionChangeEventArgs.cs
- BindingList.cs
- Connector.xaml.cs
- SkipStoryboardToFill.cs
- Module.cs
- SQLByteStorage.cs
- MenuItemCollectionEditorDialog.cs
- Exception.cs
- AttributeTableBuilder.cs
- ConsoleKeyInfo.cs
- PrivateFontCollection.cs
- _NegoStream.cs
- ProtocolsSection.cs
- ToolStripHighContrastRenderer.cs
- CodeNamespaceImport.cs
- Rect3D.cs
- Pkcs7Recipient.cs
- DataMisalignedException.cs
- xmlNames.cs
- ObjectStateFormatter.cs
- WindowProviderWrapper.cs
- ContainerParagraph.cs
- QualifierSet.cs
- QueryableDataSource.cs
- MultipartIdentifier.cs
- ProjectionPlan.cs
- ClientTargetCollection.cs
- SqlServer2KCompatibilityAnnotation.cs
- SiteMapHierarchicalDataSourceView.cs
- DataControlCommands.cs
- FillRuleValidation.cs
- RadioButtonList.cs
- CodeTypeReferenceExpression.cs
- PopupControlService.cs
- BufferModesCollection.cs
- EventLogger.cs
- GridViewAutomationPeer.cs
- SqlStatistics.cs
- ProjectionPruner.cs
- ViewKeyConstraint.cs
- WebPartZoneCollection.cs
- ExpressionBuilder.cs
- ColorConvertedBitmapExtension.cs
- CryptoConfig.cs
- IsolatedStorageFileStream.cs
- MessagePropertyFilter.cs
- TextViewSelectionProcessor.cs
- CodeDirectionExpression.cs
- CheckBoxBaseAdapter.cs
- CmsInterop.cs
- NonSerializedAttribute.cs
- DataGridRowsPresenter.cs
- SafeEventLogReadHandle.cs
- ReadOnlyHierarchicalDataSource.cs
- HandlerFactoryCache.cs