Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Objects / ObjectResult.cs / 2 / 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- JsonReaderDelegator.cs
- SqlCommandBuilder.cs
- QuotedPrintableStream.cs
- ControlPropertyNameConverter.cs
- SafeFileHandle.cs
- CapacityStreamGeometryContext.cs
- SqlClientPermission.cs
- TraceUtility.cs
- ServerIdentity.cs
- embossbitmapeffect.cs
- IpcManager.cs
- SqlCaseSimplifier.cs
- RenderOptions.cs
- HttpHandler.cs
- ToolStripRenderer.cs
- CurrentTimeZone.cs
- DataControlFieldCell.cs
- Deflater.cs
- InstanceView.cs
- DeviceFilterDictionary.cs
- CompilationUnit.cs
- LinkedList.cs
- FixedTextSelectionProcessor.cs
- IOThreadScheduler.cs
- FileDialog.cs
- FindSimilarActivitiesVerb.cs
- DBCommand.cs
- TableLayoutStyle.cs
- httpserverutility.cs
- ToolStripSettings.cs
- ButtonChrome.cs
- MimeFormatExtensions.cs
- DbBuffer.cs
- WebPartChrome.cs
- X509Chain.cs
- ButtonChrome.cs
- QilIterator.cs
- BitmapEffectGeneralTransform.cs
- XmlNodeReader.cs
- SerializerWriterEventHandlers.cs
- RuleConditionDialog.Designer.cs
- XamlNamespaceHelper.cs
- RadioButtonRenderer.cs
- ChangeInterceptorAttribute.cs
- ExecutionTracker.cs
- webclient.cs
- SynchronizedDispatch.cs
- PointKeyFrameCollection.cs
- SyndicationDeserializer.cs
- TextViewBase.cs
- Parameter.cs
- XmlMtomReader.cs
- SqlProfileProvider.cs
- AppDomainUnloadedException.cs
- CurrencyManager.cs
- HtmlShimManager.cs
- CompModSwitches.cs
- MenuCommand.cs
- TouchesCapturedWithinProperty.cs
- FixedSOMSemanticBox.cs
- TaskbarItemInfo.cs
- TextBoxRenderer.cs
- DataObjectEventArgs.cs
- AdPostCacheSubstitution.cs
- NTAccount.cs
- SafeEventLogReadHandle.cs
- HandlerMappingMemo.cs
- FragmentNavigationEventArgs.cs
- RequestCachingSection.cs
- ComponentResourceKeyConverter.cs
- OutputCacheProfileCollection.cs
- SqlDataAdapter.cs
- SpellerInterop.cs
- MessageQueueConverter.cs
- MethodBody.cs
- DataGridViewLinkColumn.cs
- TextDecoration.cs
- MessageSecurityProtocol.cs
- ApplicationInfo.cs
- RegionInfo.cs
- SslStream.cs
- WinOEToolBoxItem.cs
- TreeView.cs
- MultiByteCodec.cs
- TableLayoutPanel.cs
- EntityClassGenerator.cs
- ApplicationSecurityInfo.cs
- JapaneseLunisolarCalendar.cs
- TileBrush.cs
- HttpBrowserCapabilitiesWrapper.cs
- CollectionType.cs
- LineGeometry.cs
- ItemCheckEvent.cs
- AttributeUsageAttribute.cs
- PropertiesTab.cs
- HostingPreferredMapPath.cs
- WebPartConnection.cs
- HttpCacheVary.cs
- DSASignatureFormatter.cs
- XmlSchemas.cs