Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- SendKeys.cs
- ZoneButton.cs
- TreeNodeStyleCollection.cs
- ContextMenuAutomationPeer.cs
- SafeRegistryKey.cs
- XmlHierarchicalEnumerable.cs
- HistoryEventArgs.cs
- RawTextInputReport.cs
- ValidationErrorEventArgs.cs
- ParallelDesigner.cs
- ZipIOExtraFieldPaddingElement.cs
- SecurityTokenProvider.cs
- CodeStatement.cs
- WaitHandle.cs
- AssociationSetEnd.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- precedingquery.cs
- SafeRightsManagementQueryHandle.cs
- TypeInfo.cs
- DataGridViewCellStyle.cs
- ArcSegment.cs
- ServiceModelConfiguration.cs
- StandardBindingElement.cs
- Accessors.cs
- BookmarkEventArgs.cs
- ClientProtocol.cs
- hwndwrapper.cs
- AppDomain.cs
- TextTreeText.cs
- Assembly.cs
- FocusChangedEventArgs.cs
- TouchEventArgs.cs
- TemplateColumn.cs
- SqlAggregateChecker.cs
- BinaryObjectReader.cs
- ConnectionConsumerAttribute.cs
- XmlTextReaderImpl.cs
- WebPartVerbsEventArgs.cs
- XmlSerializerFactory.cs
- ContextBase.cs
- XamlGridLengthSerializer.cs
- Control.cs
- BaseComponentEditor.cs
- UserControlCodeDomTreeGenerator.cs
- OleDbRowUpdatingEvent.cs
- MaterialCollection.cs
- EmptyReadOnlyDictionaryInternal.cs
- ServiceNameCollection.cs
- ConsoleKeyInfo.cs
- ActivityUtilities.cs
- WebPartEventArgs.cs
- Ref.cs
- CommandHelpers.cs
- ViewSimplifier.cs
- RewritingValidator.cs
- URLString.cs
- GridViewUpdateEventArgs.cs
- PnrpPermission.cs
- ProcessHostMapPath.cs
- ClonableStack.cs
- SqlNotificationRequest.cs
- MimeParameterWriter.cs
- DBCommand.cs
- Timer.cs
- ClientRuntimeConfig.cs
- EmptyControlCollection.cs
- GPRECTF.cs
- IDispatchConstantAttribute.cs
- ResourcePart.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- DataGridViewCheckBoxCell.cs
- DefaultWorkflowSchedulerService.cs
- DataRowChangeEvent.cs
- BindStream.cs
- ZoneButton.cs
- Int16KeyFrameCollection.cs
- ReverseComparer.cs
- ExpressionPrinter.cs
- ADMembershipUser.cs
- newitemfactory.cs
- ProtocolsConfigurationHandler.cs
- AdornerPresentationContext.cs
- SubMenuStyle.cs
- HttpCacheVaryByContentEncodings.cs
- InkPresenter.cs
- Delay.cs
- XmlSchemaComplexContent.cs
- TextTreeTextElementNode.cs
- ContextQuery.cs
- FixedPosition.cs
- GradientStop.cs
- DeviceSpecificDesigner.cs
- ChannelTracker.cs
- IntegerValidator.cs
- BooleanAnimationBase.cs
- wgx_exports.cs
- RoutedEventArgs.cs
- ETagAttribute.cs
- Profiler.cs
- TreeNodeCollectionEditorDialog.cs