Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / EmptyStringExpandableObjectConverter.cs / 1305376 / EmptyStringExpandableObjectConverter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Globalization; // Used by objects that are subproperties of Controls. Improves the UI in the property grid by displaying // nothing as the property value, instead of the fully qualified type name. internal sealed class EmptyStringExpandableObjectConverter : ExpandableObjectConverter { public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { if (destinationType == typeof(string)) { return String.Empty; } else { return base.ConvertTo(context, culture, value, destinationType); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Globalization; // Used by objects that are subproperties of Controls. Improves the UI in the property grid by displaying // nothing as the property value, instead of the fully qualified type name. internal sealed class EmptyStringExpandableObjectConverter : ExpandableObjectConverter { public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { if (destinationType == typeof(string)) { return String.Empty; } else { return base.ConvertTo(context, culture, 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
- StickyNote.cs
- MatrixCamera.cs
- ArraySortHelper.cs
- ValidatorCompatibilityHelper.cs
- ProfilePropertyMetadata.cs
- IChannel.cs
- StateWorkerRequest.cs
- DirectoryLocalQuery.cs
- ThreadInterruptedException.cs
- SerializableTypeCodeDomSerializer.cs
- ServiceBehaviorAttribute.cs
- BuildDependencySet.cs
- Rotation3DKeyFrameCollection.cs
- ScriptModule.cs
- Aggregates.cs
- CharConverter.cs
- BreakRecordTable.cs
- TCEAdapterGenerator.cs
- RefreshPropertiesAttribute.cs
- ApplicationSecurityInfo.cs
- SQLConvert.cs
- ParseHttpDate.cs
- SqlDataSourceEnumerator.cs
- TrackBarRenderer.cs
- TableHeaderCell.cs
- EndpointIdentityConverter.cs
- NamespaceEmitter.cs
- ControlSerializer.cs
- XsdBuildProvider.cs
- UrlRoutingModule.cs
- RuntimeConfigLKG.cs
- XsltContext.cs
- SqlRowUpdatedEvent.cs
- CardSpacePolicyElement.cs
- KeyboardNavigation.cs
- AnonymousIdentificationSection.cs
- SqlServices.cs
- CodeAssignStatement.cs
- VisualBasicHelper.cs
- RegexFCD.cs
- EntityContainerEntitySetDefiningQuery.cs
- WebPartDisplayMode.cs
- VerificationException.cs
- TransformGroup.cs
- HMACSHA256.cs
- SelectedGridItemChangedEvent.cs
- FormClosedEvent.cs
- MatrixCamera.cs
- BamlBinaryReader.cs
- ProfileInfo.cs
- KnownColorTable.cs
- Decorator.cs
- HtmlInputFile.cs
- ReadOnlyHierarchicalDataSourceView.cs
- TreeViewImageIndexConverter.cs
- _ProxyChain.cs
- DataObjectFieldAttribute.cs
- ToolStripSettings.cs
- ApplicationFileParser.cs
- MobileListItem.cs
- PageFunction.cs
- ApplicationFileCodeDomTreeGenerator.cs
- PasswordDeriveBytes.cs
- ObservableCollection.cs
- SecurityRuntime.cs
- TraceLevelStore.cs
- SafeHandle.cs
- StrokeCollectionConverter.cs
- StringValidatorAttribute.cs
- InternalTransaction.cs
- RtfToXamlReader.cs
- TextSelectionProcessor.cs
- XComponentModel.cs
- ApplicationFileCodeDomTreeGenerator.cs
- WindowsPen.cs
- SrgsOneOf.cs
- BitStream.cs
- PrivilegeNotHeldException.cs
- DmlSqlGenerator.cs
- DispatchOperationRuntime.cs
- MetafileEditor.cs
- WebPartConnectVerb.cs
- TextChangedEventArgs.cs
- GeneralTransform2DTo3D.cs
- ExceptionHelpers.cs
- OneOf.cs
- ScrollableControl.cs
- ContentType.cs
- ReferentialConstraint.cs
- WindowsFormsLinkLabel.cs
- WebPartEditorApplyVerb.cs
- Int32Rect.cs
- ViewStateException.cs
- RelationshipManager.cs
- RayHitTestParameters.cs
- GifBitmapDecoder.cs
- DiscoveryViaBehavior.cs
- Help.cs
- DesignerUtility.cs
- DataSysAttribute.cs