Code:
/ DotNET / DotNET / 8.0 / untmp / Orcas / RTM / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UnsafeNativeMethodsPenimc.cs
- OleDbMetaDataFactory.cs
- GACIdentityPermission.cs
- KeyGestureValueSerializer.cs
- AndCondition.cs
- RootBrowserWindow.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- InternalCache.cs
- DataKeyCollection.cs
- PipelineDeploymentState.cs
- XhtmlBasicPageAdapter.cs
- TraceRecord.cs
- CheckBoxStandardAdapter.cs
- InputQueueChannelAcceptor.cs
- BinaryUtilClasses.cs
- EventLog.cs
- OverrideMode.cs
- MarkupCompilePass1.cs
- CollectionConverter.cs
- VisualBasicImportReference.cs
- QilIterator.cs
- BrowserCapabilitiesFactoryBase.cs
- ThicknessKeyFrameCollection.cs
- Part.cs
- ClosableStream.cs
- Hashtable.cs
- PagesSection.cs
- _ListenerAsyncResult.cs
- ListBoxChrome.cs
- DataColumnPropertyDescriptor.cs
- Crypto.cs
- DocumentApplication.cs
- DetailsViewPagerRow.cs
- EventLogPermissionEntry.cs
- StreamReader.cs
- MultipleViewPatternIdentifiers.cs
- ComplexPropertyEntry.cs
- SharedPerformanceCounter.cs
- WebPartTransformer.cs
- ConnectionsZoneAutoFormat.cs
- CodeAttributeArgument.cs
- ComponentSerializationService.cs
- DataObjectAttribute.cs
- UserMapPath.cs
- RegisteredArrayDeclaration.cs
- DataRelation.cs
- AmbientLight.cs
- PointAnimationBase.cs
- DatatypeImplementation.cs
- BookmarkEventArgs.cs
- RuleInfoComparer.cs
- SevenBitStream.cs
- CharacterMetrics.cs
- DrawingBrush.cs
- RNGCryptoServiceProvider.cs
- InfoCardBaseException.cs
- UriSchemeKeyedCollection.cs
- XmlSchemaComplexContentRestriction.cs
- ToolStripDropDownItemDesigner.cs
- HashMembershipCondition.cs
- KeyedPriorityQueue.cs
- DispatcherTimer.cs
- XamlGridLengthSerializer.cs
- TranslateTransform3D.cs
- TableCellAutomationPeer.cs
- FormViewCommandEventArgs.cs
- ConfigurationElementCollection.cs
- TryExpression.cs
- SimpleHandlerFactory.cs
- Formatter.cs
- UICuesEvent.cs
- PageParserFilter.cs
- recordstate.cs
- PersonalizationStateInfoCollection.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- ProgressBar.cs
- TextEffect.cs
- RankException.cs
- ReadOnlyNameValueCollection.cs
- CallbackValidator.cs
- EncoderParameters.cs
- HttpRequest.cs
- IMembershipProvider.cs
- CFGGrammar.cs
- ComboBoxRenderer.cs
- VectorAnimation.cs
- TextTreeUndoUnit.cs
- EdmComplexPropertyAttribute.cs
- NetNamedPipeSecurity.cs
- WeakEventTable.cs
- InputBinding.cs
- XamlToRtfParser.cs
- ChangesetResponse.cs
- RangeValuePattern.cs
- PackageFilter.cs
- ActivityMarkupSerializationProvider.cs
- HttpServerUtilityWrapper.cs
- RequestCacheValidator.cs
- SrgsOneOf.cs
- DesignerSerializerAttribute.cs