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
- PropertyPath.cs
- QueryCursorEventArgs.cs
- TextEncodedRawTextWriter.cs
- ADMembershipProvider.cs
- HandleRef.cs
- ConfigurationSettings.cs
- DbConnectionHelper.cs
- PropertyDescriptor.cs
- GlyphRunDrawing.cs
- XmlSchemaGroup.cs
- DesignerGenericWebPart.cs
- TraceListeners.cs
- ToggleButton.cs
- DefaultBindingPropertyAttribute.cs
- XamlInterfaces.cs
- ButtonBaseAdapter.cs
- ComponentRenameEvent.cs
- PreviewPageInfo.cs
- CodeIterationStatement.cs
- CreatingCookieEventArgs.cs
- CompositeControl.cs
- IntegerValidatorAttribute.cs
- ValueUnavailableException.cs
- DNS.cs
- BaseTypeViewSchema.cs
- PropertyGeneratedEventArgs.cs
- StorageEntitySetMapping.cs
- GridViewSelectEventArgs.cs
- WebPartUserCapability.cs
- Line.cs
- DataGridPageChangedEventArgs.cs
- ServiceNotStartedException.cs
- Rijndael.cs
- AuthorizationSection.cs
- SiteIdentityPermission.cs
- MULTI_QI.cs
- MaterialGroup.cs
- CapabilitiesState.cs
- DesignerActionService.cs
- GuidelineCollection.cs
- TypeListConverter.cs
- ResXBuildProvider.cs
- FixedTextPointer.cs
- ReadWriteSpinLock.cs
- ComplexLine.cs
- SqlProvider.cs
- NavigatingCancelEventArgs.cs
- ImageButton.cs
- HtmlTitle.cs
- BitmapImage.cs
- QilInvokeLateBound.cs
- VisemeEventArgs.cs
- OleDbDataReader.cs
- EditorBrowsableAttribute.cs
- ThaiBuddhistCalendar.cs
- ToolStripDropDownButton.cs
- BindingOperations.cs
- RowCache.cs
- RecordBuilder.cs
- FontDriver.cs
- OracleConnectionString.cs
- ImageMap.cs
- MachineSettingsSection.cs
- XPathDocument.cs
- thaishape.cs
- Events.cs
- ToolStripItem.cs
- DetailsViewDeleteEventArgs.cs
- DynamicResourceExtension.cs
- SBCSCodePageEncoding.cs
- ListBase.cs
- XmlSchemaAttributeGroup.cs
- DataConnectionHelper.cs
- FontSizeConverter.cs
- SplitterPanel.cs
- HtmlShim.cs
- SynchronizedKeyedCollection.cs
- __Error.cs
- CheckBox.cs
- DrawingAttributeSerializer.cs
- SizeAnimationClockResource.cs
- MimeTypeAttribute.cs
- DataSourceConverter.cs
- ChildrenQuery.cs
- SelectionHighlightInfo.cs
- EditorPartChrome.cs
- EDesignUtil.cs
- RemotingException.cs
- PrintDialog.cs
- Vertex.cs
- infer.cs
- TypeDependencyAttribute.cs
- DBConnectionString.cs
- XmlSchemaAnnotated.cs
- SqlLiftWhereClauses.cs
- BindingSourceDesigner.cs
- XmlSerializerOperationFormatter.cs
- PassportPrincipal.cs
- SoapSchemaExporter.cs
- DataGridViewAccessibleObject.cs