Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SerializationInfo.cs
- RegexNode.cs
- InkCanvasSelection.cs
- XPathException.cs
- VisualStateGroup.cs
- ActionMessageFilterTable.cs
- documentsequencetextpointer.cs
- EmbeddedObject.cs
- SerialErrors.cs
- SubpageParagraph.cs
- WebPartCollection.cs
- SessionStateSection.cs
- ListView.cs
- CmsUtils.cs
- XmlSerializerFactory.cs
- SemanticValue.cs
- XMLSchema.cs
- SignatureDescription.cs
- PenCursorManager.cs
- TextElementCollectionHelper.cs
- PassportPrincipal.cs
- Timer.cs
- XPathSelfQuery.cs
- AsymmetricKeyExchangeDeformatter.cs
- BitmapEffectGroup.cs
- GeometryHitTestResult.cs
- WebPartMinimizeVerb.cs
- EntityViewGenerationConstants.cs
- UIServiceHelper.cs
- GrabHandleGlyph.cs
- ThrowHelper.cs
- TextRunCacheImp.cs
- CodeSnippetCompileUnit.cs
- dataSvcMapFileLoader.cs
- HtmlInputButton.cs
- ToolBar.cs
- DataGridViewBand.cs
- ListDataBindEventArgs.cs
- ConfigurationSchemaErrors.cs
- ConvertTextFrag.cs
- DataView.cs
- TextSimpleMarkerProperties.cs
- CommandPlan.cs
- BinaryConverter.cs
- SQLInt64Storage.cs
- DocumentGrid.cs
- ToolStripSettings.cs
- DataSourceSelectArguments.cs
- BitmapEffectDrawing.cs
- WebControlsSection.cs
- NodeInfo.cs
- Pair.cs
- Trace.cs
- WebException.cs
- StringSorter.cs
- TypeSystemProvider.cs
- WebPartDisplayModeCollection.cs
- HostProtectionPermission.cs
- LinqDataSourceDisposeEventArgs.cs
- MessageDroppedTraceRecord.cs
- RedirectionProxy.cs
- WorkflowApplicationUnloadedException.cs
- ToolStripComboBox.cs
- EntityDataSourceValidationException.cs
- URLAttribute.cs
- Vector3DAnimation.cs
- ViewStateChangedEventArgs.cs
- AsyncOperation.cs
- Single.cs
- IPEndPointCollection.cs
- ListViewInsertEventArgs.cs
- CompoundFileDeflateTransform.cs
- ContainerAction.cs
- DtdParser.cs
- ConnectionPoint.cs
- TdsParserHelperClasses.cs
- CqlQuery.cs
- ChtmlPageAdapter.cs
- CollectionView.cs
- CompilerScope.cs
- ToolTipService.cs
- UIAgentMonitor.cs
- TableCell.cs
- DBBindings.cs
- AssociationType.cs
- DetailsViewRowCollection.cs
- HttpListenerResponse.cs
- SecureEnvironment.cs
- TableRow.cs
- BitmapCodecInfo.cs
- ModelItemKeyValuePair.cs
- FixedPageAutomationPeer.cs
- Process.cs
- Attribute.cs
- CheckBox.cs
- securitycriticaldataClass.cs
- SequentialWorkflowHeaderFooter.cs
- OdbcConnectionFactory.cs
- ResetableIterator.cs
- WhitespaceRuleLookup.cs