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
- ControlEvent.cs
- CustomAttribute.cs
- TextEncodedRawTextWriter.cs
- HighlightVisual.cs
- EvidenceBase.cs
- CompiledRegexRunner.cs
- LookupNode.cs
- OleDbCommandBuilder.cs
- PublisherIdentityPermission.cs
- BaseTransportHeaders.cs
- ErrorLog.cs
- Stream.cs
- BaseConfigurationRecord.cs
- ExpressionEditorSheet.cs
- validation.cs
- ApplicationGesture.cs
- Process.cs
- UIElementIsland.cs
- ValueChangedEventManager.cs
- LedgerEntryCollection.cs
- Int64Converter.cs
- BlurEffect.cs
- backend.cs
- ListViewUpdatedEventArgs.cs
- ClusterRegistryConfigurationProvider.cs
- RangeBaseAutomationPeer.cs
- CommandEventArgs.cs
- OutputCacheProfile.cs
- ConfigXmlAttribute.cs
- CompiledAction.cs
- SubMenuStyleCollectionEditor.cs
- OracleDateTime.cs
- Point3DValueSerializer.cs
- URLAttribute.cs
- SmiXetterAccessMap.cs
- CqlLexerHelpers.cs
- DeviceContext2.cs
- IncrementalCompileAnalyzer.cs
- WindowsEditBoxRange.cs
- XPathScanner.cs
- WorkflowQueueInfo.cs
- FlowDocumentPaginator.cs
- ToolstripProfessionalRenderer.cs
- HybridDictionary.cs
- Delegate.cs
- SafeArchiveContext.cs
- XamlLoadErrorInfo.cs
- DataGridViewCellEventArgs.cs
- InternalConfigEventArgs.cs
- DragStartedEventArgs.cs
- DesignerSerializationVisibilityAttribute.cs
- Point.cs
- ResXBuildProvider.cs
- XmlSchemaAppInfo.cs
- RSAPKCS1SignatureFormatter.cs
- SettingsBindableAttribute.cs
- IApplicationTrustManager.cs
- UInt16Storage.cs
- RuleInfoComparer.cs
- EditorBrowsableAttribute.cs
- ObjectView.cs
- SafeRightsManagementPubHandle.cs
- AccessibilityHelperForXpWin2k3.cs
- DbMetaDataFactory.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- GeneratedView.cs
- ELinqQueryState.cs
- RegisteredExpandoAttribute.cs
- ConfigurationValues.cs
- MsmqHostedTransportConfiguration.cs
- PermissionToken.cs
- ThreadExceptionDialog.cs
- ColorConverter.cs
- ClusterRegistryConfigurationProvider.cs
- StreamInfo.cs
- ExpressionNode.cs
- MenuItem.cs
- SchemaNamespaceManager.cs
- listitem.cs
- KerberosTicketHashIdentifierClause.cs
- OleDbRowUpdatingEvent.cs
- DomNameTable.cs
- DashStyles.cs
- ProtocolsInstallComponent.cs
- XmlParserContext.cs
- SoapTypeAttribute.cs
- UnaryNode.cs
- ConstructorNeedsTagAttribute.cs
- FontSizeConverter.cs
- BasicKeyConstraint.cs
- RemotingConfigParser.cs
- WindowsUpDown.cs
- QilPatternFactory.cs
- TopClause.cs
- SamlAction.cs
- OdbcFactory.cs
- TextFormatter.cs
- TextEndOfSegment.cs
- PageSetupDialog.cs
- CompositeCollection.cs