Code:
/ DotNET / DotNET / 8.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
- TextEndOfLine.cs
- XPathNodePointer.cs
- FileVersionInfo.cs
- DriveInfo.cs
- InputElement.cs
- ViewBox.cs
- DocumentOrderComparer.cs
- SimpleRecyclingCache.cs
- SessionChannels.cs
- SmtpFailedRecipientsException.cs
- SamlEvidence.cs
- HMACSHA512.cs
- DataServices.cs
- EntityWithKeyStrategy.cs
- LinqDataSource.cs
- RequestTimeoutManager.cs
- PageTheme.cs
- CacheAxisQuery.cs
- X509Certificate2Collection.cs
- PerformanceCounterPermission.cs
- ListViewPagedDataSource.cs
- CurrentChangedEventManager.cs
- InputScope.cs
- BitStack.cs
- SqlDataSourceSelectingEventArgs.cs
- UnsafeNativeMethods.cs
- WorkflowPrinting.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- XmlSchemaElement.cs
- ElementAction.cs
- LocationUpdates.cs
- _AutoWebProxyScriptWrapper.cs
- ClientScriptManagerWrapper.cs
- XmlSchemaAttribute.cs
- QilList.cs
- ItemsPanelTemplate.cs
- ConfigurationManagerInternal.cs
- IxmlLineInfo.cs
- X509IssuerSerialKeyIdentifierClause.cs
- _Rfc2616CacheValidators.cs
- InputBindingCollection.cs
- RequestCacheEntry.cs
- UnaryNode.cs
- Sequence.cs
- DtrList.cs
- FamilyTypefaceCollection.cs
- VariableQuery.cs
- UnsafeNativeMethods.cs
- WeakReferenceEnumerator.cs
- SqlServer2KCompatibilityCheck.cs
- ServicePointManagerElement.cs
- BinaryCommonClasses.cs
- ISFClipboardData.cs
- IItemContainerGenerator.cs
- CollectionDataContractAttribute.cs
- TextMessageEncoder.cs
- MSAAWinEventWrap.cs
- CurrentChangedEventManager.cs
- InlineObject.cs
- DataGridViewCellCollection.cs
- DataSvcMapFile.cs
- AutoCompleteStringCollection.cs
- HttpBrowserCapabilitiesBase.cs
- NameValueConfigurationElement.cs
- WebSysDefaultValueAttribute.cs
- WindowsFont.cs
- ImportCatalogPart.cs
- FixedSOMLineCollection.cs
- TreeView.cs
- RawStylusInputCustomDataList.cs
- CommonRemoteMemoryBlock.cs
- SecuritySessionClientSettings.cs
- XmlCharCheckingReader.cs
- CodeSnippetTypeMember.cs
- StreamingContext.cs
- ColorBuilder.cs
- CompositeDataBoundControl.cs
- SqlDataAdapter.cs
- DelegatingHeader.cs
- BaseCodePageEncoding.cs
- SourceSwitch.cs
- TemplatePagerField.cs
- HttpErrorTraceRecord.cs
- EventNotify.cs
- SmtpNtlmAuthenticationModule.cs
- path.cs
- Win32MouseDevice.cs
- CodeCompiler.cs
- DataGridAddNewRow.cs
- RegexNode.cs
- DiscoveryClientChannelFactory.cs
- EventLogPermission.cs
- HyperLinkField.cs
- Error.cs
- TimerElapsedEvenArgs.cs
- EntityDataSourceWizardForm.cs
- SharedPerformanceCounter.cs
- PrintPreviewGraphics.cs
- FieldNameLookup.cs
- FieldMetadata.cs