Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- CacheEntry.cs
- DataFormats.cs
- CommandHelpers.cs
- TextServicesProperty.cs
- EncodingNLS.cs
- Win32.cs
- RelAssertionDirectKeyIdentifierClause.cs
- XDRSchema.cs
- DesignSurface.cs
- MaxSessionCountExceededException.cs
- LocationReferenceEnvironment.cs
- RouteCollection.cs
- EventMemberCodeDomSerializer.cs
- IsolatedStorage.cs
- PeerTransportCredentialType.cs
- Buffer.cs
- UserUseLicenseDictionaryLoader.cs
- ObjectViewListener.cs
- ModelTreeManager.cs
- TextParaClient.cs
- DbException.cs
- TdsParserSafeHandles.cs
- GenericPrincipal.cs
- XmlDictionaryReaderQuotas.cs
- RegexTree.cs
- StringCollection.cs
- WriterOutput.cs
- TryCatch.cs
- LinkTarget.cs
- FileDialog.cs
- EntityWrapper.cs
- GifBitmapEncoder.cs
- ConnectionString.cs
- DefaultParameterValueAttribute.cs
- LambdaCompiler.Generated.cs
- PeerPresenceInfo.cs
- ToggleButton.cs
- QueryCacheKey.cs
- _HeaderInfoTable.cs
- MSAANativeProvider.cs
- XmlDesigner.cs
- CompilerLocalReference.cs
- TypeUnloadedException.cs
- HtmlProps.cs
- regiisutil.cs
- BamlLocalizableResourceKey.cs
- ServerIdentity.cs
- DefinitionUpdate.cs
- ColorContextHelper.cs
- Perspective.cs
- CultureInfo.cs
- SecurityPolicySection.cs
- OuterGlowBitmapEffect.cs
- VectorValueSerializer.cs
- LocatorPart.cs
- UserControl.cs
- SHA512Managed.cs
- Int16Animation.cs
- Region.cs
- DetailsViewUpdateEventArgs.cs
- AspNetCacheProfileAttribute.cs
- ObjectConverter.cs
- Point3D.cs
- AdPostCacheSubstitution.cs
- TextBounds.cs
- DynamicPhysicalDiscoSearcher.cs
- ContainerTracking.cs
- AnnotationResourceChangedEventArgs.cs
- fixedPageContentExtractor.cs
- ReflectionUtil.cs
- TemplatedMailWebEventProvider.cs
- CodeIterationStatement.cs
- AspNetRouteServiceHttpHandler.cs
- TransportManager.cs
- NotifyIcon.cs
- MenuAdapter.cs
- Speller.cs
- DetailsViewPageEventArgs.cs
- PermissionListSet.cs
- EmptyCollection.cs
- Misc.cs
- VisualBrush.cs
- XmlChildNodes.cs
- CorePropertiesFilter.cs
- StylusButtonEventArgs.cs
- SafeUserTokenHandle.cs
- ParserHooks.cs
- XmlSchemaDocumentation.cs
- MSHTMLHost.cs
- ReceiveContent.cs
- StreamMarshaler.cs
- WebPartEditorCancelVerb.cs
- AuthenticationService.cs
- DateBoldEvent.cs
- UnauthorizedWebPart.cs
- DropDownButton.cs
- XamlVector3DCollectionSerializer.cs
- baseshape.cs
- CodeCastExpression.cs
- CacheAxisQuery.cs