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
- DataGridViewBindingCompleteEventArgs.cs
- Main.cs
- ParallelDesigner.cs
- DataBoundLiteralControl.cs
- CodeDomSerializer.cs
- GlobalizationSection.cs
- DesignerContextDescriptor.cs
- InvokeMethodDesigner.xaml.cs
- DefaultValueTypeConverter.cs
- AppSettings.cs
- ReverseQueryOperator.cs
- IOException.cs
- ByteStreamGeometryContext.cs
- ExpressionPrefixAttribute.cs
- ImpersonationOption.cs
- EnumBuilder.cs
- Internal.cs
- ExtensionElement.cs
- InputBuffer.cs
- CompressedStack.cs
- DeviceFiltersSection.cs
- ComAwareEventInfo.cs
- SqlConnectionFactory.cs
- AnnouncementDispatcherAsyncResult.cs
- TemplateBindingExtensionConverter.cs
- SmtpMail.cs
- SqlParameterCollection.cs
- BrowserCapabilitiesFactoryBase.cs
- MinMaxParagraphWidth.cs
- AdornerHitTestResult.cs
- SQLDouble.cs
- MouseOverProperty.cs
- HostingEnvironmentWrapper.cs
- BitmapDecoder.cs
- DateTimeParse.cs
- FaultHandlingFilter.cs
- EpmSyndicationContentDeSerializer.cs
- TrustLevel.cs
- VisualBasicReference.cs
- DeclaredTypeValidatorAttribute.cs
- _TransmitFileOverlappedAsyncResult.cs
- JpegBitmapDecoder.cs
- AssemblyBuilder.cs
- SecurityHelper.cs
- AttachedPropertyMethodSelector.cs
- SystemIPv4InterfaceProperties.cs
- IdentityValidationException.cs
- FactoryId.cs
- _NativeSSPI.cs
- HtmlContainerControl.cs
- DelegatedStream.cs
- MessageAction.cs
- InputScopeConverter.cs
- SafeArrayTypeMismatchException.cs
- DesignerTransactionCloseEvent.cs
- DockPattern.cs
- cryptoapiTransform.cs
- SingletonChannelAcceptor.cs
- ContentHostHelper.cs
- SmiConnection.cs
- TargetException.cs
- UnsignedPublishLicense.cs
- DataGridViewToolTip.cs
- StrokeRenderer.cs
- RequestTimeoutManager.cs
- BordersPage.cs
- BufferedMessageData.cs
- OleCmdHelper.cs
- XPathConvert.cs
- SocketInformation.cs
- DesignerValidationSummaryAdapter.cs
- TriggerCollection.cs
- HttpCapabilitiesBase.cs
- GridView.cs
- UnorderedHashRepartitionStream.cs
- EUCJPEncoding.cs
- SettingsPropertyValue.cs
- DelimitedListTraceListener.cs
- RoleGroupCollection.cs
- Timeline.cs
- LoginView.cs
- ClickablePoint.cs
- ScrollEvent.cs
- HandledEventArgs.cs
- TcpClientSocketManager.cs
- ResourceAssociationSet.cs
- metrodevice.cs
- Constants.cs
- ImmutableObjectAttribute.cs
- ScriptManagerProxy.cs
- IisTraceListener.cs
- DbConnectionClosed.cs
- ClientSession.cs
- UserPreferenceChangingEventArgs.cs
- XsltCompileContext.cs
- FutureFactory.cs
- FieldInfo.cs
- figurelengthconverter.cs
- AttributeUsageAttribute.cs
- TemplateApplicationHelper.cs