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
- CompilationSection.cs
- DbConnectionPool.cs
- Accessors.cs
- OdbcConnectionFactory.cs
- Transform.cs
- UInt16.cs
- BaseParagraph.cs
- GridViewRowCollection.cs
- DescendantBaseQuery.cs
- XmlNodeComparer.cs
- _SingleItemRequestCache.cs
- EncoderParameter.cs
- Style.cs
- DigestTraceRecordHelper.cs
- clipboard.cs
- KeyInterop.cs
- IdentityNotMappedException.cs
- BindingElement.cs
- TreeNode.cs
- TypeConverter.cs
- WorkflowViewManager.cs
- RequestCacheManager.cs
- PEFileReader.cs
- DeviceContext2.cs
- TreeViewImageKeyConverter.cs
- GcSettings.cs
- AttachInfo.cs
- SoapReflector.cs
- CallSiteOps.cs
- COM2PropertyDescriptor.cs
- WebBrowserEvent.cs
- odbcmetadatafactory.cs
- PtsContext.cs
- CountAggregationOperator.cs
- StatusBar.cs
- FlowDocumentPaginator.cs
- XMLSyntaxException.cs
- XmlSchemaImport.cs
- NonClientArea.cs
- CommandValueSerializer.cs
- ReaderWriterLock.cs
- IBuiltInEvidence.cs
- AccessorTable.cs
- TCEAdapterGenerator.cs
- ReadOnlyAttribute.cs
- EventInfo.cs
- DataShape.cs
- UnauthorizedWebPart.cs
- MethodCallConverter.cs
- CodeArgumentReferenceExpression.cs
- RTTypeWrapper.cs
- SrgsElementFactory.cs
- SchemaTableColumn.cs
- PrimitiveCodeDomSerializer.cs
- AdRotator.cs
- XmlSchemaSimpleTypeList.cs
- streamingZipPartStream.cs
- BitmapImage.cs
- Vector3dCollection.cs
- ProtocolsConfigurationEntry.cs
- Debug.cs
- ValueType.cs
- SetIndexBinder.cs
- CheckBoxStandardAdapter.cs
- ColumnMapVisitor.cs
- LocationReferenceValue.cs
- RangeValueProviderWrapper.cs
- MimeFormImporter.cs
- SafeCryptoHandles.cs
- SplitterPanel.cs
- RelationshipManager.cs
- Attributes.cs
- CreateRefExpr.cs
- OrthographicCamera.cs
- WeakReferenceList.cs
- InterleavedZipPartStream.cs
- DBCommandBuilder.cs
- XmlAttributes.cs
- EmptyStringExpandableObjectConverter.cs
- KnownTypes.cs
- CssClassPropertyAttribute.cs
- PerformanceCounterManager.cs
- DataSourceView.cs
- SelfIssuedAuthProofToken.cs
- EditorBrowsableAttribute.cs
- StringFunctions.cs
- XmlEncoding.cs
- Preprocessor.cs
- Enumerable.cs
- ConfigurationManagerHelperFactory.cs
- DecimalAnimation.cs
- OleDbDataReader.cs
- DBConnection.cs
- Parser.cs
- CheckBoxField.cs
- Helpers.cs
- ToolStripHighContrastRenderer.cs
- SrgsDocumentParser.cs
- OptimisticConcurrencyException.cs
- HtmlButton.cs