Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebControls / EmptyStringExpandableObjectConverter.cs / 1 / EmptyStringExpandableObjectConverter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.ComponentModel; using System.Globalization; using System.Security.Permissions; ////// Converts an object to String.Empty so it looks better in the designer property grid. /// internal sealed class EmptyStringExpandableObjectConverter : ExpandableObjectConverter { ////// Returns String.Empty so the object looks better in the designer property grid. /// public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { if (destinationType == typeof(string)) { return String.Empty; } throw GetConvertToException(value, destinationType); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DefaultBindingPropertyAttribute.cs
- SectionInformation.cs
- DesignerActionTextItem.cs
- GenericNameHandler.cs
- CodeAttributeArgument.cs
- xmlsaver.cs
- ObjectDataProvider.cs
- SystemColorTracker.cs
- ObjectManager.cs
- ConsoleKeyInfo.cs
- SortableBindingList.cs
- UnsafeNativeMethods.cs
- BaseValidator.cs
- httpserverutility.cs
- SizeKeyFrameCollection.cs
- FilterEventArgs.cs
- CalendarDay.cs
- TypeConverters.cs
- LocationSectionRecord.cs
- UserPersonalizationStateInfo.cs
- ImageButton.cs
- XamlClipboardData.cs
- NameScopePropertyAttribute.cs
- SmiRequestExecutor.cs
- DynamicResourceExtensionConverter.cs
- ControlUtil.cs
- BookmarkScopeManager.cs
- ConfigurationFileMap.cs
- Freezable.cs
- TreeNodeEventArgs.cs
- SelectorAutomationPeer.cs
- BinarySerializer.cs
- WindowPattern.cs
- DebugController.cs
- WindowsStartMenu.cs
- SiteMembershipCondition.cs
- ZoneButton.cs
- XmlCountingReader.cs
- ExpressionEditorAttribute.cs
- StackSpiller.Generated.cs
- NameValuePair.cs
- ContractType.cs
- VirtualPath.cs
- LinqDataSourceUpdateEventArgs.cs
- DrawingImage.cs
- StorageMappingFragment.cs
- PropertyPathConverter.cs
- Preprocessor.cs
- RedistVersionInfo.cs
- InstanceDataCollection.cs
- GridViewRowEventArgs.cs
- TypeName.cs
- ContentType.cs
- AddInContractAttribute.cs
- UrlMappingsSection.cs
- ContainerSelectorBehavior.cs
- HuffmanTree.cs
- MappingSource.cs
- OciLobLocator.cs
- Debugger.cs
- PkcsUtils.cs
- DataObject.cs
- IdentifierCreationService.cs
- List.cs
- ConsoleKeyInfo.cs
- DataComponentGenerator.cs
- ServiceBuildProvider.cs
- EpmSyndicationContentDeSerializer.cs
- RemoteWebConfigurationHostStream.cs
- SettingsSavedEventArgs.cs
- DBSchemaRow.cs
- FieldBuilder.cs
- ListBindingConverter.cs
- WindowsAuthenticationModule.cs
- ExtensionQuery.cs
- ForeignConstraint.cs
- ManagedIStream.cs
- Guid.cs
- PointCollection.cs
- DataServiceRequestOfT.cs
- _BufferOffsetSize.cs
- CodeTypeParameter.cs
- PrinterUnitConvert.cs
- SafeNativeMethodsCLR.cs
- KeyProperty.cs
- ITextView.cs
- DataTable.cs
- GetChildSubtree.cs
- XmlText.cs
- ChangePasswordAutoFormat.cs
- HttpListenerPrefixCollection.cs
- ExpressionPrefixAttribute.cs
- MsmqTransportElement.cs
- CodePageEncoding.cs
- AssemblyBuilderData.cs
- IndexingContentUnit.cs
- DataListItemEventArgs.cs
- SectionInput.cs
- coordinatorscratchpad.cs
- GridLength.cs