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
- HyperLinkField.cs
- ZoomingMessageFilter.cs
- VectorCollectionValueSerializer.cs
- Vector3D.cs
- DataServiceRequest.cs
- EncodingTable.cs
- WinInetCache.cs
- MatrixTransform3D.cs
- NotifyCollectionChangedEventArgs.cs
- TreeViewImageIndexConverter.cs
- DesignerSerializerAttribute.cs
- NotifyCollectionChangedEventArgs.cs
- DataObjectPastingEventArgs.cs
- Reference.cs
- SetIterators.cs
- GPRECT.cs
- DataGridCellsPresenter.cs
- MetadataHelper.cs
- SerializationInfo.cs
- Descriptor.cs
- SimpleBitVector32.cs
- TimerElapsedEvenArgs.cs
- RawMouseInputReport.cs
- PrincipalPermission.cs
- LinkedResourceCollection.cs
- ColorTranslator.cs
- ServerReliableChannelBinder.cs
- PerformanceCounter.cs
- AccessDataSourceView.cs
- UnsafeNativeMethods.cs
- Sql8ExpressionRewriter.cs
- ChameleonKey.cs
- LabelInfo.cs
- ProfileInfo.cs
- METAHEADER.cs
- WCFServiceClientProxyGenerator.cs
- PropVariant.cs
- ValidationSettings.cs
- ToolStripDropDownMenu.cs
- TextEffectCollection.cs
- RoutedEvent.cs
- IOThreadScheduler.cs
- UnionExpr.cs
- TextAutomationPeer.cs
- EntitySet.cs
- ReferencedType.cs
- Timer.cs
- DataSet.cs
- WebPartConnectionsCancelEventArgs.cs
- PinnedBufferMemoryStream.cs
- ImageCodecInfo.cs
- JavaScriptString.cs
- Expressions.cs
- HwndTarget.cs
- CalendarDay.cs
- HostUtils.cs
- ZipIORawDataFileBlock.cs
- _ConnectStream.cs
- Region.cs
- SchemaUtility.cs
- Image.cs
- HtmlToClrEventProxy.cs
- TextEndOfSegment.cs
- StackSpiller.Temps.cs
- App.cs
- IUnknownConstantAttribute.cs
- Button.cs
- ExtensionElement.cs
- GiveFeedbackEvent.cs
- DownloadProgressEventArgs.cs
- DependencyObjectValidator.cs
- XmlSerializationGeneratedCode.cs
- Tablet.cs
- AppearanceEditorPart.cs
- XmlWrappingReader.cs
- InstanceOwner.cs
- NamespaceQuery.cs
- CopyNamespacesAction.cs
- ContentTextAutomationPeer.cs
- InputScopeManager.cs
- InteropDesigner.xaml.cs
- CompilerGeneratedAttribute.cs
- UserInitiatedNavigationPermission.cs
- SqlMethods.cs
- SchemaAttDef.cs
- Stream.cs
- HeaderedContentControl.cs
- QilPatternVisitor.cs
- ProcessHostFactoryHelper.cs
- EmptyImpersonationContext.cs
- DetailsViewPagerRow.cs
- FontCollection.cs
- XPathSelectionIterator.cs
- RedirectionProxy.cs
- VirtualDirectoryMappingCollection.cs
- OdbcCommandBuilder.cs
- ToolStripPanel.cs
- HighlightComponent.cs
- Resources.Designer.cs
- ObjectDataSourceView.cs