Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- FeatureManager.cs
- Vars.cs
- KeyConstraint.cs
- BindingBase.cs
- ServiceBuildProvider.cs
- ButtonFieldBase.cs
- Stackframe.cs
- LineUtil.cs
- SHA256CryptoServiceProvider.cs
- GraphicsPath.cs
- DataGridViewRowEventArgs.cs
- InvokePattern.cs
- ResourcesChangeInfo.cs
- UrlRoutingModule.cs
- ToolStripDesignerAvailabilityAttribute.cs
- XPathDocument.cs
- OdbcEnvironmentHandle.cs
- TranslateTransform3D.cs
- Thumb.cs
- PropertiesTab.cs
- ReferenceConverter.cs
- WindowInteropHelper.cs
- DataServices.cs
- Page.cs
- JsonFormatReaderGenerator.cs
- OleDbCommand.cs
- SqlExpander.cs
- EnvironmentPermission.cs
- ManagedFilter.cs
- Group.cs
- JournalEntry.cs
- CellConstant.cs
- KnownTypeAttribute.cs
- FeatureSupport.cs
- Timeline.cs
- EventRoute.cs
- BamlTreeNode.cs
- ManagementObjectSearcher.cs
- ResumeStoryboard.cs
- HuffCodec.cs
- ListSourceHelper.cs
- HttpCookieCollection.cs
- DnsPermission.cs
- DragDrop.cs
- ThreadInterruptedException.cs
- SchemaLookupTable.cs
- ProcessModule.cs
- ImageList.cs
- BitmapEffectInputConnector.cs
- RTLAwareMessageBox.cs
- EngineSite.cs
- CompilerState.cs
- InvalidWMPVersionException.cs
- BinaryMethodMessage.cs
- ToolboxComponentsCreatedEventArgs.cs
- Vector3D.cs
- LockRenewalTask.cs
- ColorTranslator.cs
- ValidationRule.cs
- EditingMode.cs
- XmlSchemaComplexContentRestriction.cs
- DataListCommandEventArgs.cs
- EventManager.cs
- CommandDevice.cs
- VerticalAlignConverter.cs
- TextRangeEdit.cs
- Wizard.cs
- SynchronizationLockException.cs
- ISCIIEncoding.cs
- EntityCommandDefinition.cs
- IxmlLineInfo.cs
- MarkupCompilePass2.cs
- PageStatePersister.cs
- ServicesUtilities.cs
- MethodBody.cs
- ClientBuildManager.cs
- _NegoState.cs
- TextModifierScope.cs
- StylusPointPropertyUnit.cs
- DataGridCell.cs
- DataGridViewCellEventArgs.cs
- XamlFrame.cs
- WorkflowCommandExtensionItem.cs
- IsolatedStorageException.cs
- ChtmlLinkAdapter.cs
- XPathNodeHelper.cs
- DataGridViewRowEventArgs.cs
- TableProviderWrapper.cs
- XPathAncestorQuery.cs
- TargetException.cs
- XsltContext.cs
- StylusPlugin.cs
- HostSecurityManager.cs
- EncoderReplacementFallback.cs
- ToolStripContentPanelRenderEventArgs.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- NodeCounter.cs
- MethodBuilderInstantiation.cs
- AnimationTimeline.cs
- SerializableReadOnlyDictionary.cs