Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- PerfCounters.cs
- ScriptServiceAttribute.cs
- DispatchChannelSink.cs
- StreamGeometry.cs
- CompositeControl.cs
- TextTreeUndoUnit.cs
- ObjectDataSourceSelectingEventArgs.cs
- Atom10FormatterFactory.cs
- ToolStripControlHost.cs
- BindingNavigator.cs
- COSERVERINFO.cs
- util.cs
- NonParentingControl.cs
- WebPartCollection.cs
- PropertyOrder.cs
- NotImplementedException.cs
- UserControl.cs
- PersonalizationProviderHelper.cs
- PageBuildProvider.cs
- recordstatefactory.cs
- RootBrowserWindow.cs
- FixUpCollection.cs
- ChangeTracker.cs
- TypeConverterHelper.cs
- ExtendedProtectionPolicyElement.cs
- GlyphsSerializer.cs
- ManipulationInertiaStartingEventArgs.cs
- UserThread.cs
- TextContainerChangeEventArgs.cs
- LinkDescriptor.cs
- BooleanToVisibilityConverter.cs
- CommonDialog.cs
- IndexerHelper.cs
- SuppressMergeCheckAttribute.cs
- SchemaCollectionPreprocessor.cs
- HyperLinkField.cs
- TemplateControlBuildProvider.cs
- AnimationStorage.cs
- ActivationServices.cs
- ChangePassword.cs
- Rotation3DAnimationBase.cs
- Sql8ExpressionRewriter.cs
- SAPIEngineTypes.cs
- AdapterUtil.cs
- FontFamilyIdentifier.cs
- __TransparentProxy.cs
- DateTimeConstantAttribute.cs
- EntityWithChangeTrackerStrategy.cs
- Run.cs
- PathSegmentCollection.cs
- GPPOINTF.cs
- ErrorEventArgs.cs
- CodeCatchClause.cs
- ProtocolsConfigurationEntry.cs
- InstancePersistenceCommandException.cs
- ColumnTypeConverter.cs
- ReturnValue.cs
- EventRoute.cs
- TrustLevel.cs
- SchemaDeclBase.cs
- AppDomain.cs
- InstanceHandleConflictException.cs
- OptimizerPatterns.cs
- Binding.cs
- FrameworkTextComposition.cs
- ComPersistableTypeElementCollection.cs
- ManualResetEvent.cs
- WebBrowserNavigatingEventHandler.cs
- SerializationEventsCache.cs
- Psha1DerivedKeyGenerator.cs
- LinqDataSource.cs
- BamlLocalizationDictionary.cs
- DragEvent.cs
- SectionRecord.cs
- PassportAuthenticationModule.cs
- SynchronizedDisposablePool.cs
- FocusChangedEventArgs.cs
- TableRow.cs
- LazyTextWriterCreator.cs
- AuthStoreRoleProvider.cs
- WebReferenceOptions.cs
- ComponentRenameEvent.cs
- HtmlPageAdapter.cs
- XamlContextStack.cs
- X509Certificate.cs
- TextStore.cs
- OperationDescriptionCollection.cs
- CellTreeNodeVisitors.cs
- EmulateRecognizeCompletedEventArgs.cs
- _DigestClient.cs
- DocumentsTrace.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- GlobalizationSection.cs
- templategroup.cs
- ControlCollection.cs
- XmlSerializationGeneratedCode.cs
- PointAnimationClockResource.cs
- ModulesEntry.cs
- HttpListenerPrefixCollection.cs
- Mapping.cs