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
- DoWorkEventArgs.cs
- UpdateCommand.cs
- StdRegProviderWrapper.cs
- TTSVoice.cs
- WebBrowserNavigatingEventHandler.cs
- ExtensionFile.cs
- DispatcherHookEventArgs.cs
- ExternalException.cs
- SerializationBinder.cs
- HostingEnvironmentException.cs
- XmlWhitespace.cs
- NumberFunctions.cs
- HttpCachePolicy.cs
- XmlNodeReader.cs
- ApplyImportsAction.cs
- Socket.cs
- RequestStatusBarUpdateEventArgs.cs
- EdmType.cs
- FieldCollectionEditor.cs
- BitmapEffectInputConnector.cs
- CryptoConfig.cs
- GlyphingCache.cs
- DifferencingCollection.cs
- Attributes.cs
- StrongNameKeyPair.cs
- ClipboardProcessor.cs
- DataGridViewRowPrePaintEventArgs.cs
- PropVariant.cs
- MetafileHeader.cs
- UIPropertyMetadata.cs
- DataServiceRequestOfT.cs
- WebServiceErrorEvent.cs
- DataGridViewRowEventArgs.cs
- DelegateSerializationHolder.cs
- TextPointerBase.cs
- PersistencePipeline.cs
- Command.cs
- BitmapCodecInfo.cs
- FontFamilyConverter.cs
- MSAAEventDispatcher.cs
- TraceSource.cs
- SqlDataSourceSelectingEventArgs.cs
- XamlSerializer.cs
- Psha1DerivedKeyGenerator.cs
- Compiler.cs
- DataComponentGenerator.cs
- ContainerParagraph.cs
- WizardStepBase.cs
- TypedReference.cs
- TimelineGroup.cs
- TabRenderer.cs
- DataGridToolTip.cs
- ToolStripGripRenderEventArgs.cs
- SourceFilter.cs
- LinkLabelLinkClickedEvent.cs
- BinHexDecoder.cs
- TextCharacters.cs
- RelationshipEntry.cs
- EventDescriptor.cs
- RoutingSection.cs
- ItemContainerGenerator.cs
- FilterQuery.cs
- XmlDataLoader.cs
- DesigntimeLicenseContext.cs
- GeometryDrawing.cs
- OLEDB_Util.cs
- Pair.cs
- TransactionsSectionGroup.cs
- JsonDeserializer.cs
- EdmToObjectNamespaceMap.cs
- MultiTargetingUtil.cs
- COSERVERINFO.cs
- ConnectionStringsSection.cs
- ImportContext.cs
- UndoEngine.cs
- Mutex.cs
- TextEncodedRawTextWriter.cs
- ListViewSelectEventArgs.cs
- RNGCryptoServiceProvider.cs
- XmlSchemaSimpleTypeUnion.cs
- DataGridViewRowConverter.cs
- HttpModuleActionCollection.cs
- ReaderOutput.cs
- _Rfc2616CacheValidators.cs
- WebPartsSection.cs
- FloaterBaseParaClient.cs
- Part.cs
- HandlerBase.cs
- cookieexception.cs
- JavaScriptSerializer.cs
- ToolStripSeparatorRenderEventArgs.cs
- TableCellCollection.cs
- InvalidDocumentContentsException.cs
- OracleException.cs
- BodyWriter.cs
- HttpRequest.cs
- DynamicUpdateCommand.cs
- ListBoxAutomationPeer.cs
- Triplet.cs
- TypeTypeConverter.cs