Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / 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. //------------------------------------------------------------------------------ //// 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
- SqlProfileProvider.cs
- CqlParser.cs
- CaseInsensitiveComparer.cs
- HttpListenerContext.cs
- FormsAuthenticationModule.cs
- IndentedWriter.cs
- MemberInfoSerializationHolder.cs
- SizeKeyFrameCollection.cs
- InfoCardSchemas.cs
- QuaternionAnimationUsingKeyFrames.cs
- ChildrenQuery.cs
- TableCellCollection.cs
- MustUnderstandSoapException.cs
- ModuleBuilderData.cs
- XmlMtomReader.cs
- BoundConstants.cs
- TableColumn.cs
- MatchAllMessageFilter.cs
- XamlToRtfWriter.cs
- DetailsViewPagerRow.cs
- InvalidContentTypeException.cs
- ServiceOperationWrapper.cs
- TreeNodeBindingDepthConverter.cs
- ConditionChanges.cs
- PersistChildrenAttribute.cs
- Transform3DCollection.cs
- HGlobalSafeHandle.cs
- ColorBlend.cs
- SqlException.cs
- SerializationException.cs
- ReflectPropertyDescriptor.cs
- DateTimeFormat.cs
- PackagingUtilities.cs
- ValidationService.cs
- HttpTransportElement.cs
- TreeViewItemAutomationPeer.cs
- MulticastDelegate.cs
- DesignerDataTable.cs
- WebPartZoneBaseDesigner.cs
- CustomError.cs
- SystemKeyConverter.cs
- CodeIdentifier.cs
- ManipulationCompletedEventArgs.cs
- ResXBuildProvider.cs
- InvalidDataException.cs
- _ListenerResponseStream.cs
- ParallelLoopState.cs
- PolyBezierSegment.cs
- CategoryState.cs
- MasterPage.cs
- _ProxyChain.cs
- OutputCacheSettings.cs
- DataControlImageButton.cs
- URLIdentityPermission.cs
- ScrollBar.cs
- ResourceProperty.cs
- DocumentAutomationPeer.cs
- WebPartUserCapability.cs
- CommentEmitter.cs
- TreeNodeStyle.cs
- TextBoxBase.cs
- PointCollection.cs
- DataTableCollection.cs
- BufferedGraphics.cs
- FontFamily.cs
- CleanUpVirtualizedItemEventArgs.cs
- SqlProcedureAttribute.cs
- XmlSchemaType.cs
- ConfigUtil.cs
- CommonProperties.cs
- MemberAccessException.cs
- StateChangeEvent.cs
- XmlChoiceIdentifierAttribute.cs
- CellIdBoolean.cs
- CustomAttributeSerializer.cs
- AccessViolationException.cs
- ReadWriteSpinLock.cs
- BlurEffect.cs
- safelink.cs
- Calendar.cs
- ExtendedProtectionPolicy.cs
- RegexWorker.cs
- InkCanvasInnerCanvas.cs
- SQLGuid.cs
- OdbcHandle.cs
- CodeArrayIndexerExpression.cs
- BlurBitmapEffect.cs
- XmlSchemaChoice.cs
- ObjectConverter.cs
- path.cs
- LinkClickEvent.cs
- SuppressMergeCheckAttribute.cs
- Converter.cs
- NetworkAddressChange.cs
- MetadataSerializer.cs
- WebBrowserPermission.cs
- EventMap.cs
- datacache.cs
- XamlFilter.cs
- ListBox.cs