Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SafePipeHandle.cs
- PrintingPermission.cs
- DataGridViewHitTestInfo.cs
- MaskedTextBoxTextEditorDropDown.cs
- TrustSection.cs
- SelfIssuedAuthRSAPKCS1SignatureDeformatter.cs
- MemberAssignment.cs
- SqlStream.cs
- XmlUrlEditor.cs
- WebServiceEnumData.cs
- SqlParameter.cs
- CodeTypeReference.cs
- PropertyPath.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- TableLayoutColumnStyleCollection.cs
- Form.cs
- CustomErrorsSectionWrapper.cs
- MutableAssemblyCacheEntry.cs
- Win32PrintDialog.cs
- TypeConverterHelper.cs
- IsolatedStorageFile.cs
- BindingCompleteEventArgs.cs
- UIElementCollection.cs
- DecoderBestFitFallback.cs
- RelationshipFixer.cs
- SchemaElement.cs
- DirectoryObjectSecurity.cs
- VectorAnimationBase.cs
- RijndaelManagedTransform.cs
- Int16Storage.cs
- EventHandlerList.cs
- CultureTableRecord.cs
- AsyncCompletedEventArgs.cs
- WpfXamlType.cs
- EntityProviderFactory.cs
- MarkerProperties.cs
- Size3DValueSerializer.cs
- HostedImpersonationContext.cs
- SmtpFailedRecipientException.cs
- xmlglyphRunInfo.cs
- StandardCommands.cs
- DivideByZeroException.cs
- SimpleFileLog.cs
- DataListItemCollection.cs
- ActivityValidator.cs
- Geometry.cs
- ControlIdConverter.cs
- EntryPointNotFoundException.cs
- HashHelpers.cs
- WsiProfilesElement.cs
- MenuItemStyleCollection.cs
- Helper.cs
- XmlILModule.cs
- ProxyAttribute.cs
- SizeIndependentAnimationStorage.cs
- MimeWriter.cs
- PolicyException.cs
- ScrollContentPresenter.cs
- Light.cs
- RadioButton.cs
- ProviderConnectionPointCollection.cs
- TreeNodeMouseHoverEvent.cs
- SiteMapSection.cs
- BoundConstants.cs
- StrongNameIdentityPermission.cs
- RouteCollection.cs
- ExceptionUtil.cs
- DocumentApplicationJournalEntry.cs
- IncrementalReadDecoders.cs
- FontCollection.cs
- WCFBuildProvider.cs
- PocoPropertyAccessorStrategy.cs
- CultureTableRecord.cs
- SqlClientWrapperSmiStreamChars.cs
- ResXDataNode.cs
- BooleanToVisibilityConverter.cs
- HtmlTextArea.cs
- namescope.cs
- Errors.cs
- TemplateBuilder.cs
- CodeAccessSecurityEngine.cs
- ConfigViewGenerator.cs
- CqlQuery.cs
- NamespaceQuery.cs
- OleDbParameterCollection.cs
- PropertyState.cs
- ErrorHandlerFaultInfo.cs
- SqlDuplicator.cs
- HttpCachePolicyElement.cs
- WorkflowControlClient.cs
- ConfigPathUtility.cs
- ApplicationFileParser.cs
- XmlAnyAttributeAttribute.cs
- ParameterReplacerVisitor.cs
- InvalidOperationException.cs
- FixedLineResult.cs
- Pair.cs
- AssemblyInfo.cs
- WorkflowQueuingService.cs
- RegexCaptureCollection.cs