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
- DetailsViewModeEventArgs.cs
- ValidatorAttribute.cs
- KeyNotFoundException.cs
- CodeMethodInvokeExpression.cs
- JsonWriter.cs
- CryptoApi.cs
- ReflectionServiceProvider.cs
- TextRenderer.cs
- LocatorBase.cs
- RemotingException.cs
- DirectoryInfo.cs
- BasicHttpBindingElement.cs
- ProfilePropertySettingsCollection.cs
- TypeName.cs
- LogExtent.cs
- SortedList.cs
- ThreadExceptionEvent.cs
- serverconfig.cs
- XslVisitor.cs
- XmlILAnnotation.cs
- SafeLocalMemHandle.cs
- EventBuilder.cs
- CodeAttributeArgument.cs
- PropertyGridEditorPart.cs
- CheckBoxFlatAdapter.cs
- Single.cs
- BaseTransportHeaders.cs
- EditorZoneDesigner.cs
- _ProxyChain.cs
- GridViewHeaderRowPresenter.cs
- WorkflowTransactionService.cs
- ReadOnlyHierarchicalDataSource.cs
- DBPropSet.cs
- TypeNameParser.cs
- SqlTopReducer.cs
- Attachment.cs
- securitycriticaldataformultiplegetandset.cs
- Adorner.cs
- XmlSchemaObject.cs
- ListControl.cs
- SendMessageChannelCache.cs
- TabletDeviceInfo.cs
- AppLevelCompilationSectionCache.cs
- ObjectView.cs
- XmlAutoDetectWriter.cs
- DataGridViewHitTestInfo.cs
- SystemDiagnosticsSection.cs
- GraphicsContainer.cs
- DockPattern.cs
- PtsContext.cs
- DBParameter.cs
- KerberosSecurityTokenProvider.cs
- HintTextConverter.cs
- StringConcat.cs
- XmlSchemaSubstitutionGroup.cs
- AssemblyName.cs
- ResourceType.cs
- Rect.cs
- ExtendedProperty.cs
- Size.cs
- SlotInfo.cs
- ReachPageContentCollectionSerializerAsync.cs
- IndexObject.cs
- MembershipPasswordException.cs
- FileLogRecordHeader.cs
- RemotingAttributes.cs
- Formatter.cs
- ValidationHelper.cs
- BitmapCodecInfoInternal.cs
- ErrorProvider.cs
- LongValidatorAttribute.cs
- BaseTemplatedMobileComponentEditor.cs
- XmlWrappingReader.cs
- IDictionary.cs
- HybridDictionary.cs
- PropertyTabChangedEvent.cs
- DataGridViewColumnEventArgs.cs
- LassoSelectionBehavior.cs
- TypeBuilder.cs
- HtmlInputFile.cs
- ModulesEntry.cs
- SQLMembershipProvider.cs
- SingleConverter.cs
- DocumentSequenceHighlightLayer.cs
- _NtlmClient.cs
- XomlCompilerError.cs
- DataComponentGenerator.cs
- XmlAttributeHolder.cs
- _NtlmClient.cs
- ScrollPattern.cs
- StorageSetMapping.cs
- DesignerEditorPartChrome.cs
- MetaModel.cs
- ObjectStateManagerMetadata.cs
- ListControl.cs
- RequestCacheEntry.cs
- MarkupCompilePass2.cs
- ClientBuildManager.cs
- ExpressionBindings.cs
- CodeEventReferenceExpression.cs