Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / EmptyStringExpandableObjectConverter.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MenuItemStyleCollection.cs
- RecognizedWordUnit.cs
- TextCollapsingProperties.cs
- SHA512Managed.cs
- BitStream.cs
- TextFormatter.cs
- TrackingServices.cs
- DataGridViewRowPrePaintEventArgs.cs
- InputReport.cs
- ParagraphResult.cs
- LiteralText.cs
- HttpCachePolicy.cs
- MetafileHeaderWmf.cs
- DataGridCommandEventArgs.cs
- XmlQueryRuntime.cs
- DataGridPageChangedEventArgs.cs
- DataSvcMapFile.cs
- ListViewEditEventArgs.cs
- TimeZoneInfo.cs
- AutomationPatternInfo.cs
- Int16Storage.cs
- DesignerView.Commands.cs
- SrgsNameValueTag.cs
- ArrangedElementCollection.cs
- ValidationHelper.cs
- WebPartCatalogCloseVerb.cs
- MultiBindingExpression.cs
- XmlObjectSerializerReadContextComplex.cs
- HtmlTextArea.cs
- RuleRefElement.cs
- ISessionStateStore.cs
- ColorContext.cs
- TransactionException.cs
- OutputScopeManager.cs
- LambdaCompiler.cs
- ArglessEventHandlerProxy.cs
- SqlDataSourceQueryEditor.cs
- SoapIgnoreAttribute.cs
- Update.cs
- DataGridViewIntLinkedList.cs
- ResXResourceWriter.cs
- DocumentOrderQuery.cs
- ResourceProviderFactory.cs
- AccessDataSource.cs
- SectionInput.cs
- ExtenderProvidedPropertyAttribute.cs
- RequestTimeoutManager.cs
- DataGridColumnCollection.cs
- ServiceTimeoutsBehavior.cs
- ButtonAutomationPeer.cs
- IndexerNameAttribute.cs
- NativeCppClassAttribute.cs
- QilVisitor.cs
- infer.cs
- Matrix.cs
- FormattedTextSymbols.cs
- CollectionsUtil.cs
- WindowsHyperlink.cs
- WsrmFault.cs
- ActivityDesignerHelper.cs
- IDictionary.cs
- EditorPart.cs
- ObjectListDataBindEventArgs.cs
- GenericXmlSecurityTokenAuthenticator.cs
- EnumValidator.cs
- MemoryStream.cs
- CommandBindingCollection.cs
- EventLogRecord.cs
- XmlILTrace.cs
- ListDictionary.cs
- securitymgrsite.cs
- DataViewSettingCollection.cs
- HtmlTitle.cs
- SecureUICommand.cs
- BamlTreeUpdater.cs
- FontStretches.cs
- PropertyTabAttribute.cs
- Journaling.cs
- XamlClipboardData.cs
- MimeTypePropertyAttribute.cs
- GuidelineCollection.cs
- InitializingNewItemEventArgs.cs
- IncomingWebResponseContext.cs
- StylusShape.cs
- __ConsoleStream.cs
- ExecutionPropertyManager.cs
- ErrorStyle.cs
- TemplateNameScope.cs
- NetworkInformationException.cs
- QilNode.cs
- CombinedGeometry.cs
- CommandLineParser.cs
- SmtpReplyReader.cs
- InputScopeAttribute.cs
- Model3D.cs
- ByteStreamGeometryContext.cs
- XmlException.cs
- ProcessManager.cs
- ErrorProvider.cs
- DeploymentSectionCache.cs