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
- RoutedEventArgs.cs
- PreviousTrackingServiceAttribute.cs
- ProtectedProviderSettings.cs
- FileVersion.cs
- DecoderNLS.cs
- ColumnCollectionEditor.cs
- PenCursorManager.cs
- ArraySortHelper.cs
- TypeCodeDomSerializer.cs
- StringAnimationBase.cs
- TdsParserHelperClasses.cs
- FunctionGenerator.cs
- DataChangedEventManager.cs
- __Error.cs
- SqlCommandBuilder.cs
- XslVisitor.cs
- Thumb.cs
- ClickablePoint.cs
- CompilerCollection.cs
- PropertyTabAttribute.cs
- TextParagraphView.cs
- MediaEntryAttribute.cs
- ErrorStyle.cs
- InvalidDataException.cs
- IsolatedStorageFilePermission.cs
- FactoryGenerator.cs
- SupportsEventValidationAttribute.cs
- SqlDataSourceFilteringEventArgs.cs
- SpeechUI.cs
- RemotingSurrogateSelector.cs
- ParseHttpDate.cs
- StreamGeometry.cs
- COM2AboutBoxPropertyDescriptor.cs
- ManipulationCompletedEventArgs.cs
- SmiEventSink.cs
- ConditionalAttribute.cs
- DataGridViewEditingControlShowingEventArgs.cs
- ViewManager.cs
- BidPrivateBase.cs
- ActivityInterfaces.cs
- XomlCompilerResults.cs
- SimpleTextLine.cs
- DefaultValueConverter.cs
- SettingsBase.cs
- DateBoldEvent.cs
- RadioButtonFlatAdapter.cs
- path.cs
- OleDbWrapper.cs
- OdbcEnvironmentHandle.cs
- TypographyProperties.cs
- ClientRolePrincipal.cs
- HtmlUtf8RawTextWriter.cs
- metadatamappinghashervisitor.cs
- SubpageParagraph.cs
- MembershipAdapter.cs
- OrderPreservingMergeHelper.cs
- StatusBarDrawItemEvent.cs
- MatrixTransform.cs
- TokenBasedSet.cs
- DropDownList.cs
- ConcatQueryOperator.cs
- BroadcastEventHelper.cs
- CompilerGlobalScopeAttribute.cs
- LinearQuaternionKeyFrame.cs
- InputGestureCollection.cs
- errorpatternmatcher.cs
- MetabaseServerConfig.cs
- WebPartExportVerb.cs
- DoubleAnimation.cs
- BinaryFormatter.cs
- ValidationSummary.cs
- DataGridSortingEventArgs.cs
- FixedFlowMap.cs
- CapabilitiesUse.cs
- ContentElement.cs
- TcpTransportBindingElement.cs
- DCSafeHandle.cs
- AnnotationStore.cs
- RichTextBox.cs
- BufferAllocator.cs
- SettingsAttributeDictionary.cs
- GenericWebPart.cs
- XmlNodeReader.cs
- DbParameterHelper.cs
- CommentGlyph.cs
- WebConvert.cs
- ManagedIStream.cs
- XmlBinaryReader.cs
- UiaCoreApi.cs
- Pair.cs
- RIPEMD160Managed.cs
- BaseCodeDomTreeGenerator.cs
- designeractionbehavior.cs
- FormsAuthentication.cs
- FastEncoder.cs
- SystemWebCachingSectionGroup.cs
- WrappedIUnknown.cs
- PathGradientBrush.cs
- SchemaSetCompiler.cs
- SectionRecord.cs