Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Objects / ObjectResult.cs / 1305376 / 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
- DuplicateContext.cs
- CustomAttributeBuilder.cs
- WebFormsRootDesigner.cs
- RequestQueryParser.cs
- DesignerAttribute.cs
- SqlBooleanizer.cs
- XPathAxisIterator.cs
- TreeView.cs
- ColumnPropertiesGroup.cs
- NameTable.cs
- ControlTemplate.cs
- QueryOutputWriter.cs
- DispatcherTimer.cs
- CapabilitiesUse.cs
- TextTrailingWordEllipsis.cs
- CustomCategoryAttribute.cs
- ContextMarshalException.cs
- DynamicDiscoSearcher.cs
- SpeakInfo.cs
- TypedTableBase.cs
- TransformPattern.cs
- DbParameterCollection.cs
- Brush.cs
- UriSchemeKeyedCollection.cs
- StagingAreaInputItem.cs
- WindowsPen.cs
- WorkflowViewStateService.cs
- ScriptManager.cs
- SafePEFileHandle.cs
- InputLanguage.cs
- DocumentReferenceCollection.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- TemplateFactory.cs
- XmlComplianceUtil.cs
- PolyLineSegment.cs
- ExternalCalls.cs
- DriveNotFoundException.cs
- QilPatternVisitor.cs
- SignHashRequest.cs
- X509RawDataKeyIdentifierClause.cs
- ExcludePathInfo.cs
- FrameworkTemplate.cs
- LinkLabel.cs
- ProtocolsConfiguration.cs
- RelOps.cs
- Fx.cs
- DataGridViewColumnCollection.cs
- WebPartEventArgs.cs
- DataMember.cs
- Menu.cs
- DmlSqlGenerator.cs
- LockedBorderGlyph.cs
- ImageCollectionEditor.cs
- CallbackHandler.cs
- ContentElementCollection.cs
- BindToObject.cs
- FixedSOMLineRanges.cs
- Comparer.cs
- Package.cs
- XPathNavigator.cs
- JsonServiceDocumentSerializer.cs
- DataBinding.cs
- KeyedCollection.cs
- GraphicsPath.cs
- RenderTargetBitmap.cs
- EntityContainer.cs
- HttpListenerContext.cs
- HwndHostAutomationPeer.cs
- PerformanceCounterPermissionEntry.cs
- EntityExpressionVisitor.cs
- MenuCommandsChangedEventArgs.cs
- BaseResourcesBuildProvider.cs
- RequestCachingSection.cs
- WindowsListViewGroupHelper.cs
- ColorMatrix.cs
- IssuerInformation.cs
- OutputScopeManager.cs
- SchemaSetCompiler.cs
- AttachInfo.cs
- XmlWriterSettings.cs
- DataListCommandEventArgs.cs
- ACE.cs
- LinqMaximalSubtreeNominator.cs
- PropertyNames.cs
- hresults.cs
- DbDataSourceEnumerator.cs
- LoginCancelEventArgs.cs
- ReaderWriterLock.cs
- URLAttribute.cs
- EventProxy.cs
- PropertyInfoSet.cs
- TreeViewItem.cs
- CustomAttributeFormatException.cs
- ReliableMessagingVersion.cs
- DropDownList.cs
- RecognizerInfo.cs
- MetadataPropertyvalue.cs
- CodeDomSerializationProvider.cs
- DataGridViewDataConnection.cs
- FacetDescriptionElement.cs