Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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); } } } // 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
- HwndHost.cs
- ScriptRegistrationManager.cs
- ArrangedElementCollection.cs
- DataBindingExpressionBuilder.cs
- EntityViewGenerationConstants.cs
- SocketCache.cs
- GeometryHitTestParameters.cs
- ZoneLinkButton.cs
- MetadataProperty.cs
- ScriptMethodAttribute.cs
- DbProviderSpecificTypePropertyAttribute.cs
- FileUtil.cs
- ArrayElementGridEntry.cs
- TrustSection.cs
- TrackBar.cs
- DataObjectFieldAttribute.cs
- SourceFileInfo.cs
- CroppedBitmap.cs
- XmlSchemaComplexType.cs
- DataGridViewRowCollection.cs
- LoginView.cs
- WarningException.cs
- ChameleonKey.cs
- InputBinding.cs
- WebPartTransformer.cs
- Solver.cs
- ThreadExceptionEvent.cs
- shaper.cs
- IndexerNameAttribute.cs
- InfoCardRSACryptoProvider.cs
- PopupRootAutomationPeer.cs
- TouchesOverProperty.cs
- LoginCancelEventArgs.cs
- MailWriter.cs
- TemplateBuilder.cs
- hwndwrapper.cs
- SynchronizationContext.cs
- XmlSchemaType.cs
- XmlUtf8RawTextWriter.cs
- RSAOAEPKeyExchangeDeformatter.cs
- WebMessageEncodingBindingElement.cs
- OracleString.cs
- IPHostEntry.cs
- nulltextcontainer.cs
- ResXResourceSet.cs
- SqlInternalConnectionSmi.cs
- UserControlFileEditor.cs
- GridViewDeletedEventArgs.cs
- XmlSchemaAny.cs
- CodeDirectiveCollection.cs
- ReadWriteObjectLock.cs
- PictureBox.cs
- ApplicationCommands.cs
- AuthorizationRuleCollection.cs
- Rect3DValueSerializer.cs
- LinkLabel.cs
- OutputCacheSettingsSection.cs
- QualifiedCellIdBoolean.cs
- COM2Properties.cs
- SelfIssuedSamlTokenFactory.cs
- RegexCode.cs
- UpdatePanel.cs
- __TransparentProxy.cs
- BitArray.cs
- CompilerGeneratedAttribute.cs
- ContentFilePart.cs
- ComboBoxItem.cs
- ProtocolsSection.cs
- InputDevice.cs
- DataGridViewCellCollection.cs
- AutomationPatternInfo.cs
- _NegotiateClient.cs
- WindowsTooltip.cs
- BindingNavigator.cs
- DisplayInformation.cs
- StateMachineTimers.cs
- XPathNavigator.cs
- PeerNameRecord.cs
- CodeMemberProperty.cs
- SecurityPermission.cs
- UserUseLicenseDictionaryLoader.cs
- ContractMethodParameterInfo.cs
- AttributeUsageAttribute.cs
- XmlDeclaration.cs
- TextServicesCompartment.cs
- PointConverter.cs
- Asn1IntegerConverter.cs
- QuotedPrintableStream.cs
- WebPartTracker.cs
- AssemblyAttributesGoHere.cs
- DataServiceEntityAttribute.cs
- WebConfigurationManager.cs
- ArrayExtension.cs
- DataGridViewAdvancedBorderStyle.cs
- Script.cs
- ConstructorNeedsTagAttribute.cs
- TextStore.cs
- ImagingCache.cs
- AutomationPatternInfo.cs
- wgx_commands.cs