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
- SHA1CryptoServiceProvider.cs
- PropertyCollection.cs
- StateRuntime.cs
- SessionIDManager.cs
- MultilineStringConverter.cs
- ControlBindingsCollection.cs
- NameTable.cs
- relpropertyhelper.cs
- UInt16.cs
- _FtpDataStream.cs
- LiteralControl.cs
- PromptStyle.cs
- RepeatInfo.cs
- ExtensionSimplifierMarkupObject.cs
- VectorValueSerializer.cs
- AddDataControlFieldDialog.cs
- TagMapCollection.cs
- GeometryGroup.cs
- NameValueSectionHandler.cs
- EventLogPermissionAttribute.cs
- HiddenField.cs
- Delay.cs
- ConfigurationErrorsException.cs
- DataListCommandEventArgs.cs
- RemoteWebConfigurationHostStream.cs
- Helper.cs
- ScriptModule.cs
- ContainerSelectorActiveEvent.cs
- ProcessHost.cs
- Style.cs
- HttpVersion.cs
- XmlNamedNodeMap.cs
- XPathException.cs
- StickyNote.cs
- DBBindings.cs
- DataFormats.cs
- GeometryModel3D.cs
- StylusEditingBehavior.cs
- Point4DValueSerializer.cs
- DbDataRecord.cs
- SqlConnectionStringBuilder.cs
- HierarchicalDataSourceConverter.cs
- ToolStripRendererSwitcher.cs
- DynamicUpdateCommand.cs
- Light.cs
- HttpCacheVaryByContentEncodings.cs
- UnsafeNativeMethods.cs
- TreePrinter.cs
- SocketManager.cs
- SerializationSectionGroup.cs
- WsdlBuildProvider.cs
- ConstraintCollection.cs
- DictionaryMarkupSerializer.cs
- ComplexType.cs
- TargetInvocationException.cs
- BitmapMetadata.cs
- HtmlInputSubmit.cs
- SessionParameter.cs
- EntityConnectionStringBuilderItem.cs
- HiddenField.cs
- Behavior.cs
- ListenUriMode.cs
- ToolStripStatusLabel.cs
- XhtmlBasicLabelAdapter.cs
- EncoderParameter.cs
- VectorAnimationUsingKeyFrames.cs
- SchemaRegistration.cs
- AsyncCompletedEventArgs.cs
- odbcmetadatacolumnnames.cs
- FixedDocumentSequencePaginator.cs
- PEFileEvidenceFactory.cs
- CopyOfAction.cs
- TreeNodeConverter.cs
- X509DefaultServiceCertificateElement.cs
- Span.cs
- MetadataUtilsSmi.cs
- XmlStreamStore.cs
- TriggerAction.cs
- VirtualDirectoryMapping.cs
- BinaryMessageFormatter.cs
- Function.cs
- TextAction.cs
- RoutedEventHandlerInfo.cs
- SafeBitVector32.cs
- DataGridViewRowEventArgs.cs
- XmlSchemaAppInfo.cs
- SkinBuilder.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- PropertyEmitterBase.cs
- SerializerDescriptor.cs
- LazyLoadBehavior.cs
- UIElementParaClient.cs
- Clock.cs
- TransformPatternIdentifiers.cs
- webeventbuffer.cs
- SudsCommon.cs
- XmlSchemaObject.cs
- WebServiceHost.cs
- RecognizedAudio.cs
- DbDataSourceEnumerator.cs