Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / EmptyStringExpandableObjectConverter.cs / 1305376 / 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
- WebSysDescriptionAttribute.cs
- TdsRecordBufferSetter.cs
- CompilationUtil.cs
- SendMailErrorEventArgs.cs
- DocumentGridContextMenu.cs
- BaseCodePageEncoding.cs
- WebFormDesignerActionService.cs
- WebRequest.cs
- SettingsBindableAttribute.cs
- ImageConverter.cs
- ParseHttpDate.cs
- XmlSchemaCollection.cs
- SortKey.cs
- VisualCollection.cs
- ConfigurationPropertyCollection.cs
- EditorZoneBase.cs
- PropertyMappingExceptionEventArgs.cs
- XamlToRtfParser.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- SerialPinChanges.cs
- validation.cs
- _SSPISessionCache.cs
- TextTreeNode.cs
- ResourcePool.cs
- InvalidWorkflowException.cs
- AdornerHitTestResult.cs
- __Filters.cs
- X509UI.cs
- ByteAnimationUsingKeyFrames.cs
- BuilderPropertyEntry.cs
- SimplePropertyEntry.cs
- LocationUpdates.cs
- prompt.cs
- DeviceSpecificDesigner.cs
- CompilerScope.cs
- RelationshipEnd.cs
- BaseCollection.cs
- MatrixConverter.cs
- PolyLineSegment.cs
- ManipulationDelta.cs
- TrackingStringDictionary.cs
- ToolStripKeyboardHandlingService.cs
- SafeNativeMethods.cs
- FixedFindEngine.cs
- InstanceBehavior.cs
- EntityContainerEmitter.cs
- TextRenderer.cs
- RequestCacheEntry.cs
- ImageListStreamer.cs
- Freezable.cs
- Annotation.cs
- ImageCodecInfo.cs
- ClassDataContract.cs
- SafeBuffer.cs
- EventsTab.cs
- SqlWebEventProvider.cs
- SchemaMapping.cs
- DataControlButton.cs
- regiisutil.cs
- ClientBuildManagerCallback.cs
- TextEndOfSegment.cs
- Pointer.cs
- PeerEndPoint.cs
- OracleDateTime.cs
- PropertySourceInfo.cs
- TypeContext.cs
- EntitySqlException.cs
- RepeatInfo.cs
- SqlTriggerAttribute.cs
- ProfilePropertyMetadata.cs
- SeverityFilter.cs
- WebPartConnectionsCancelEventArgs.cs
- InputScopeAttribute.cs
- ConnectionPoint.cs
- ExtractedStateEntry.cs
- MiniModule.cs
- CapabilitiesAssignment.cs
- DataBoundLiteralControl.cs
- RequestResizeEvent.cs
- LockCookie.cs
- ThicknessConverter.cs
- BindingGraph.cs
- IUnknownConstantAttribute.cs
- TemplateField.cs
- PersonalizationAdministration.cs
- AlphaSortedEnumConverter.cs
- ResizeGrip.cs
- EventLogException.cs
- XmlSortKeyAccumulator.cs
- MultiView.cs
- XmlAutoDetectWriter.cs
- TokenBasedSetEnumerator.cs
- SchemaNotation.cs
- XmlQueryTypeFactory.cs
- DataSourceCache.cs
- PropertyDescriptor.cs
- DesignerDataRelationship.cs
- HtmlTernaryTree.cs
- ListViewItem.cs
- QueryCursorEventArgs.cs