Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / UI / WebControls / ReadOnlyHierarchicalDataSourceView.cs / 1 / ReadOnlyHierarchicalDataSourceView.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls {
using System;
using System.Collections;
using System.Web;
using System.Web.UI;
using System.Web.Util;
///
/// This class is used by ReadOnlyHierarchicalDataSource to represent an
/// individual view of a generic hierarchical data source.
///
internal sealed class ReadOnlyHierarchicalDataSourceView : HierarchicalDataSourceView {
private IHierarchicalEnumerable _dataSource;
public ReadOnlyHierarchicalDataSourceView(IHierarchicalEnumerable dataSource) {
_dataSource = dataSource;
}
public override IHierarchicalEnumerable Select() {
return _dataSource;
}
}
}
// 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;
using System.Collections;
using System.Web;
using System.Web.UI;
using System.Web.Util;
///
/// This class is used by ReadOnlyHierarchicalDataSource to represent an
/// individual view of a generic hierarchical data source.
///
internal sealed class ReadOnlyHierarchicalDataSourceView : HierarchicalDataSourceView {
private IHierarchicalEnumerable _dataSource;
public ReadOnlyHierarchicalDataSourceView(IHierarchicalEnumerable dataSource) {
_dataSource = dataSource;
}
public override IHierarchicalEnumerable Select() {
return _dataSource;
}
}
}
// 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
- MessagePropertyDescription.cs
- NamespaceDecl.cs
- ObjectViewEntityCollectionData.cs
- WindowsListBox.cs
- XmlAttributes.cs
- CngAlgorithm.cs
- FileDialog_Vista_Interop.cs
- LineBreakRecord.cs
- ProcessManager.cs
- ActivityValidator.cs
- WebServiceMethodData.cs
- CollectionChangedEventManager.cs
- HMACSHA1.cs
- mediaeventshelper.cs
- ImageClickEventArgs.cs
- LogicalExpr.cs
- FailedToStartupUIException.cs
- BinaryConverter.cs
- BamlWriter.cs
- SmtpNegotiateAuthenticationModule.cs
- KeyFrames.cs
- OleDbSchemaGuid.cs
- LogRecordSequence.cs
- ImmutableDispatchRuntime.cs
- XmlMembersMapping.cs
- ArgumentNullException.cs
- XmlStringTable.cs
- MonthCalendar.cs
- UserControlDesigner.cs
- ScrollContentPresenter.cs
- BitStream.cs
- UserControl.cs
- ConfigurationValidatorAttribute.cs
- VolatileEnlistmentMultiplexing.cs
- AsymmetricKeyExchangeDeformatter.cs
- DirectoryObjectSecurity.cs
- SqlNotificationRequest.cs
- XmlSchemaGroup.cs
- DoubleCollection.cs
- TrustSection.cs
- LicFileLicenseProvider.cs
- CollectionViewGroupRoot.cs
- CachingHintValidation.cs
- Size3DValueSerializer.cs
- RawStylusActions.cs
- BitmapSizeOptions.cs
- SafeNativeMethods.cs
- GifBitmapEncoder.cs
- MimeFormImporter.cs
- SectionRecord.cs
- input.cs
- EventsTab.cs
- ArgumentOutOfRangeException.cs
- Tokenizer.cs
- EventDescriptor.cs
- OutputCacheProfile.cs
- EventItfInfo.cs
- ProvidePropertyAttribute.cs
- ConfigurationManagerHelperFactory.cs
- ArgIterator.cs
- ValidationError.cs
- SafeThemeHandle.cs
- InstanceDescriptor.cs
- SmtpNtlmAuthenticationModule.cs
- XmlAttributeOverrides.cs
- ParentUndoUnit.cs
- DbConnectionPoolIdentity.cs
- rsa.cs
- EventManager.cs
- ProxyWebPartConnectionCollection.cs
- QuaternionAnimation.cs
- CodeTypeParameterCollection.cs
- SQLBinaryStorage.cs
- RuntimeHelpers.cs
- milrender.cs
- ResourceReferenceKeyNotFoundException.cs
- TextRunProperties.cs
- AccessViolationException.cs
- ApplicationContext.cs
- CodeValidator.cs
- DbConvert.cs
- TableLayoutSettings.cs
- ActiveXHelper.cs
- TraceContext.cs
- SchemeSettingElementCollection.cs
- GestureRecognitionResult.cs
- FixedHighlight.cs
- XmlAttributeProperties.cs
- ScrollBarRenderer.cs
- NotificationContext.cs
- StickyNoteHelper.cs
- LateBoundChannelParameterCollection.cs
- LineServices.cs
- ProfileSettingsCollection.cs
- C14NUtil.cs
- ArrayList.cs
- ServiceDesigner.cs
- FindSimilarActivitiesVerb.cs
- WindowsSpinner.cs
- OutputCacheSettingsSection.cs