Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Server / System / Data / Services / ExpandSegmentCollection.cs / 1407647 / ExpandSegmentCollection.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Provides a description of a path in an $expand query option
// for a WCF Data Service.
//
//
// @owner [....]
//---------------------------------------------------------------------
namespace System.Data.Services
{
using System.Collections.Generic;
///
/// Provides a description of a path in an $expand query option
/// for a WCF Data Service.
///
public class ExpandSegmentCollection : List
{
/// Initializes a new instance.
public ExpandSegmentCollection()
{
}
/// Initializes a new instance.
/// Initial capacity.
public ExpandSegmentCollection(int capacity) : base(capacity)
{
}
/// Whether this path has any filters.
public bool HasFilter
{
get
{
foreach (ExpandSegment segment in this)
{
if (segment.HasFilter)
{
return true;
}
}
return false;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Provides a description of a path in an $expand query option
// for a WCF Data Service.
//
//
// @owner [....]
//---------------------------------------------------------------------
namespace System.Data.Services
{
using System.Collections.Generic;
///
/// Provides a description of a path in an $expand query option
/// for a WCF Data Service.
///
public class ExpandSegmentCollection : List
{
/// Initializes a new instance.
public ExpandSegmentCollection()
{
}
/// Initializes a new instance.
/// Initial capacity.
public ExpandSegmentCollection(int capacity) : base(capacity)
{
}
/// Whether this path has any filters.
public bool HasFilter
{
get
{
foreach (ExpandSegment segment in this)
{
if (segment.HasFilter)
{
return true;
}
}
return false;
}
}
}
}
// 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
- XmlFileEditor.cs
- CustomErrorsSectionWrapper.cs
- SecurityListenerSettingsLifetimeManager.cs
- StrokeNodeOperations.cs
- IDispatchConstantAttribute.cs
- StubHelpers.cs
- DataPagerFieldItem.cs
- ComponentSerializationService.cs
- SizeChangedEventArgs.cs
- SudsParser.cs
- DoubleIndependentAnimationStorage.cs
- DataGridViewColumnStateChangedEventArgs.cs
- HttpRuntime.cs
- MulticastOption.cs
- TextBox.cs
- Relationship.cs
- WebPartMenuStyle.cs
- ByteStorage.cs
- Pair.cs
- InkCanvasFeedbackAdorner.cs
- HttpRawResponse.cs
- AsyncOperationContext.cs
- SafeThemeHandle.cs
- OuterGlowBitmapEffect.cs
- ExtractorMetadata.cs
- CachedPathData.cs
- RegistrySecurity.cs
- CanExecuteRoutedEventArgs.cs
- IconEditor.cs
- StringUtil.cs
- ParenthesizePropertyNameAttribute.cs
- QueryAsyncResult.cs
- FixedSOMContainer.cs
- FormViewPagerRow.cs
- EventLogPermissionEntryCollection.cs
- ACL.cs
- _Semaphore.cs
- DataGridCell.cs
- UiaCoreApi.cs
- HttpResponseInternalWrapper.cs
- CreateUserWizardStep.cs
- PropertyEmitterBase.cs
- HttpRequestBase.cs
- DataGridDesigner.cs
- CacheRequest.cs
- CodeExpressionCollection.cs
- XmlNavigatorStack.cs
- EtwTrace.cs
- CultureInfoConverter.cs
- SignedPkcs7.cs
- TableSectionStyle.cs
- HttpConfigurationSystem.cs
- RtfControlWordInfo.cs
- Model3D.cs
- XmlCharType.cs
- TimeSpanValidator.cs
- bidPrivateBase.cs
- BindingMemberInfo.cs
- HttpWebResponse.cs
- SingleConverter.cs
- Clause.cs
- _NegotiateClient.cs
- ManipulationLogic.cs
- ParameterElement.cs
- MissingFieldException.cs
- DBCommandBuilder.cs
- ResetableIterator.cs
- DataControlImageButton.cs
- WebEventTraceProvider.cs
- ListViewGroup.cs
- SqlFactory.cs
- ItemsControl.cs
- Sql8ExpressionRewriter.cs
- SatelliteContractVersionAttribute.cs
- FlowchartStart.xaml.cs
- SoapElementAttribute.cs
- SHA1CryptoServiceProvider.cs
- TagMapCollection.cs
- SqlUtils.cs
- ReadWriteObjectLock.cs
- SafeArrayTypeMismatchException.cs
- BrowserCapabilitiesCompiler.cs
- TypeSemantics.cs
- OracleTransaction.cs
- XPathNavigatorKeyComparer.cs
- CodeMemberProperty.cs
- SecurityPolicySection.cs
- ResourceExpression.cs
- WindowsScrollBar.cs
- _ChunkParse.cs
- XmlCharType.cs
- StagingAreaInputItem.cs
- TextRenderingModeValidation.cs
- ListViewHitTestInfo.cs
- SqlDeflator.cs
- RequiredFieldValidator.cs
- QueueProcessor.cs
- FixUp.cs
- RemotingConfiguration.cs
- Transform3DGroup.cs