Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / xsp / System / Web / Extensions / ui / EmptyStringExpandableObjectConverter.cs / 1 / EmptyStringExpandableObjectConverter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Globalization; // Used by objects that are subproperties of Controls. Improves the UI in the property grid by displaying // nothing as the property value, instead of the fully qualified type name. internal sealed class EmptyStringExpandableObjectConverter : ExpandableObjectConverter { public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { if (destinationType == typeof(string)) { return String.Empty; } else { return base.ConvertTo(context, culture, value, destinationType); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Globalization; // Used by objects that are subproperties of Controls. Improves the UI in the property grid by displaying // nothing as the property value, instead of the fully qualified type name. internal sealed class EmptyStringExpandableObjectConverter : ExpandableObjectConverter { public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { if (destinationType == typeof(string)) { return String.Empty; } else { return base.ConvertTo(context, culture, value, destinationType); } } } } // 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
- HttpWrapper.cs
- Pair.cs
- SudsWriter.cs
- WindowsSysHeader.cs
- InputProviderSite.cs
- KeyboardDevice.cs
- CodeAttributeArgumentCollection.cs
- TreeViewHitTestInfo.cs
- UnhandledExceptionEventArgs.cs
- WebDescriptionAttribute.cs
- GlobalItem.cs
- HtmlMeta.cs
- ConstructorBuilder.cs
- CodeBlockBuilder.cs
- OrderedDictionary.cs
- PropertyConverter.cs
- TreeNode.cs
- AbsoluteQuery.cs
- RequestCacheManager.cs
- BamlTreeUpdater.cs
- StringSorter.cs
- DataGridViewColumnCollectionDialog.cs
- ActivityExecutionContextCollection.cs
- formatter.cs
- Rotation3DAnimationUsingKeyFrames.cs
- AlignmentXValidation.cs
- WebPartConnectionsCancelEventArgs.cs
- Opcode.cs
- TraceData.cs
- ManipulationStartingEventArgs.cs
- VisualStyleInformation.cs
- LazyTextWriterCreator.cs
- FixedSOMLineCollection.cs
- ProcessHost.cs
- RuntimeComponentFilter.cs
- VisualTreeHelper.cs
- Page.cs
- LayoutSettings.cs
- TraceHandler.cs
- CellLabel.cs
- PointAnimationClockResource.cs
- XPathAncestorIterator.cs
- EdmTypeAttribute.cs
- Polygon.cs
- SignedXml.cs
- uribuilder.cs
- TableLayoutStyleCollection.cs
- UserPreferenceChangedEventArgs.cs
- XmlQueryContext.cs
- NetworkAddressChange.cs
- HtmlPanelAdapter.cs
- XPathNavigatorKeyComparer.cs
- FixedDSBuilder.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- TransportChannelListener.cs
- XmlSchemaSimpleTypeRestriction.cs
- CultureTable.cs
- ZipIOExtraFieldZip64Element.cs
- AsyncOperationContext.cs
- StandardCommands.cs
- DelegatingTypeDescriptionProvider.cs
- XmlUTF8TextReader.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- SourceFileInfo.cs
- SuppressMessageAttribute.cs
- RoleGroupCollection.cs
- AtomServiceDocumentSerializer.cs
- XPathScanner.cs
- CompiledWorkflowDefinitionContext.cs
- OraclePermissionAttribute.cs
- CqlErrorHelper.cs
- ClipboardProcessor.cs
- JsonReaderDelegator.cs
- SqlResolver.cs
- LexicalChunk.cs
- TableRowCollection.cs
- TextEndOfParagraph.cs
- FixedPageStructure.cs
- ObjectTag.cs
- PromptBuilder.cs
- InstallerTypeAttribute.cs
- LogicalChannel.cs
- ProfileSection.cs
- ExtentCqlBlock.cs
- PolicyStatement.cs
- DetailsViewRow.cs
- PingReply.cs
- DateTimeOffset.cs
- IDispatchConstantAttribute.cs
- SchemaCollectionPreprocessor.cs
- _Rfc2616CacheValidators.cs
- DebugView.cs
- documentation.cs
- CodeDomSerializer.cs
- WindowsListViewItem.cs
- KnownBoxes.cs
- IIS7UserPrincipal.cs
- Expression.cs
- IPEndPoint.cs
- SqlDataSourceStatusEventArgs.cs