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
- ToggleProviderWrapper.cs
- EncodingInfo.cs
- MultiPartWriter.cs
- XPathDocumentNavigator.cs
- ConfigurationManagerHelperFactory.cs
- ExpressionBuilder.cs
- RedirectionProxy.cs
- LiteralSubsegment.cs
- Column.cs
- SafeTokenHandle.cs
- PermissionListSet.cs
- EmissiveMaterial.cs
- SqlBooleanMismatchVisitor.cs
- XmlQueryContext.cs
- SettingsPropertyCollection.cs
- PriorityBindingExpression.cs
- DynamicEndpointElement.cs
- DesignerRegionCollection.cs
- FlowDocumentFormatter.cs
- InvalidPrinterException.cs
- GroupBoxAutomationPeer.cs
- GridProviderWrapper.cs
- ClockGroup.cs
- ChtmlTextWriter.cs
- EndpointDiscoveryBehavior.cs
- Unit.cs
- _CacheStreams.cs
- ThicknessAnimation.cs
- FacetValues.cs
- InputMethodStateTypeInfo.cs
- SessionParameter.cs
- MethodSet.cs
- FontStretchConverter.cs
- DataGridViewRowStateChangedEventArgs.cs
- AssemblyUtil.cs
- CompositeDataBoundControl.cs
- BuildProvider.cs
- InstanceDescriptor.cs
- WindowsFormsSynchronizationContext.cs
- DropTarget.cs
- SizeConverter.cs
- SeverityFilter.cs
- MethodCallConverter.cs
- TextChangedEventArgs.cs
- Condition.cs
- SqlError.cs
- CompositeScriptReference.cs
- ImageAutomationPeer.cs
- WinFormsSpinner.cs
- FileRecordSequenceHelper.cs
- Parsers.cs
- WpfXamlLoader.cs
- BitmapEffectInput.cs
- GeometryHitTestParameters.cs
- MatrixAnimationUsingKeyFrames.cs
- TextContainerChangeEventArgs.cs
- Int64AnimationUsingKeyFrames.cs
- AnchoredBlock.cs
- EntityDesignerBuildProvider.cs
- TemplateControlCodeDomTreeGenerator.cs
- MessageSecurityVersion.cs
- ProfileServiceManager.cs
- SR.cs
- FigureParaClient.cs
- D3DImage.cs
- SerialReceived.cs
- EventSource.cs
- RichTextBoxAutomationPeer.cs
- OleDbPropertySetGuid.cs
- SecurityUtils.cs
- ParameterModifier.cs
- NodeInfo.cs
- UIElement3DAutomationPeer.cs
- CodeGotoStatement.cs
- PropertyMappingExceptionEventArgs.cs
- TranslateTransform.cs
- BinaryCommonClasses.cs
- PropertyGeneratedEventArgs.cs
- PersonalizableAttribute.cs
- dataprotectionpermission.cs
- CommentGlyph.cs
- SQLByteStorage.cs
- StylusPointPropertyUnit.cs
- WorkflowTraceTransfer.cs
- EndPoint.cs
- DescendentsWalker.cs
- DrawListViewColumnHeaderEventArgs.cs
- RepeatBehaviorConverter.cs
- DispatcherProcessingDisabled.cs
- GenericUriParser.cs
- BoolLiteral.cs
- RadioButtonPopupAdapter.cs
- XmlSchemaAll.cs
- ToolStrip.cs
- InstalledFontCollection.cs
- DataGridCheckBoxColumn.cs
- Internal.cs
- ExpressionBuilderCollection.cs
- CommonRemoteMemoryBlock.cs
- CompilationSection.cs