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
- BinaryMethodMessage.cs
- EmptyReadOnlyDictionaryInternal.cs
- MyContact.cs
- PersistenceMetadataNamespace.cs
- BCryptNative.cs
- TraceContextEventArgs.cs
- ProviderException.cs
- ToolStripSplitButton.cs
- XmlTypeMapping.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- CalendarDay.cs
- COM2ColorConverter.cs
- AxHost.cs
- TagMapInfo.cs
- IdentifierService.cs
- CodeArgumentReferenceExpression.cs
- DocumentSequenceHighlightLayer.cs
- BamlRecordHelper.cs
- ToolStripSeparatorRenderEventArgs.cs
- SizeAnimationClockResource.cs
- ExtensionFile.cs
- StatusStrip.cs
- FlowDocumentPaginator.cs
- Set.cs
- ConstraintConverter.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- Reference.cs
- CodeGotoStatement.cs
- WSHttpBindingCollectionElement.cs
- DocumentViewerConstants.cs
- GenericsInstances.cs
- ListBindingConverter.cs
- ZipIOBlockManager.cs
- InputScopeConverter.cs
- HttpDictionary.cs
- PageThemeParser.cs
- DesignTimeVisibleAttribute.cs
- SqlReferenceCollection.cs
- ListViewDataItem.cs
- WebPartConnectionsCancelEventArgs.cs
- EdmType.cs
- DataErrorValidationRule.cs
- ImageListImage.cs
- DBPropSet.cs
- SqlBuilder.cs
- UrlMappingsSection.cs
- DependencyObjectProvider.cs
- EmptyImpersonationContext.cs
- ExtendedProtectionPolicy.cs
- TriggerAction.cs
- SecUtil.cs
- CatalogZoneBase.cs
- Fx.cs
- DbConnectionHelper.cs
- Point3DConverter.cs
- CompiledIdentityConstraint.cs
- TextRunTypographyProperties.cs
- _NetworkingPerfCounters.cs
- datacache.cs
- NetworkCredential.cs
- KeyPressEvent.cs
- Model3DCollection.cs
- DateTimeOffsetStorage.cs
- HierarchicalDataTemplate.cs
- AddInBase.cs
- DictionaryBase.cs
- WindowInteractionStateTracker.cs
- GridSplitter.cs
- XamlFilter.cs
- EnumBuilder.cs
- ExpanderAutomationPeer.cs
- SystemIPGlobalStatistics.cs
- TextOptionsInternal.cs
- DocumentOrderQuery.cs
- SpotLight.cs
- BinaryNode.cs
- TitleStyle.cs
- RelationshipEntry.cs
- KeyValueInternalCollection.cs
- LinkLabelLinkClickedEvent.cs
- FunctionQuery.cs
- FieldToken.cs
- SimpleExpression.cs
- AliasedSlot.cs
- ProjectionCamera.cs
- SizeConverter.cs
- SqlClientWrapperSmiStream.cs
- GeneratedCodeAttribute.cs
- TableStyle.cs
- ListViewDeleteEventArgs.cs
- WebPartDescriptionCollection.cs
- TypeHelpers.cs
- CapabilitiesRule.cs
- UnionCqlBlock.cs
- ExtendedTransformFactory.cs
- RuleSettings.cs
- WizardStepBase.cs
- _Semaphore.cs
- MessageLoggingElement.cs
- WebPartManagerInternals.cs