Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Objects / ObjectResult.cs / 2 / 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
- ProxyGenerator.cs
- BuildProvider.cs
- XmlDocument.cs
- HttpCapabilitiesSectionHandler.cs
- ScriptResourceMapping.cs
- Brush.cs
- TextViewElement.cs
- ImageUrlEditor.cs
- Delegate.cs
- fixedPageContentExtractor.cs
- XamlPoint3DCollectionSerializer.cs
- PrintingPermission.cs
- VectorValueSerializer.cs
- SafeHGlobalHandleCritical.cs
- SamlAuthorityBinding.cs
- XmlStringTable.cs
- PenThread.cs
- StylusPointDescription.cs
- LinkLabelLinkClickedEvent.cs
- Light.cs
- FastPropertyAccessor.cs
- GeneralTransform3D.cs
- MethodAccessException.cs
- XDeferredAxisSource.cs
- WebInvokeAttribute.cs
- DPTypeDescriptorContext.cs
- PDBReader.cs
- ResourceIDHelper.cs
- ServiceEndpointElementCollection.cs
- UriExt.cs
- AssemblySettingAttributes.cs
- Point3DAnimationBase.cs
- Matrix3DValueSerializer.cs
- ConstraintConverter.cs
- ReturnEventArgs.cs
- PeerApplicationLaunchInfo.cs
- HashUtility.cs
- SequenceFullException.cs
- FrameAutomationPeer.cs
- Track.cs
- SMSvcHost.cs
- SizeLimitedCache.cs
- RealizationContext.cs
- DbMetaDataCollectionNames.cs
- EventListener.cs
- WSSecurityPolicy.cs
- ValidateNames.cs
- StylusButtonCollection.cs
- DateTimeUtil.cs
- SelectedDatesCollection.cs
- XappLauncher.cs
- SqlConnectionString.cs
- TextTreeUndo.cs
- ProgressBar.cs
- NullableDecimalAverageAggregationOperator.cs
- TaskHelper.cs
- WindowsListView.cs
- ContextDataSourceContextData.cs
- ClientBuildManager.cs
- Point.cs
- RegexGroup.cs
- ipaddressinformationcollection.cs
- PermissionListSet.cs
- CheckBoxFlatAdapter.cs
- HostExecutionContextManager.cs
- SpotLight.cs
- OleDbParameter.cs
- XPathChildIterator.cs
- HighlightVisual.cs
- CompilerState.cs
- ListItemCollection.cs
- OlePropertyStructs.cs
- AssemblyBuilder.cs
- DSACryptoServiceProvider.cs
- StorageSetMapping.cs
- SecureUICommand.cs
- SiteMapNodeCollection.cs
- Color.cs
- ClientApiGenerator.cs
- Message.cs
- Registry.cs
- ListViewDeleteEventArgs.cs
- GrammarBuilderWildcard.cs
- Pair.cs
- AnonymousIdentificationModule.cs
- Translator.cs
- GenerateTemporaryTargetAssembly.cs
- DataServices.cs
- RepeaterCommandEventArgs.cs
- IntSecurity.cs
- PassportAuthenticationEventArgs.cs
- ButtonChrome.cs
- StyleTypedPropertyAttribute.cs
- WmiPutTraceRecord.cs
- FocusWithinProperty.cs
- SignatureHelper.cs
- FontDriver.cs
- OleCmdHelper.cs
- Cloud.cs
- GlyphRun.cs