Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebControls / EmptyStringExpandableObjectConverter.cs / 1 / 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); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InputLanguage.cs
- SourceFileInfo.cs
- VerticalAlignConverter.cs
- ServiceManager.cs
- ScalarConstant.cs
- LinkLabelLinkClickedEvent.cs
- ProviderBase.cs
- PropertyFilterAttribute.cs
- StdValidatorsAndConverters.cs
- ProgressBarBrushConverter.cs
- CTreeGenerator.cs
- WebServiceEnumData.cs
- GlyphTypeface.cs
- CssTextWriter.cs
- FilePresentation.cs
- GiveFeedbackEvent.cs
- FormClosedEvent.cs
- ValidationResult.cs
- CopyOfAction.cs
- SecurityState.cs
- RawAppCommandInputReport.cs
- PersonalizableTypeEntry.cs
- TypeViewSchema.cs
- SimpleFieldTemplateFactory.cs
- LineSegment.cs
- StringReader.cs
- WSHttpBindingBaseElement.cs
- CodeObjectCreateExpression.cs
- ClientSideQueueItem.cs
- ReferencedType.cs
- NoClickablePointException.cs
- GridViewEditEventArgs.cs
- ReceiveCompletedEventArgs.cs
- KeyTimeConverter.cs
- PasswordRecovery.cs
- TakeOrSkipWhileQueryOperator.cs
- HostedNamedPipeTransportManager.cs
- ParseElement.cs
- Marshal.cs
- CounterCreationDataConverter.cs
- Configuration.cs
- ViewSimplifier.cs
- AffineTransform3D.cs
- XmlILModule.cs
- TraceHandler.cs
- XmlSchemaObject.cs
- PanelStyle.cs
- AddressAlreadyInUseException.cs
- validationstate.cs
- securitymgrsite.cs
- COM2Enum.cs
- AutomationPattern.cs
- DefaultEvaluationContext.cs
- DbConnectionInternal.cs
- Compiler.cs
- DataServiceResponse.cs
- ConnectionsZone.cs
- CSharpCodeProvider.cs
- TableRowGroup.cs
- dataprotectionpermissionattribute.cs
- CookielessData.cs
- CustomAttributeFormatException.cs
- WCFBuildProvider.cs
- RelatedEnd.cs
- VirtualPathProvider.cs
- Brush.cs
- SqlDataReader.cs
- DynamicResourceExtension.cs
- UIElement.cs
- PrintDialogDesigner.cs
- OracleCommandSet.cs
- ObjectContext.cs
- AlignmentXValidation.cs
- ApplicationHost.cs
- SecurityKeyIdentifierClause.cs
- ScriptingRoleServiceSection.cs
- UnsafeNativeMethodsCLR.cs
- OpCopier.cs
- SHA1CryptoServiceProvider.cs
- ToolTip.cs
- IndividualDeviceConfig.cs
- ObjectToIdCache.cs
- ModelServiceImpl.cs
- HttpListenerPrefixCollection.cs
- IgnoreSectionHandler.cs
- NotifyInputEventArgs.cs
- Int32Rect.cs
- DataRecordInternal.cs
- Propagator.ExtentPlaceholderCreator.cs
- HorizontalAlignConverter.cs
- OutOfProcStateClientManager.cs
- ManagementEventArgs.cs
- CodeLinePragma.cs
- DetailsViewDeleteEventArgs.cs
- FilteredReadOnlyMetadataCollection.cs
- RelationalExpressions.cs
- XNodeNavigator.cs
- DefaultHttpHandler.cs
- ParenthesizePropertyNameAttribute.cs
- XamlPointCollectionSerializer.cs