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
- RecordBuilder.cs
- TextServicesCompartmentEventSink.cs
- RadioButtonFlatAdapter.cs
- XmlSchemaAttribute.cs
- ExpressionNode.cs
- MatrixAnimationUsingPath.cs
- StringDictionary.cs
- HttpWriter.cs
- CompiledQuery.cs
- BrowserDefinition.cs
- WindowsListViewGroupSubsetLink.cs
- XmlAtomicValue.cs
- ChannelTraceRecord.cs
- RotateTransform3D.cs
- CallContext.cs
- ConfigXmlSignificantWhitespace.cs
- StaticResourceExtension.cs
- SkinBuilder.cs
- DataGridViewDataConnection.cs
- ChildDocumentBlock.cs
- TabControl.cs
- Point3DValueSerializer.cs
- WMIInterop.cs
- TableCellAutomationPeer.cs
- XmlTextReaderImpl.cs
- PeerNameRecord.cs
- MailHeaderInfo.cs
- ArrayWithOffset.cs
- wmiprovider.cs
- FlowDocumentPageViewerAutomationPeer.cs
- StickyNoteAnnotations.cs
- VectorConverter.cs
- NativeMethods.cs
- ReadWriteObjectLock.cs
- DbFunctionCommandTree.cs
- SpStreamWrapper.cs
- FixedSchema.cs
- SetterBase.cs
- AggregationMinMaxHelpers.cs
- CompilationUnit.cs
- SelectionItemProviderWrapper.cs
- HuffmanTree.cs
- SqlInfoMessageEvent.cs
- MenuItemCollection.cs
- StylusLogic.cs
- ExpressionsCollectionConverter.cs
- EditorAttribute.cs
- LineGeometry.cs
- XmlSerializerAssemblyAttribute.cs
- SaveFileDialog.cs
- EdmError.cs
- FontStretchConverter.cs
- UInt32Converter.cs
- ReceiveSecurityHeaderEntry.cs
- DrawListViewSubItemEventArgs.cs
- CommandID.cs
- SecurityKeyIdentifier.cs
- FieldDescriptor.cs
- PersonalizationState.cs
- DataKeyArray.cs
- CommentEmitter.cs
- SQLCharsStorage.cs
- DoubleLinkListEnumerator.cs
- ClientScriptManagerWrapper.cs
- MemoryMappedFile.cs
- XmlCountingReader.cs
- ExpressionPrinter.cs
- SpecularMaterial.cs
- MeshGeometry3D.cs
- MenuBase.cs
- StylusEventArgs.cs
- DesignerSerializerAttribute.cs
- SelectionBorderGlyph.cs
- DataConnectionHelper.cs
- DbTransaction.cs
- AutomationElementCollection.cs
- ListArgumentProvider.cs
- StatusStrip.cs
- NumericExpr.cs
- CodeTypeOfExpression.cs
- SoapFormatExtensions.cs
- _DomainName.cs
- WindowsSysHeader.cs
- MetadataPropertyvalue.cs
- BooleanFacetDescriptionElement.cs
- MouseButton.cs
- AsymmetricSignatureDeformatter.cs
- BoundsDrawingContextWalker.cs
- RepeaterItem.cs
- NoneExcludedImageIndexConverter.cs
- DataDocumentXPathNavigator.cs
- IndexedEnumerable.cs
- TemplateInstanceAttribute.cs
- ExpressionQuoter.cs
- WizardPanel.cs
- TaiwanCalendar.cs
- LayoutEditorPart.cs
- IndexedSelectQueryOperator.cs
- SizeValueSerializer.cs
- ConstraintStruct.cs