Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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. // //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- IfAction.cs
- ThreadStaticAttribute.cs
- IdnMapping.cs
- ToolStripDropDownMenu.cs
- GPRECTF.cs
- GridItem.cs
- SelectedGridItemChangedEvent.cs
- Pkcs7Recipient.cs
- StyleHelper.cs
- WindowsFormsSynchronizationContext.cs
- ListControl.cs
- SqlNotificationRequest.cs
- BaseCollection.cs
- ping.cs
- WmlMobileTextWriter.cs
- AttributeParameterInfo.cs
- WebRequest.cs
- InheritanceAttribute.cs
- DrawingAttributes.cs
- WebPartDeleteVerb.cs
- CoTaskMemUnicodeSafeHandle.cs
- VisualProxy.cs
- ApplicationDirectory.cs
- XmlWellformedWriterHelpers.cs
- Registry.cs
- SqlCacheDependencyDatabase.cs
- TrustLevelCollection.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- SafeNativeMethods.cs
- XmlDataSource.cs
- SystemIPInterfaceStatistics.cs
- DataControlButton.cs
- TypedTableBaseExtensions.cs
- IResourceProvider.cs
- SourceChangedEventArgs.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- DBSchemaRow.cs
- ITextView.cs
- ObjectAnimationUsingKeyFrames.cs
- ToolboxItemCollection.cs
- RelationshipType.cs
- DecodeHelper.cs
- StringArrayEditor.cs
- DoubleAnimationUsingKeyFrames.cs
- StrongNameIdentityPermission.cs
- ExpressionBindingCollection.cs
- XmlNullResolver.cs
- EditorOptionAttribute.cs
- InitializingNewItemEventArgs.cs
- PropertyGroupDescription.cs
- CustomWebEventKey.cs
- Tile.cs
- TextTreePropertyUndoUnit.cs
- EntityDesignerDataSourceView.cs
- StreamHelper.cs
- FontFamily.cs
- FacetValueContainer.cs
- Vector3DAnimation.cs
- ServerProtocol.cs
- basecomparevalidator.cs
- SqlBulkCopyColumnMapping.cs
- Permission.cs
- ArgIterator.cs
- BrushMappingModeValidation.cs
- FillRuleValidation.cs
- AuthenticatingEventArgs.cs
- InputDevice.cs
- TextBoxLine.cs
- RecognitionEventArgs.cs
- ReadOnlyDataSourceView.cs
- MachineKeyConverter.cs
- DbProviderServices.cs
- DependencyProperty.cs
- DbMetaDataColumnNames.cs
- HtmlSelect.cs
- SystemIPGlobalProperties.cs
- SerializationFieldInfo.cs
- userdatakeys.cs
- ScrollEventArgs.cs
- SurrogateEncoder.cs
- UnsafeNativeMethodsTablet.cs
- ipaddressinformationcollection.cs
- FacetEnabledSchemaElement.cs
- ApplicationServiceManager.cs
- ContentIterators.cs
- WorkflowRuntime.cs
- RowToParametersTransformer.cs
- PagerSettings.cs
- ConcurrentDictionary.cs
- BaseDataListPage.cs
- JpegBitmapDecoder.cs
- FileSecurity.cs
- DrawToolTipEventArgs.cs
- StyleModeStack.cs
- HelpEvent.cs
- OrthographicCamera.cs
- WorkflowOperationContext.cs
- FixedSOMSemanticBox.cs
- ConstructorNeedsTagAttribute.cs
- ServicesExceptionNotHandledEventArgs.cs