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
- GC.cs
- HtmlInputSubmit.cs
- Debug.cs
- SchemaMerger.cs
- InfoCardPolicy.cs
- Control.cs
- TrackingStringDictionary.cs
- ContentIterators.cs
- ConfigurationSettings.cs
- EntityDataReader.cs
- ConfigXmlComment.cs
- RepeatButtonAutomationPeer.cs
- ConfigurationSectionCollection.cs
- NodeFunctions.cs
- WorkflowInstanceExtensionProvider.cs
- __ComObject.cs
- FlowDocumentScrollViewer.cs
- RNGCryptoServiceProvider.cs
- FactoryMaker.cs
- ArcSegment.cs
- ClientConfigPaths.cs
- RectConverter.cs
- JsonCollectionDataContract.cs
- LabelDesigner.cs
- X509CertificateInitiatorClientCredential.cs
- HttpApplication.cs
- ConfigurationLocation.cs
- MenuEventArgs.cs
- DelegatingTypeDescriptionProvider.cs
- ImageUrlEditor.cs
- DesignerForm.cs
- ApplicationDirectoryMembershipCondition.cs
- Config.cs
- ReadOnlyCollection.cs
- RelOps.cs
- TagPrefixCollection.cs
- MetadataArtifactLoaderFile.cs
- BaseTreeIterator.cs
- CardSpaceShim.cs
- ResourceContainerWrapper.cs
- AsyncResult.cs
- BridgeDataRecord.cs
- Char.cs
- Property.cs
- BrowserTree.cs
- GenericEnumerator.cs
- WizardDesigner.cs
- CompletedAsyncResult.cs
- SqlDataSourceParameterParser.cs
- ComboBoxHelper.cs
- EntityContainerEntitySet.cs
- InstallerTypeAttribute.cs
- WindowsFormsLinkLabel.cs
- UnauthorizedAccessException.cs
- QilNode.cs
- SerializeAbsoluteContext.cs
- BackgroundWorker.cs
- TransferRequestHandler.cs
- AttachmentCollection.cs
- AppDomainAttributes.cs
- HwndKeyboardInputProvider.cs
- XPathNodeInfoAtom.cs
- AsyncInvokeContext.cs
- FlowPosition.cs
- WorkflowOperationAsyncResult.cs
- DataGridViewColumnCollection.cs
- safex509handles.cs
- MexTcpBindingElement.cs
- HwndSubclass.cs
- Deflater.cs
- SocketPermission.cs
- OdbcRowUpdatingEvent.cs
- SpeechRecognitionEngine.cs
- FocusTracker.cs
- LinkedResource.cs
- XmlLinkedNode.cs
- WmlLinkAdapter.cs
- SoapElementAttribute.cs
- InternalException.cs
- DispatcherExceptionFilterEventArgs.cs
- WindowsServiceCredential.cs
- MissingSatelliteAssemblyException.cs
- TypedElement.cs
- ComponentResourceKeyConverter.cs
- DispatchProxy.cs
- QueuePathEditor.cs
- ApplicationId.cs
- DateTimePicker.cs
- XamlContextStack.cs
- JsonClassDataContract.cs
- Point3D.cs
- ToolStripItemTextRenderEventArgs.cs
- _NegoState.cs
- RotateTransform.cs
- SlotInfo.cs
- MetadataCacheItem.cs
- LicFileLicenseProvider.cs
- DeclaredTypeValidatorAttribute.cs
- AppliedDeviceFiltersEditor.cs
- XmlSchemaDocumentation.cs