Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / Objects / ObjectResult.cs / 1 / ObjectResult.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupowner [....] //--------------------------------------------------------------------- namespace System.Data.Objects { using System; using System.Collections; using System.ComponentModel; ////// This class implements IEnumerable and IDisposable. Instance of this class /// is returned from ObjectQuery.Execute method. /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix")] public abstract class ObjectResult : IEnumerable, IDisposable, IListSource { internal ObjectResult() { } IEnumerator IEnumerable.GetEnumerator() { return this.GetEnumeratorInternal(); } // ---------------------- // IListSource Properties // ---------------------- ////// IListSource.ContainsListCollection implementation. Always returns false. /// bool IListSource.ContainsListCollection { get { return false; // this means that the IList we return is the one which contains our actual data, it is not a collection } } // ---------------------- // IListSource method // ---------------------- ////// IListSource.GetList implementation /// ////// IList interface over the data to bind /// IList IListSource.GetList() { return this.GetIListSourceListInternal(); } public abstract Type ElementType { get; } public abstract void Dispose(); internal abstract IEnumerator GetEnumeratorInternal(); internal abstract IList GetIListSourceListInternal(); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupowner [....] //--------------------------------------------------------------------- namespace System.Data.Objects { using System; using System.Collections; using System.ComponentModel; ////// This class implements IEnumerable and IDisposable. Instance of this class /// is returned from ObjectQuery.Execute method. /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix")] public abstract class ObjectResult : IEnumerable, IDisposable, IListSource { internal ObjectResult() { } IEnumerator IEnumerable.GetEnumerator() { return this.GetEnumeratorInternal(); } // ---------------------- // IListSource Properties // ---------------------- ////// IListSource.ContainsListCollection implementation. Always returns false. /// bool IListSource.ContainsListCollection { get { return false; // this means that the IList we return is the one which contains our actual data, it is not a collection } } // ---------------------- // IListSource method // ---------------------- ////// IListSource.GetList implementation /// ////// IList interface over the data to bind /// IList IListSource.GetList() { return this.GetIListSourceListInternal(); } public abstract Type ElementType { get; } public abstract void Dispose(); internal abstract IEnumerator GetEnumeratorInternal(); internal abstract IList GetIListSourceListInternal(); } } // 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
- Accessible.cs
- HttpRuntimeSection.cs
- SapiAttributeParser.cs
- FormsAuthenticationUser.cs
- Viewport2DVisual3D.cs
- CodeGen.cs
- TabControlEvent.cs
- SubpageParaClient.cs
- DropShadowBitmapEffect.cs
- TraceLevelHelper.cs
- Helper.cs
- TraceLevelStore.cs
- PeerApplicationLaunchInfo.cs
- LocalizationParserHooks.cs
- MatrixTransform.cs
- RequestQueryParser.cs
- IOThreadScheduler.cs
- BasicBrowserDialog.designer.cs
- ProxyWebPartManager.cs
- webeventbuffer.cs
- LocalizableResourceBuilder.cs
- UserNamePasswordServiceCredential.cs
- StorageMappingItemCollection.cs
- ExceptionValidationRule.cs
- TrustLevel.cs
- ListDesigner.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- FormsIdentity.cs
- SafeNativeMemoryHandle.cs
- QuaternionRotation3D.cs
- RemoteWebConfigurationHostStream.cs
- ColorKeyFrameCollection.cs
- WebPartCatalogAddVerb.cs
- AudioException.cs
- DesignDataSource.cs
- WeakEventManager.cs
- LogReserveAndAppendState.cs
- StandardRuntimeEnumValidator.cs
- ThaiBuddhistCalendar.cs
- DeliveryRequirementsAttribute.cs
- NetworkInterface.cs
- MulticastDelegate.cs
- RawTextInputReport.cs
- XmlNamespaceMappingCollection.cs
- DependsOnAttribute.cs
- PixelFormats.cs
- DrawingVisualDrawingContext.cs
- ElementHostPropertyMap.cs
- EDesignUtil.cs
- XmlSchemaInferenceException.cs
- StrokeDescriptor.cs
- VectorValueSerializer.cs
- MetadataArtifactLoaderComposite.cs
- PeerNameRecord.cs
- Executor.cs
- DataGridViewCellFormattingEventArgs.cs
- DataGridViewRow.cs
- TargetInvocationException.cs
- WebPartDisplayModeEventArgs.cs
- UITypeEditor.cs
- ListViewItemMouseHoverEvent.cs
- ElementAction.cs
- SqlDelegatedTransaction.cs
- QuaternionIndependentAnimationStorage.cs
- _SSPIWrapper.cs
- XmlSchemaChoice.cs
- PagePropertiesChangingEventArgs.cs
- SecurityChannelFaultConverter.cs
- AutomationIdentifierGuids.cs
- ExclusiveTcpTransportManager.cs
- Int64AnimationUsingKeyFrames.cs
- AutoGeneratedFieldProperties.cs
- SystemNetworkInterface.cs
- ViewStateModeByIdAttribute.cs
- UnsafeNativeMethodsTablet.cs
- precedingquery.cs
- ExpressionBuilder.cs
- followingquery.cs
- UIPropertyMetadata.cs
- View.cs
- WebEventTraceProvider.cs
- NamedPipeTransportManager.cs
- LineSegment.cs
- ServiceProviders.cs
- CollectionBuilder.cs
- PageHandlerFactory.cs
- ToolStripComboBox.cs
- FileReader.cs
- ExceptionUtil.cs
- MouseButton.cs
- WebPartTransformerCollection.cs
- IndexedGlyphRun.cs
- MetadataExchangeClient.cs
- WindowsListViewItemStartMenu.cs
- UseLicense.cs
- StringFreezingAttribute.cs
- PropertyFilterAttribute.cs
- PassportPrincipal.cs
- CodeCatchClauseCollection.cs
- DocumentPageViewAutomationPeer.cs