Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Objects / ObjectResult.cs / 1 / 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
- GridViewActionList.cs
- ApplicationSecurityManager.cs
- SingleAnimationUsingKeyFrames.cs
- Regex.cs
- basecomparevalidator.cs
- SqlClientWrapperSmiStreamChars.cs
- PerformanceCounterLib.cs
- SchemaTableOptionalColumn.cs
- TextElementCollectionHelper.cs
- Parser.cs
- SafeFileMapViewHandle.cs
- NamedElement.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ReflectEventDescriptor.cs
- AnyReturnReader.cs
- __Filters.cs
- Viewport2DVisual3D.cs
- UnsafeNativeMethods.cs
- propertyentry.cs
- SQLSingleStorage.cs
- ConfigurationCollectionAttribute.cs
- CriticalHandle.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- PolicyImporterElement.cs
- ListBoxAutomationPeer.cs
- MediaScriptCommandRoutedEventArgs.cs
- HttpListenerPrefixCollection.cs
- ControlLocalizer.cs
- UidManager.cs
- ResourcesChangeInfo.cs
- Menu.cs
- HostingEnvironmentException.cs
- DefaultBindingPropertyAttribute.cs
- GeneralTransform3DGroup.cs
- DataGridHyperlinkColumn.cs
- UriSectionData.cs
- EventEntry.cs
- TableItemPatternIdentifiers.cs
- WorkflowDefinitionDispenser.cs
- RequestTimeoutManager.cs
- DataRowCollection.cs
- RawStylusInputCustomData.cs
- EndEvent.cs
- StylusPointPropertyId.cs
- CollectionBuilder.cs
- HttpRequestCacheValidator.cs
- TemplateBaseAction.cs
- XmlSerializationGeneratedCode.cs
- TextSpan.cs
- CustomErrorsSection.cs
- SchemaNames.cs
- MenuBindingsEditor.cs
- PageBreakRecord.cs
- AppDomainInstanceProvider.cs
- TableItemPattern.cs
- PolicyException.cs
- SafeProcessHandle.cs
- AdCreatedEventArgs.cs
- FaultHandlingFilter.cs
- KeyboardNavigation.cs
- ConnectionsZone.cs
- MsmqChannelListenerBase.cs
- FileDialog_Vista_Interop.cs
- Merger.cs
- AppearanceEditorPart.cs
- Bits.cs
- ExternalException.cs
- CaseStatementSlot.cs
- DelegateCompletionCallbackWrapper.cs
- SystemIdentity.cs
- Rect3DConverter.cs
- QilUnary.cs
- KnownTypesProvider.cs
- UInt16Converter.cs
- ItemCheckedEvent.cs
- BevelBitmapEffect.cs
- DBAsyncResult.cs
- OdbcConnectionStringbuilder.cs
- DesignerTransactionCloseEvent.cs
- UnicodeEncoding.cs
- GradientStop.cs
- DtcInterfaces.cs
- EntityConnectionStringBuilder.cs
- AffineTransform3D.cs
- Peer.cs
- SelectiveScrollingGrid.cs
- MemoryMappedViewStream.cs
- DSACryptoServiceProvider.cs
- TriggerAction.cs
- ResourceDescriptionAttribute.cs
- HtmlTableCell.cs
- TransformerTypeCollection.cs
- SizeConverter.cs
- Function.cs
- ResolvedKeyFrameEntry.cs
- SecurityRuntime.cs
- ServiceMemoryGates.cs
- _BufferOffsetSize.cs
- ViewBase.cs
- TimeStampChecker.cs