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
- RequestTimeoutManager.cs
- LockCookie.cs
- ComponentFactoryHelpers.cs
- Pkcs7Signer.cs
- XmlArrayAttribute.cs
- URLBuilder.cs
- DockingAttribute.cs
- FactoryMaker.cs
- SystemWebSectionGroup.cs
- PropertyTabChangedEvent.cs
- EncoderExceptionFallback.cs
- SQLBytes.cs
- PtsHelper.cs
- Vector3DValueSerializer.cs
- Native.cs
- DocumentPageHost.cs
- SocketInformation.cs
- PriorityChain.cs
- DBBindings.cs
- LinkUtilities.cs
- DocumentAutomationPeer.cs
- DataGridViewTextBoxEditingControl.cs
- UserNamePasswordServiceCredential.cs
- _CacheStreams.cs
- Image.cs
- ListControl.cs
- Hex.cs
- Regex.cs
- XmlCharCheckingWriter.cs
- DisplayMemberTemplateSelector.cs
- ReadOnlyNameValueCollection.cs
- HttpException.cs
- prefixendpointaddressmessagefiltertable.cs
- HostVisual.cs
- ObjectNavigationPropertyMapping.cs
- MatrixTransform.cs
- Int16.cs
- ProfileServiceManager.cs
- DefaultClaimSet.cs
- DbTransaction.cs
- StateWorkerRequest.cs
- UserControlParser.cs
- BaseTemplateCodeDomTreeGenerator.cs
- LambdaCompiler.Unary.cs
- TextProperties.cs
- ImageMap.cs
- MultipartContentParser.cs
- HWStack.cs
- Main.cs
- ResourceExpression.cs
- BaseDataListActionList.cs
- TextEditorCopyPaste.cs
- DebuggerAttributes.cs
- GroupBoxRenderer.cs
- DocumentViewerConstants.cs
- ProxyGenerator.cs
- ModelPropertyCollectionImpl.cs
- AbstractDataSvcMapFileLoader.cs
- ConfigXmlComment.cs
- TripleDES.cs
- WebPartZoneCollection.cs
- FixUpCollection.cs
- ProxyManager.cs
- GridItemPattern.cs
- CombinedGeometry.cs
- HttpResponse.cs
- AutoResetEvent.cs
- BridgeDataReader.cs
- BaseTemplateParser.cs
- GB18030Encoding.cs
- SystemEvents.cs
- ACE.cs
- filewebrequest.cs
- TextSegment.cs
- GradientStopCollection.cs
- FrameworkPropertyMetadata.cs
- ApplicationTrust.cs
- LicenseProviderAttribute.cs
- XmlReaderDelegator.cs
- DateBoldEvent.cs
- ShutDownListener.cs
- NamespaceExpr.cs
- FontEditor.cs
- FunctionMappingTranslator.cs
- DefaultPrintController.cs
- SystemEvents.cs
- ToolStripItemEventArgs.cs
- RegexCode.cs
- BulletedListEventArgs.cs
- OdbcError.cs
- AuthenticationServiceManager.cs
- WindowsListViewItemCheckBox.cs
- _LocalDataStoreMgr.cs
- ScriptDescriptor.cs
- MapPathBasedVirtualPathProvider.cs
- HwndHost.cs
- GACMembershipCondition.cs
- Point3DCollectionConverter.cs
- GroupItemAutomationPeer.cs
- CharacterBuffer.cs