Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / EmptyStringExpandableObjectConverter.cs / 1305376 / EmptyStringExpandableObjectConverter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.ComponentModel; using System.Globalization; using System.Security.Permissions; ////// Converts an object to String.Empty so it looks better in the designer property grid. /// internal sealed class EmptyStringExpandableObjectConverter : ExpandableObjectConverter { ////// Returns String.Empty so the object looks better in the designer property grid. /// public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { if (destinationType == typeof(string)) { return String.Empty; } throw GetConvertToException(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
- XmlIlTypeHelper.cs
- ContentIterators.cs
- LambdaCompiler.Binary.cs
- TraceLog.cs
- MultipleFilterMatchesException.cs
- MimeTypePropertyAttribute.cs
- UpdateProgress.cs
- TableRow.cs
- SequentialWorkflowHeaderFooter.cs
- BaseProcessor.cs
- Animatable.cs
- CommandConverter.cs
- CodeLabeledStatement.cs
- XmlSchemaProviderAttribute.cs
- ActiveXHost.cs
- ColumnTypeConverter.cs
- StringUtil.cs
- DbResourceAllocator.cs
- ArgumentOutOfRangeException.cs
- ClientScriptItem.cs
- StreamingContext.cs
- Select.cs
- ActivityBuilderHelper.cs
- GridViewRow.cs
- TabControlCancelEvent.cs
- PeerConnector.cs
- DrawingCollection.cs
- DrawingGroupDrawingContext.cs
- WindowsListViewGroupHelper.cs
- querybuilder.cs
- Attributes.cs
- TextBoxBase.cs
- TemplateManager.cs
- EventLogPropertySelector.cs
- Delegate.cs
- ConfigXmlAttribute.cs
- DbConnectionPool.cs
- ToolboxDataAttribute.cs
- Helper.cs
- AppSettingsReader.cs
- SqlDependencyUtils.cs
- sqlstateclientmanager.cs
- CustomAssemblyResolver.cs
- LayoutTableCell.cs
- IgnoreFlushAndCloseStream.cs
- OdbcCommandBuilder.cs
- StrongNamePublicKeyBlob.cs
- FontFaceLayoutInfo.cs
- SiblingIterators.cs
- DateTimeOffsetConverter.cs
- EntityKeyElement.cs
- SettingsPropertyIsReadOnlyException.cs
- PackUriHelper.cs
- CodeArrayIndexerExpression.cs
- MaskInputRejectedEventArgs.cs
- ISCIIEncoding.cs
- CryptographicAttribute.cs
- BufferBuilder.cs
- GeometryHitTestResult.cs
- IDataContractSurrogate.cs
- XmlValueConverter.cs
- Int32Rect.cs
- DataColumnPropertyDescriptor.cs
- PrintController.cs
- TraceHwndHost.cs
- WebSysDisplayNameAttribute.cs
- Exception.cs
- precedingsibling.cs
- ErrorEventArgs.cs
- SystemGatewayIPAddressInformation.cs
- FormViewDeleteEventArgs.cs
- SelectionUIHandler.cs
- UserInitiatedNavigationPermission.cs
- ComboBoxRenderer.cs
- XmlDataSource.cs
- WmfPlaceableFileHeader.cs
- TraceFilter.cs
- ActivityXRefConverter.cs
- X509Utils.cs
- MetabaseServerConfig.cs
- VerificationAttribute.cs
- XamlSerializer.cs
- ColumnResizeAdorner.cs
- DropShadowEffect.cs
- InputManager.cs
- SelectQueryOperator.cs
- SHA384Cng.cs
- TypePropertyEditor.cs
- SafeBitVector32.cs
- ProcessProtocolHandler.cs
- ProgressBarBrushConverter.cs
- IgnoreFlushAndCloseStream.cs
- ObjectContext.cs
- SamlSecurityTokenAuthenticator.cs
- TypeSemantics.cs
- TrustSection.cs
- HtmlInputSubmit.cs
- MemberInfoSerializationHolder.cs
- TypeHelpers.cs
- OdbcException.cs