Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- QueryOutputWriter.cs
- SoapTypeAttribute.cs
- NameScopePropertyAttribute.cs
- RelationshipConstraintValidator.cs
- HostingPreferredMapPath.cs
- TextTreeInsertUndoUnit.cs
- RenderTargetBitmap.cs
- XmlSchemaComplexContentRestriction.cs
- RoutingSection.cs
- Pointer.cs
- UnsafeNativeMethodsCLR.cs
- NegationPusher.cs
- ValueType.cs
- XmlAnyElementAttributes.cs
- CommonObjectSecurity.cs
- XmlSequenceWriter.cs
- GridProviderWrapper.cs
- DataObjectFieldAttribute.cs
- LinkClickEvent.cs
- SchemaCollectionPreprocessor.cs
- BinaryConverter.cs
- DataGridViewImageCell.cs
- DeviceContexts.cs
- CLRBindingWorker.cs
- AdornerLayer.cs
- XPathNodeIterator.cs
- UriExt.cs
- BindingManagerDataErrorEventArgs.cs
- PersistenceTask.cs
- StateRuntime.cs
- RoamingStoreFileUtility.cs
- TransactionContextManager.cs
- CodeCompiler.cs
- ListViewItem.cs
- RewritingSimplifier.cs
- FilteredAttributeCollection.cs
- MessageContractImporter.cs
- WebSysDescriptionAttribute.cs
- EntityWrapperFactory.cs
- TextSegment.cs
- ResourceCollectionInfo.cs
- ContainsSearchOperator.cs
- ModuleBuilder.cs
- XmlNode.cs
- PriorityChain.cs
- ToolStripScrollButton.cs
- ArgumentValidation.cs
- UniqueConstraint.cs
- ProcessMonitor.cs
- SiteOfOriginPart.cs
- ComplexPropertyEntry.cs
- HyperLink.cs
- SchemaImporter.cs
- CodeMethodInvokeExpression.cs
- UnsignedPublishLicense.cs
- RenderingBiasValidation.cs
- MexNamedPipeBindingCollectionElement.cs
- WebPartVerbsEventArgs.cs
- OdbcFactory.cs
- ScalarConstant.cs
- MemoryMappedView.cs
- DataTable.cs
- FixedLineResult.cs
- KeyFrames.cs
- ErrorWebPart.cs
- RectConverter.cs
- ElementMarkupObject.cs
- DbMetaDataFactory.cs
- SoapElementAttribute.cs
- COM2ComponentEditor.cs
- RequestCacheValidator.cs
- DataGridViewCellStyle.cs
- ipaddressinformationcollection.cs
- tabpagecollectioneditor.cs
- XmlCharCheckingWriter.cs
- SubpageParaClient.cs
- ArgumentDirectionHelper.cs
- SynchronizedDispatch.cs
- StylusButtonCollection.cs
- Int16Converter.cs
- UpdateProgress.cs
- Internal.cs
- GenericUriParser.cs
- ContextStaticAttribute.cs
- ListViewItemMouseHoverEvent.cs
- NavigationProgressEventArgs.cs
- EncodingFallbackAwareXmlTextWriter.cs
- EncoderBestFitFallback.cs
- MsmqAuthenticationMode.cs
- CodeExpressionCollection.cs
- DataGridViewColumnConverter.cs
- RemoteWebConfigurationHostServer.cs
- WorkflowOperationBehavior.cs
- PreviewPrintController.cs
- CharKeyFrameCollection.cs
- BindingSourceDesigner.cs
- WebPartMovingEventArgs.cs
- ContentPresenter.cs
- GenerateScriptTypeAttribute.cs
- SiteMapSection.cs