Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- XmlSchemaIdentityConstraint.cs
- DrawingImage.cs
- OleDbDataReader.cs
- XmlSerializerAssemblyAttribute.cs
- StringDictionaryWithComparer.cs
- precedingquery.cs
- ZipIOLocalFileBlock.cs
- HtmlEncodedRawTextWriter.cs
- SymLanguageVendor.cs
- RenderContext.cs
- SimpleRecyclingCache.cs
- CodeMethodReturnStatement.cs
- SparseMemoryStream.cs
- TextComposition.cs
- HttpWriter.cs
- TextShapeableCharacters.cs
- MinimizableAttributeTypeConverter.cs
- StreamUpdate.cs
- VideoDrawing.cs
- ItemsControl.cs
- ApplicationServiceHelper.cs
- MultiPropertyDescriptorGridEntry.cs
- ButtonChrome.cs
- GridViewRowPresenter.cs
- MarshalByValueComponent.cs
- SmiRequestExecutor.cs
- Invariant.cs
- Cursors.cs
- Error.cs
- SortKey.cs
- TemplateParser.cs
- ConfigurationPropertyAttribute.cs
- securitycriticaldataClass.cs
- httpapplicationstate.cs
- XmlSchemaAnnotated.cs
- AudioBase.cs
- PrintPreviewGraphics.cs
- XmlDocumentFragment.cs
- ByteStreamGeometryContext.cs
- TextBox.cs
- HwndMouseInputProvider.cs
- DictionaryContent.cs
- TextDocumentView.cs
- CacheEntry.cs
- Int64KeyFrameCollection.cs
- TextContainerHelper.cs
- BitmapImage.cs
- ManagedIStream.cs
- EntitySqlQueryCacheKey.cs
- CompositeClientFormatter.cs
- ColumnResizeAdorner.cs
- EdmProperty.cs
- XPathSelectionIterator.cs
- EventLogQuery.cs
- SecurityCriticalDataForSet.cs
- SecureStringHasher.cs
- SecureStringHasher.cs
- ZipIOModeEnforcingStream.cs
- XpsFilter.cs
- ValidationErrorCollection.cs
- ContextActivityUtils.cs
- QuotedStringWriteStateInfo.cs
- ParseElement.cs
- Debug.cs
- TreeNodeSelectionProcessor.cs
- StateRuntime.cs
- VersionedStream.cs
- Menu.cs
- SoapSchemaExporter.cs
- Empty.cs
- PropertyInformation.cs
- WindowsTreeView.cs
- XdrBuilder.cs
- Listen.cs
- Error.cs
- WorkflowElementDialog.cs
- WeakReference.cs
- DataSourceXmlAttributeAttribute.cs
- _HeaderInfo.cs
- DataShape.cs
- HtmlInputImage.cs
- UnauthorizedAccessException.cs
- ModuleBuilderData.cs
- LineServicesCallbacks.cs
- MemberMaps.cs
- WebBrowserNavigatingEventHandler.cs
- ResXDataNode.cs
- HtmlUtf8RawTextWriter.cs
- CalendarAutoFormat.cs
- PowerStatus.cs
- Span.cs
- _Connection.cs
- PackagePart.cs
- XmlNodeChangedEventArgs.cs
- InternalConfigRoot.cs
- DropSourceBehavior.cs
- SizeKeyFrameCollection.cs
- unsafeIndexingFilterStream.cs
- dtdvalidator.cs
- XmlUtf8RawTextWriter.cs