Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ForeignKeyFactory.cs
- SmtpMail.cs
- QueryInterceptorAttribute.cs
- TabItem.cs
- StructuredType.cs
- MailWebEventProvider.cs
- IChannel.cs
- SignerInfo.cs
- PageRequestManager.cs
- Message.cs
- IpcServerChannel.cs
- UntypedNullExpression.cs
- InkCanvasFeedbackAdorner.cs
- SerializationException.cs
- KeySplineConverter.cs
- ImageAttributes.cs
- PrinterSettings.cs
- SmtpMail.cs
- ProfileInfo.cs
- SevenBitStream.cs
- XhtmlBasicImageAdapter.cs
- ExplicitDiscriminatorMap.cs
- RuntimeResourceSet.cs
- LinqDataSourceContextEventArgs.cs
- FlagsAttribute.cs
- CustomLineCap.cs
- CustomActivityDesigner.cs
- Vector3DConverter.cs
- Touch.cs
- LogPolicy.cs
- HashAlgorithm.cs
- SecurityKeyType.cs
- GroupAggregateExpr.cs
- SqlClientWrapperSmiStream.cs
- BlobPersonalizationState.cs
- GuidConverter.cs
- EditorResources.cs
- ServiceOperationHelpers.cs
- HtmlButton.cs
- DataGridViewImageColumn.cs
- WebPermission.cs
- AlternateViewCollection.cs
- unsafeIndexingFilterStream.cs
- PartitionResolver.cs
- EntityContainerEmitter.cs
- DesignBindingValueUIHandler.cs
- NodeFunctions.cs
- AccessKeyManager.cs
- TypeUtil.cs
- QueryStoreStatusRequest.cs
- TraceContextRecord.cs
- NamedPipeProcessProtocolHandler.cs
- UInt32.cs
- TypeProvider.cs
- SapiInterop.cs
- ScaleTransform3D.cs
- SimpleWebHandlerParser.cs
- TextDpi.cs
- GatewayDefinition.cs
- CellRelation.cs
- ScriptingProfileServiceSection.cs
- ChannelToken.cs
- CodeIterationStatement.cs
- ObjectCloneHelper.cs
- CharKeyFrameCollection.cs
- IsolatedStorageFilePermission.cs
- XmlSchemaSimpleContentExtension.cs
- TraceFilter.cs
- SecurityException.cs
- MarshalDirectiveException.cs
- InteropBitmapSource.cs
- StreamReader.cs
- RepeatButton.cs
- EventData.cs
- TrackBar.cs
- RuntimeCompatibilityAttribute.cs
- MimeObjectFactory.cs
- XmlWrappingReader.cs
- ObjectStateEntryDbDataRecord.cs
- ChangeProcessor.cs
- HttpCachePolicyWrapper.cs
- SecurityDescriptor.cs
- JsonDeserializer.cs
- MarkupProperty.cs
- _NetRes.cs
- OracleConnectionString.cs
- baseaxisquery.cs
- SecurityKeyIdentifier.cs
- DataSourceCacheDurationConverter.cs
- BatchParser.cs
- BinaryEditor.cs
- TableParaClient.cs
- XNameConverter.cs
- UpdateProgress.cs
- TemplatedWizardStep.cs
- translator.cs
- xsdvalidator.cs
- EncryptedData.cs
- TopClause.cs
- GridView.cs