Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / WebControls / TreeNodeBindingDepthConverter.cs / 1 / TreeNodeBindingDepthConverter.cs
namespace System.Web.UI.Design.WebControls { using System; using System.ComponentModel; public class TreeNodeBindingDepthConverter : Int32Converter { public override object ConvertFrom(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) { string strValue = value as string; if ((strValue != null) && (strValue.Length == 0)) { return -1; } return base.ConvertFrom(context, culture, value); } public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) { if ((value is int) && ((int)value == -1)) { return String.Empty; } 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FastEncoderWindow.cs
- WebPartCloseVerb.cs
- NetStream.cs
- ReadContentAsBinaryHelper.cs
- ValueQuery.cs
- ErrorFormatter.cs
- StrongNamePublicKeyBlob.cs
- ReachDocumentPageSerializer.cs
- PrintController.cs
- AssociationTypeEmitter.cs
- FontSourceCollection.cs
- sqlser.cs
- WindowProviderWrapper.cs
- TiffBitmapDecoder.cs
- BufferedReceiveManager.cs
- EmptyQuery.cs
- InputScopeConverter.cs
- DbConnectionHelper.cs
- DataTableTypeConverter.cs
- WindowsEditBox.cs
- PageAsyncTask.cs
- SqlFacetAttribute.cs
- PageBreakRecord.cs
- DrawingBrush.cs
- SerializationEventsCache.cs
- WebPartCollection.cs
- GeneralTransform3DCollection.cs
- CallContext.cs
- GradientBrush.cs
- XmlNotation.cs
- NavigationProgressEventArgs.cs
- DataSpaceManager.cs
- RequestQueryParser.cs
- ContextQuery.cs
- NativeMethods.cs
- SqlStream.cs
- ImageDrawing.cs
- ResourceReferenceKeyNotFoundException.cs
- ParenthesizePropertyNameAttribute.cs
- Publisher.cs
- RecommendedAsConfigurableAttribute.cs
- Converter.cs
- FlowDocumentView.cs
- SafeCoTaskMem.cs
- SortDescription.cs
- DispatcherTimer.cs
- Validator.cs
- ListViewEditEventArgs.cs
- Utils.cs
- ExpressionBuilder.cs
- CommandSet.cs
- PackUriHelper.cs
- IncrementalCompileAnalyzer.cs
- SyndicationItem.cs
- CompositeControl.cs
- VersionedStream.cs
- TargetConverter.cs
- ObjectHandle.cs
- EncryptedPackageFilter.cs
- SessionIDManager.cs
- OutputScopeManager.cs
- WebPartVerbsEventArgs.cs
- SelectingProviderEventArgs.cs
- TypeForwardedToAttribute.cs
- PointAnimationClockResource.cs
- SoapParser.cs
- WindowsFormsLinkLabel.cs
- SmiSettersStream.cs
- SafeReadContext.cs
- Permission.cs
- ISAPIApplicationHost.cs
- LocatorPart.cs
- HwndHostAutomationPeer.cs
- FixedDSBuilder.cs
- DummyDataSource.cs
- HtmlShim.cs
- WebHeaderCollection.cs
- HandlerWithFactory.cs
- XmlUtilWriter.cs
- HeaderCollection.cs
- PersistNameAttribute.cs
- ProbeMatches11.cs
- DataKeyCollection.cs
- FlowDocumentView.cs
- DependentList.cs
- ResourcePermissionBaseEntry.cs
- PersonalizableAttribute.cs
- InputBinder.cs
- VariableQuery.cs
- XmlSignatureManifest.cs
- XmlValidatingReader.cs
- CaseInsensitiveComparer.cs
- VerificationException.cs
- CustomErrorsSectionWrapper.cs
- DataControlLinkButton.cs
- ConfigurationElementProperty.cs
- DataColumnMappingCollection.cs
- InkCanvasAutomationPeer.cs
- MemberInfoSerializationHolder.cs
- WebServiceMethodData.cs