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
- Grid.cs
- StrongNameIdentityPermission.cs
- HtmlPageAdapter.cs
- StickyNoteHelper.cs
- ValidationSummary.cs
- DataObjectEventArgs.cs
- EntityException.cs
- Image.cs
- XPathBinder.cs
- GridItemPattern.cs
- ImageIndexEditor.cs
- ContentTextAutomationPeer.cs
- BindingOperations.cs
- ModelItemKeyValuePair.cs
- ReflectionTypeLoadException.cs
- ResolvedKeyFrameEntry.cs
- PopupEventArgs.cs
- Int32RectConverter.cs
- DynamicObjectAccessor.cs
- XmlNodeReader.cs
- ProcessManager.cs
- PageThemeCodeDomTreeGenerator.cs
- SelectionProviderWrapper.cs
- CreateRefExpr.cs
- XmlElementElementCollection.cs
- ObjectListCommand.cs
- CompiledIdentityConstraint.cs
- Model3DCollection.cs
- CryptoConfig.cs
- EventMappingSettings.cs
- XomlCompilerHelpers.cs
- XmlReader.cs
- ListViewCommandEventArgs.cs
- ShaperBuffers.cs
- C14NUtil.cs
- EndpointInstanceProvider.cs
- CompilerError.cs
- SiteMapSection.cs
- GPPOINT.cs
- ScriptManagerProxy.cs
- ClosableStream.cs
- ResizeGrip.cs
- Vector.cs
- ButtonPopupAdapter.cs
- VideoDrawing.cs
- SystemBrushes.cs
- RIPEMD160Managed.cs
- FunctionOverloadResolver.cs
- IUnknownConstantAttribute.cs
- EqualityComparer.cs
- QueryLifecycle.cs
- SRDisplayNameAttribute.cs
- TreeViewImageIndexConverter.cs
- ToolStripItemEventArgs.cs
- MulticastDelegate.cs
- SuppressedPackageProperties.cs
- ListViewItem.cs
- MediaPlayer.cs
- PartBasedPackageProperties.cs
- BamlStream.cs
- HttpHostedTransportConfiguration.cs
- Geometry3D.cs
- BinaryHeap.cs
- wgx_render.cs
- DesignTimeTemplateParser.cs
- GCHandleCookieTable.cs
- FeatureSupport.cs
- ExpressionUtilities.cs
- OTFRasterizer.cs
- ParameterCollection.cs
- HMACMD5.cs
- DispatcherObject.cs
- ListViewCommandEventArgs.cs
- SettingsSection.cs
- PropertyMapper.cs
- WsatAdminException.cs
- XmlDigitalSignatureProcessor.cs
- HealthMonitoringSection.cs
- CounterSampleCalculator.cs
- UInt16Converter.cs
- LabelExpression.cs
- EncoderFallback.cs
- DTCTransactionManager.cs
- TextBoxRenderer.cs
- TextDecorationCollectionConverter.cs
- ValueQuery.cs
- iisPickupDirectory.cs
- SqlDataSourceParameterParser.cs
- TdsParserStaticMethods.cs
- Brushes.cs
- DataSourceXmlClassAttribute.cs
- BufferBuilder.cs
- ScrollBar.cs
- OperatingSystem.cs
- TypeToken.cs
- unsafenativemethodsother.cs
- LoginView.cs
- RenderData.cs
- XMLSyntaxException.cs
- IBuiltInEvidence.cs