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
- PointCollectionValueSerializer.cs
- AgileSafeNativeMemoryHandle.cs
- CollectionViewGroupRoot.cs
- SiteMap.cs
- ProviderCommandInfoUtils.cs
- rsa.cs
- WindowsListViewItem.cs
- ScriptDescriptor.cs
- TypeHelper.cs
- ObjectTypeMapping.cs
- TcpWorkerProcess.cs
- ItemList.cs
- DbException.cs
- ImageMapEventArgs.cs
- ResourceContainer.cs
- QilDataSource.cs
- XmlSchema.cs
- HyperLinkColumn.cs
- DockProviderWrapper.cs
- HttpModulesSection.cs
- GB18030Encoding.cs
- RoutedEventArgs.cs
- DisableDpiAwarenessAttribute.cs
- DesignColumn.cs
- RegionData.cs
- GenericRootAutomationPeer.cs
- Input.cs
- FixedSOMPageConstructor.cs
- Helpers.cs
- ColumnResizeUndoUnit.cs
- UserControlDocumentDesigner.cs
- Application.cs
- DeclarativeCatalogPartDesigner.cs
- bindurihelper.cs
- RangeBaseAutomationPeer.cs
- FlagsAttribute.cs
- WebPartDisplayModeCollection.cs
- XmlCharacterData.cs
- ConnectionPoint.cs
- TouchesOverProperty.cs
- SiteMembershipCondition.cs
- DesignerSelectionListAdapter.cs
- HighContrastHelper.cs
- FuncTypeConverter.cs
- CodeExporter.cs
- AlphabeticalEnumConverter.cs
- StylusButtonEventArgs.cs
- StylusShape.cs
- GenericRootAutomationPeer.cs
- SqlDuplicator.cs
- DataGridViewLinkCell.cs
- XmlExpressionDumper.cs
- CacheChildrenQuery.cs
- CollectionViewGroup.cs
- HttpException.cs
- initElementDictionary.cs
- StylusCollection.cs
- Stack.cs
- XmlNamespaceMappingCollection.cs
- MouseActionConverter.cs
- NetDataContractSerializer.cs
- EnumMemberAttribute.cs
- SettingsPropertyNotFoundException.cs
- XmlSchemaAny.cs
- GroupPartitionExpr.cs
- AccessViolationException.cs
- TraceHandler.cs
- Variant.cs
- ISFTagAndGuidCache.cs
- ReadContentAsBinaryHelper.cs
- XPathPatternBuilder.cs
- WriteFileContext.cs
- EntityClientCacheEntry.cs
- RichTextBoxConstants.cs
- NameTable.cs
- OdbcConnectionStringbuilder.cs
- WebColorConverter.cs
- CheckoutException.cs
- ImageBrush.cs
- InternalConfigHost.cs
- Signature.cs
- MediaTimeline.cs
- OutArgument.cs
- FormatSelectingMessageInspector.cs
- linebase.cs
- DynamicQueryableWrapper.cs
- StrongNameUtility.cs
- DataBindingCollection.cs
- ExplicitDiscriminatorMap.cs
- WinFormsComponentEditor.cs
- DictionaryEditChange.cs
- ConfigErrorGlyph.cs
- Activator.cs
- PropertyTabAttribute.cs
- InterleavedZipPartStream.cs
- Win32Native.cs
- ExpressionBuilderCollection.cs
- DispatchWrapper.cs
- UnsafePeerToPeerMethods.cs
- InitializingNewItemEventArgs.cs