Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- InputGestureCollection.cs
- CurrentTimeZone.cs
- NonBatchDirectoryCompiler.cs
- NetworkCredential.cs
- DrawingGroup.cs
- SerializationTrace.cs
- DataSourceProvider.cs
- Int16Animation.cs
- VirtualPathProvider.cs
- WindowsSecurityToken.cs
- EventItfInfo.cs
- VectorAnimation.cs
- DropShadowBitmapEffect.cs
- XamlTypeMapperSchemaContext.cs
- PointLightBase.cs
- DataObject.cs
- DesignerCapabilities.cs
- SqlDataSourceSelectingEventArgs.cs
- SemanticTag.cs
- XmlSerializerFactory.cs
- AxWrapperGen.cs
- ComponentChangedEvent.cs
- InternalPermissions.cs
- FusionWrap.cs
- KeyNotFoundException.cs
- ConsumerConnectionPointCollection.cs
- ExceptionHandlerDesigner.cs
- XslVisitor.cs
- ExtendedProperty.cs
- ServiceNameCollection.cs
- FlagPanel.cs
- BrowserCapabilitiesCodeGenerator.cs
- CachedRequestParams.cs
- SQLBinaryStorage.cs
- _ListenerAsyncResult.cs
- SinglePhaseEnlistment.cs
- _AutoWebProxyScriptEngine.cs
- VSWCFServiceContractGenerator.cs
- MenuTracker.cs
- TreeViewImageIndexConverter.cs
- WhitespaceRuleReader.cs
- CopyCodeAction.cs
- HtmlTitle.cs
- X509Utils.cs
- TreeNodeBinding.cs
- validationstate.cs
- SmtpException.cs
- FixUpCollection.cs
- ComPlusContractBehavior.cs
- EventSetter.cs
- DocumentGridPage.cs
- InvokeMethodActivityDesigner.cs
- SafeCryptContextHandle.cs
- WebPartUserCapability.cs
- CustomPopupPlacement.cs
- ContentHostHelper.cs
- ResourceIDHelper.cs
- WindowsUpDown.cs
- BrowserTree.cs
- CheckBox.cs
- GridViewDeleteEventArgs.cs
- TimeoutHelper.cs
- PowerModeChangedEventArgs.cs
- LinqExpressionNormalizer.cs
- DesignerVerbToolStripMenuItem.cs
- brushes.cs
- ImageClickEventArgs.cs
- CodeExpressionStatement.cs
- XmlAnyElementAttribute.cs
- InternalsVisibleToAttribute.cs
- IdentityValidationException.cs
- PrintingPermissionAttribute.cs
- _RequestCacheProtocol.cs
- HtmlInputText.cs
- EditorPartCollection.cs
- XmlIncludeAttribute.cs
- isolationinterop.cs
- FileDialog_Vista_Interop.cs
- COM2TypeInfoProcessor.cs
- CaretElement.cs
- ArrayWithOffset.cs
- CustomLineCap.cs
- EventLogPermissionAttribute.cs
- ToolStripContentPanel.cs
- ActivityCollectionMarkupSerializer.cs
- RawMouseInputReport.cs
- ConstraintStruct.cs
- Transform3DGroup.cs
- ExpressionSelection.cs
- TextEditorTables.cs
- DataGridSortCommandEventArgs.cs
- BitmapEffectState.cs
- HtmlEmptyTagControlBuilder.cs
- FontFaceLayoutInfo.cs
- IteratorFilter.cs
- Single.cs
- TextFormatter.cs
- sortedlist.cs
- ColumnMapProcessor.cs
- DictionaryChange.cs