Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- DescendantBaseQuery.cs
- OutOfMemoryException.cs
- SqlParameterCollection.cs
- ToolBarOverflowPanel.cs
- MsmqAuthenticationMode.cs
- AsynchronousChannelMergeEnumerator.cs
- BrowserCapabilitiesCodeGenerator.cs
- SafeIUnknown.cs
- ApplicationCommands.cs
- DetailsViewDeletedEventArgs.cs
- ListViewDeleteEventArgs.cs
- CodeMethodReturnStatement.cs
- XmlSchemaGroup.cs
- RNGCryptoServiceProvider.cs
- GeneratedView.cs
- AccessibleObject.cs
- ErrorHandler.cs
- InputLanguageProfileNotifySink.cs
- PEFileReader.cs
- HtmlShim.cs
- _KerberosClient.cs
- BoundColumn.cs
- Label.cs
- BooleanToVisibilityConverter.cs
- CatalogPartDesigner.cs
- OracleSqlParser.cs
- TreeNodeCollection.cs
- TableItemPattern.cs
- RemotingConfiguration.cs
- QueryOperationResponseOfT.cs
- InfoCardSymmetricAlgorithm.cs
- Crc32.cs
- ListBindingHelper.cs
- Utils.cs
- IncrementalReadDecoders.cs
- OAVariantLib.cs
- GeneralTransform3DCollection.cs
- OleDbTransaction.cs
- OdbcStatementHandle.cs
- DispatcherExceptionEventArgs.cs
- DateTimeOffsetConverter.cs
- Listbox.cs
- DragDrop.cs
- SqlInfoMessageEvent.cs
- WebDisplayNameAttribute.cs
- ListViewItem.cs
- NotifyIcon.cs
- UInt16.cs
- SmtpFailedRecipientsException.cs
- BitVector32.cs
- UserControlAutomationPeer.cs
- MetadataCollection.cs
- Currency.cs
- ItemMap.cs
- StylusPointDescription.cs
- XsltArgumentList.cs
- ConnectionStringsExpressionBuilder.cs
- DesignerCategoryAttribute.cs
- ManagementEventWatcher.cs
- XPathNodeHelper.cs
- DirectionalLight.cs
- ScriptingProfileServiceSection.cs
- CellTreeNode.cs
- TemplateComponentConnector.cs
- FormsAuthenticationModule.cs
- XpsResource.cs
- HatchBrush.cs
- ToolStripItemCollection.cs
- HeaderCollection.cs
- XPathSelectionIterator.cs
- WindowsIdentity.cs
- FontStyleConverter.cs
- TaskExceptionHolder.cs
- MiniLockedBorderGlyph.cs
- DataColumnCollection.cs
- RequestResponse.cs
- Subset.cs
- MouseDevice.cs
- SoapCodeExporter.cs
- ExternalDataExchangeService.cs
- DataConnectionHelper.cs
- DownloadProgressEventArgs.cs
- SymbolDocumentInfo.cs
- InputEventArgs.cs
- CheckBoxRenderer.cs
- WinFormsSecurity.cs
- DBSqlParserColumn.cs
- FileUtil.cs
- CompilationUnit.cs
- PersonalizationProviderHelper.cs
- TransformedBitmap.cs
- OledbConnectionStringbuilder.cs
- ServerValidateEventArgs.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- StylusTouchDevice.cs
- DrawItemEvent.cs
- TextServicesContext.cs
- DataServiceCollectionOfT.cs
- IisTraceListener.cs
- XmlDataLoader.cs