Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- DbConnectionPoolOptions.cs
- CustomTypeDescriptor.cs
- Geometry3D.cs
- WizardStepCollectionEditor.cs
- FrameworkTemplate.cs
- EntityObject.cs
- ExpressionDumper.cs
- RenderDataDrawingContext.cs
- FacetValueContainer.cs
- Empty.cs
- ResourcePart.cs
- MultipleViewPattern.cs
- DragAssistanceManager.cs
- ColumnReorderedEventArgs.cs
- SafeHandles.cs
- SHA1CryptoServiceProvider.cs
- DrawingImage.cs
- ObjectNotFoundException.cs
- HandledEventArgs.cs
- UTF32Encoding.cs
- LinqDataSourceSelectEventArgs.cs
- XmlIlGenerator.cs
- SimpleExpression.cs
- TextServicesPropertyRanges.cs
- OdbcCommandBuilder.cs
- RuleRef.cs
- TableSectionStyle.cs
- TableLayoutCellPaintEventArgs.cs
- SecurityAppliedMessage.cs
- DBConnection.cs
- ControlAdapter.cs
- LineServicesRun.cs
- TextServicesManager.cs
- VersionedStream.cs
- ViewManagerAttribute.cs
- RichTextBox.cs
- StrokeNodeOperations2.cs
- SchemaConstraints.cs
- TextTreeTextBlock.cs
- WindowsListViewSubItem.cs
- PropertyBuilder.cs
- WebScriptEnablingElement.cs
- DbTypeMap.cs
- IPAddress.cs
- DirectionalLight.cs
- CompositeClientFormatter.cs
- SqlOuterApplyReducer.cs
- ProxyGenerator.cs
- XpsManager.cs
- XPathNodePointer.cs
- ClientRuntimeConfig.cs
- XmlParserContext.cs
- ColumnResult.cs
- RowToFieldTransformer.cs
- SafeProcessHandle.cs
- JsonWriter.cs
- CheckBoxRenderer.cs
- DesignerActionItemCollection.cs
- JournalEntry.cs
- HostProtectionException.cs
- SQLByteStorage.cs
- BypassElement.cs
- SpanIndex.cs
- ThicknessAnimation.cs
- ComponentRenameEvent.cs
- MatrixConverter.cs
- MenuAdapter.cs
- DeobfuscatingStream.cs
- Hashtable.cs
- EntityContainer.cs
- RMEnrollmentPage2.cs
- XmlSchemaInclude.cs
- DoubleAnimationClockResource.cs
- TextRangeBase.cs
- UnsafeNativeMethodsCLR.cs
- BufferAllocator.cs
- ADRoleFactory.cs
- WeakReference.cs
- sqlcontext.cs
- UnsafeNativeMethods.cs
- ZoneButton.cs
- ThumbAutomationPeer.cs
- HttpConfigurationContext.cs
- SignedXml.cs
- DataGridTable.cs
- NativeWindow.cs
- VisualBrush.cs
- MenuCommandsChangedEventArgs.cs
- BuilderInfo.cs
- HostSecurityManager.cs
- StrokeNodeData.cs
- FloatUtil.cs
- MimeBasePart.cs
- EllipseGeometry.cs
- PerformanceCounterCategory.cs
- XmlReaderSettings.cs
- DLinqColumnProvider.cs
- Vector.cs
- Type.cs
- MultilineStringConverter.cs