Code:
/ DotNET / DotNET / 8.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
- XmlSchemaAttributeGroupRef.cs
- ServiceOperationListItem.cs
- MergeFilterQuery.cs
- PanningMessageFilter.cs
- COM2TypeInfoProcessor.cs
- KeyToListMap.cs
- Tracking.cs
- Group.cs
- SchemaInfo.cs
- FollowerQueueCreator.cs
- Accessible.cs
- AdapterUtil.cs
- followingsibling.cs
- CounterSample.cs
- HtmlSelect.cs
- RegexGroupCollection.cs
- BufferedStream.cs
- ContentControl.cs
- BrowserCapabilitiesCompiler.cs
- PolyQuadraticBezierSegment.cs
- FieldValue.cs
- RichTextBoxConstants.cs
- RoleService.cs
- EventLog.cs
- VBIdentifierTrimConverter.cs
- RequestQueue.cs
- Transform.cs
- ToolStripEditorManager.cs
- CopyOfAction.cs
- RawTextInputReport.cs
- SimpleType.cs
- IteratorDescriptor.cs
- ExpressionList.cs
- ThicknessConverter.cs
- DataPagerCommandEventArgs.cs
- IdleTimeoutMonitor.cs
- ImportContext.cs
- QuerySubExprEliminator.cs
- SafeBitVector32.cs
- ExpressionNode.cs
- SecurityException.cs
- HttpHandler.cs
- JsonReader.cs
- FactoryId.cs
- CompilerCollection.cs
- ApplicationBuildProvider.cs
- SatelliteContractVersionAttribute.cs
- DefaultAsyncDataDispatcher.cs
- UriTemplateMatch.cs
- ItemsControlAutomationPeer.cs
- ConfigXmlCDataSection.cs
- UnsupportedPolicyOptionsException.cs
- SqlRowUpdatedEvent.cs
- ContentType.cs
- ConfigurationStrings.cs
- Method.cs
- SpanIndex.cs
- TableLayoutPanel.cs
- HtmlTableCellCollection.cs
- embossbitmapeffect.cs
- DiscardableAttribute.cs
- MachineKeySection.cs
- StronglyTypedResourceBuilder.cs
- TemplatePartAttribute.cs
- UniqueConstraint.cs
- DBCSCodePageEncoding.cs
- ExpressionList.cs
- OLEDB_Util.cs
- HitTestWithGeometryDrawingContextWalker.cs
- DataGridViewColumnTypeEditor.cs
- InvalidOleVariantTypeException.cs
- FilteredDataSetHelper.cs
- DataSourceXmlAttributeAttribute.cs
- HtmlString.cs
- RegexNode.cs
- TemplateXamlParser.cs
- CellParagraph.cs
- ControlValuePropertyAttribute.cs
- TypographyProperties.cs
- DataObjectAttribute.cs
- XmlSchemaValidationException.cs
- Timeline.cs
- DataGridViewCellStyleEditor.cs
- DoubleStorage.cs
- wgx_sdk_version.cs
- ClusterSafeNativeMethods.cs
- SkewTransform.cs
- CriticalHandle.cs
- OdbcConnectionPoolProviderInfo.cs
- NumberFormatInfo.cs
- CurrencyWrapper.cs
- CompiledRegexRunner.cs
- SelectionChangedEventArgs.cs
- ActivitySurrogate.cs
- PackWebRequest.cs
- ReachDocumentReferenceCollectionSerializerAsync.cs
- DrawToolTipEventArgs.cs
- UnsafeNativeMethods.cs
- HtmlWindowCollection.cs
- MonthChangedEventArgs.cs