Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- ISCIIEncoding.cs
- DivideByZeroException.cs
- PathFigureCollection.cs
- IdentityModelDictionary.cs
- UserThread.cs
- XmlSchemaFacet.cs
- X509ClientCertificateAuthentication.cs
- ModelItem.cs
- safex509handles.cs
- FixedHyperLink.cs
- CodeTypeParameter.cs
- CollaborationHelperFunctions.cs
- OleDbError.cs
- IfElseDesigner.xaml.cs
- DigestTraceRecordHelper.cs
- FormsAuthenticationModule.cs
- TdsParameterSetter.cs
- _NTAuthentication.cs
- SelectionEditingBehavior.cs
- SequenceQuery.cs
- FixedSOMTextRun.cs
- X509Certificate.cs
- ItemCheckedEvent.cs
- XmlArrayItemAttribute.cs
- CreateUserWizardStep.cs
- ReadOnlyCollection.cs
- PropertyRecord.cs
- LinqDataSourceInsertEventArgs.cs
- GroupItemAutomationPeer.cs
- AssemblySettingAttributes.cs
- ResolveMatchesMessageCD1.cs
- GacUtil.cs
- EntityClassGenerator.cs
- IISUnsafeMethods.cs
- EventLogPropertySelector.cs
- HtmlLink.cs
- D3DImage.cs
- FullTrustAssemblyCollection.cs
- Win32.cs
- TraceRecord.cs
- Assembly.cs
- HtmlControlPersistable.cs
- WebServiceBindingAttribute.cs
- DBDataPermissionAttribute.cs
- UpDownBase.cs
- Tracking.cs
- EmptyCollection.cs
- DateTimeOffset.cs
- XPathDocumentBuilder.cs
- AuthenticationModuleElementCollection.cs
- AvTraceFormat.cs
- IPGlobalProperties.cs
- DeferredElementTreeState.cs
- OrderedDictionary.cs
- OleServicesContext.cs
- Win32SafeHandles.cs
- MimeBasePart.cs
- Keywords.cs
- DeclaredTypeElement.cs
- securestring.cs
- TransactionManager.cs
- GenericEnumConverter.cs
- BlockUIContainer.cs
- WhileDesigner.xaml.cs
- EntityContainer.cs
- DataGridSortCommandEventArgs.cs
- JournalNavigationScope.cs
- _SafeNetHandles.cs
- XsltArgumentList.cs
- XmlLinkedNode.cs
- SharedPersonalizationStateInfo.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- XmlEncApr2001.cs
- EntitySqlQueryBuilder.cs
- UpdateProgress.cs
- VisualProxy.cs
- Exceptions.cs
- AQNBuilder.cs
- ListSortDescriptionCollection.cs
- PermissionListSet.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- OutputScope.cs
- DataGridViewAccessibleObject.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- dbenumerator.cs
- WebBrowser.cs
- ImpersonationContext.cs
- WSTrustDec2005.cs
- CodeNamespaceImport.cs
- HttpApplicationStateBase.cs
- SupportingTokenProviderSpecification.cs
- OdbcParameterCollection.cs
- XmlQueryCardinality.cs
- ControlValuePropertyAttribute.cs
- FileDialog.cs
- DescendantQuery.cs
- DataObjectMethodAttribute.cs
- DataColumnChangeEvent.cs
- DataGridViewTextBoxColumn.cs
- DataColumnPropertyDescriptor.cs