Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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); } } } // 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
- InvalidProgramException.cs
- HotSpotCollection.cs
- SafeProcessHandle.cs
- ByteStack.cs
- AuthorizationRuleCollection.cs
- TextBox.cs
- Atom10FeedFormatter.cs
- ChildDocumentBlock.cs
- DoubleAnimationBase.cs
- XmlSchemaCollection.cs
- AnimationClock.cs
- SimpleBitVector32.cs
- AutoScrollHelper.cs
- DataGridViewCellCollection.cs
- ItemsControlAutomationPeer.cs
- IPGlobalProperties.cs
- HandlerBase.cs
- SystemIPInterfaceProperties.cs
- DirtyTextRange.cs
- DataFormat.cs
- ParallelDesigner.cs
- SourceFileBuildProvider.cs
- BevelBitmapEffect.cs
- WebHttpBindingElement.cs
- AsmxEndpointPickerExtension.cs
- PackageRelationshipSelector.cs
- ThemeableAttribute.cs
- CallbackDebugBehavior.cs
- CommandValueSerializer.cs
- SqlException.cs
- ViewCellSlot.cs
- messageonlyhwndwrapper.cs
- CardSpaceSelector.cs
- MenuItemStyleCollection.cs
- HGlobalSafeHandle.cs
- SharedPerformanceCounter.cs
- XmlElementAttributes.cs
- WindowsListView.cs
- RolePrincipal.cs
- Int32Collection.cs
- SQLDateTimeStorage.cs
- DependsOnAttribute.cs
- SqlTriggerContext.cs
- DocumentSchemaValidator.cs
- connectionpool.cs
- DataGridColumnStyleMappingNameEditor.cs
- SerialErrors.cs
- WindowsListViewScroll.cs
- UnknownBitmapDecoder.cs
- GroupItem.cs
- DataObjectMethodAttribute.cs
- MemoryPressure.cs
- MappingException.cs
- ContactManager.cs
- IntegerValidator.cs
- SharedConnectionWorkflowTransactionService.cs
- HttpVersion.cs
- XmlReader.cs
- DbMetaDataColumnNames.cs
- ClipboardProcessor.cs
- Token.cs
- FilterQuery.cs
- VectorKeyFrameCollection.cs
- ICspAsymmetricAlgorithm.cs
- SafeTokenHandle.cs
- RelatedCurrencyManager.cs
- Quaternion.cs
- SolidBrush.cs
- _ShellExpression.cs
- DetailsView.cs
- DataKeyCollection.cs
- ObjectTag.cs
- DragDrop.cs
- LinqExpressionNormalizer.cs
- BamlRecords.cs
- ConfigurationErrorsException.cs
- TypedCompletedAsyncResult.cs
- BufferedStream.cs
- CustomPopupPlacement.cs
- StylusPoint.cs
- UniformGrid.cs
- ReadOnlyCollectionBase.cs
- SectionVisual.cs
- UrlMappingCollection.cs
- SetUserPreferenceRequest.cs
- RTLAwareMessageBox.cs
- CompositeDesignerAccessibleObject.cs
- ProtocolsConfigurationHandler.cs
- IOException.cs
- DoubleConverter.cs
- DayRenderEvent.cs
- CounterSet.cs
- PinnedBufferMemoryStream.cs
- HtmlGenericControl.cs
- StackOverflowException.cs
- UriExt.cs
- InputDevice.cs
- LinqDataSourceStatusEventArgs.cs
- SweepDirectionValidation.cs
- HttpContext.cs