Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / EmptyStringExpandableObjectConverter.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- JsonObjectDataContract.cs
- ResXFileRef.cs
- TypeProvider.cs
- ClonableStack.cs
- ColorConvertedBitmap.cs
- StateDesigner.TransitionInfo.cs
- LookupNode.cs
- AQNBuilder.cs
- XmlMembersMapping.cs
- ConfigurationManagerInternalFactory.cs
- ListenUriMode.cs
- EDesignUtil.cs
- ConnectionStringsExpressionBuilder.cs
- X509PeerCertificateAuthentication.cs
- DataGridViewSortCompareEventArgs.cs
- ResourceDefaultValueAttribute.cs
- DataGridViewHitTestInfo.cs
- PrePrepareMethodAttribute.cs
- Variable.cs
- AutomationPropertyInfo.cs
- HttpRuntimeSection.cs
- ArgumentNullException.cs
- TargetConverter.cs
- TemplateField.cs
- BamlTreeMap.cs
- CurrencyWrapper.cs
- RenderTargetBitmap.cs
- CapabilitiesSection.cs
- WeakReferenceKey.cs
- DnsPermission.cs
- UIElement3D.cs
- MimeTypeAttribute.cs
- EntitySetBase.cs
- Missing.cs
- DocumentPropertiesDialog.cs
- WindowVisualStateTracker.cs
- DeobfuscatingStream.cs
- GlyphInfoList.cs
- ColorPalette.cs
- ValidationError.cs
- LinqDataSourceSelectEventArgs.cs
- GAC.cs
- QilChoice.cs
- ListItemCollection.cs
- DotExpr.cs
- XmlDomTextWriter.cs
- DelayedRegex.cs
- LogLogRecord.cs
- Label.cs
- ExtensibleClassFactory.cs
- Normalization.cs
- XmlTextReaderImplHelpers.cs
- RoutingConfiguration.cs
- IDQuery.cs
- OutOfMemoryException.cs
- ColorAnimationBase.cs
- IListConverters.cs
- InstanceLockTracking.cs
- XmlMapping.cs
- EntityFunctions.cs
- ContainerAction.cs
- TextClipboardData.cs
- InstanceData.cs
- PropertyGridCommands.cs
- PrintingPermissionAttribute.cs
- ObjectAssociationEndMapping.cs
- BeginGetFileNameFromUserRequest.cs
- IdnMapping.cs
- EventPrivateKey.cs
- SecurityDocument.cs
- Pointer.cs
- XmlBufferReader.cs
- SafeCancelMibChangeNotify.cs
- Buffer.cs
- FocusTracker.cs
- XPathNodeIterator.cs
- DataFormat.cs
- TreePrinter.cs
- GetChildSubtree.cs
- SerializationAttributes.cs
- StandardOleMarshalObject.cs
- PartialCachingAttribute.cs
- BlockCollection.cs
- DocumentApplicationJournalEntryEventArgs.cs
- CommandDevice.cs
- RemoteWebConfigurationHostStream.cs
- DynamicDiscoSearcher.cs
- DataRow.cs
- ContentTypeSettingDispatchMessageFormatter.cs
- CustomAttributeFormatException.cs
- CheckBoxStandardAdapter.cs
- baseaxisquery.cs
- UnaryNode.cs
- StructuralCache.cs
- TrackPoint.cs
- DelegateTypeInfo.cs
- EastAsianLunisolarCalendar.cs
- LogExtentCollection.cs
- IdentityNotMappedException.cs
- CheckBoxBaseAdapter.cs