Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- StylusPlugInCollection.cs
- RepeatButton.cs
- SafeNativeMethods.cs
- SafeArchiveContext.cs
- BulletedList.cs
- JsonServiceDocumentSerializer.cs
- SystemInformation.cs
- XmlUTF8TextReader.cs
- XpsDocument.cs
- NameValueConfigurationElement.cs
- ResourceDisplayNameAttribute.cs
- ExpressionReplacer.cs
- EventRouteFactory.cs
- RtType.cs
- ServiceMoniker.cs
- DataGridViewRowEventArgs.cs
- ReadOnlyAttribute.cs
- OdbcErrorCollection.cs
- Table.cs
- DiscreteKeyFrames.cs
- DataGridSortCommandEventArgs.cs
- MatrixTransform.cs
- TrackPointCollection.cs
- LazyTextWriterCreator.cs
- FileEnumerator.cs
- FixedSOMSemanticBox.cs
- TTSVoice.cs
- ReadWriteSpinLock.cs
- CommunicationObjectAbortedException.cs
- DataBindingCollection.cs
- BinHexDecoder.cs
- TabletCollection.cs
- GridPatternIdentifiers.cs
- BinaryObjectInfo.cs
- DataTemplate.cs
- SrgsGrammarCompiler.cs
- QueryContinueDragEvent.cs
- RelationalExpressions.cs
- ScaleTransform3D.cs
- Geometry3D.cs
- PropertyIDSet.cs
- DynamicResourceExtension.cs
- DependencyObjectPropertyDescriptor.cs
- BitStream.cs
- ObjectAnimationBase.cs
- XPathNodePointer.cs
- ClipboardData.cs
- DataViewListener.cs
- NamespaceListProperty.cs
- MasterPageParser.cs
- _CacheStreams.cs
- DLinqAssociationProvider.cs
- TextEditorSpelling.cs
- MetadataArtifactLoaderComposite.cs
- Evidence.cs
- BulletedList.cs
- ViewStateException.cs
- SqlMethods.cs
- DesignObjectWrapper.cs
- FontFamily.cs
- ScriptControlDescriptor.cs
- ToolStripContentPanel.cs
- DurableTimerExtension.cs
- Exceptions.cs
- HashAlgorithm.cs
- SkinBuilder.cs
- MouseButton.cs
- OdbcParameterCollection.cs
- QilName.cs
- DirectoryInfo.cs
- ManifestResourceInfo.cs
- XsdDateTime.cs
- CreateParams.cs
- BindingRestrictions.cs
- COM2ExtendedTypeConverter.cs
- Rect3DConverter.cs
- ControlFilterExpression.cs
- RequestBringIntoViewEventArgs.cs
- ColorAnimation.cs
- HtmlHead.cs
- SelfIssuedAuthProofToken.cs
- Win32SafeHandles.cs
- DataFieldConverter.cs
- PageSettings.cs
- BehaviorEditorPart.cs
- DesignTimeTemplateParser.cs
- InstanceDataCollectionCollection.cs
- MarshalByValueComponent.cs
- ValidationError.cs
- VisualState.cs
- RegistrationServices.cs
- RepeatButtonAutomationPeer.cs
- DebugView.cs
- CodeIterationStatement.cs
- StructuredTypeInfo.cs
- DropDownButton.cs
- SystemIPGlobalStatistics.cs
- _BaseOverlappedAsyncResult.cs
- QueryConverter.cs
- NavigationWindow.cs