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
- Control.cs
- DetailsViewActionList.cs
- WindowsFormsEditorServiceHelper.cs
- GacUtil.cs
- ConfigurationValidatorBase.cs
- ActivityContext.cs
- DataGridParentRows.cs
- PenLineCapValidation.cs
- PathGeometry.cs
- RijndaelManaged.cs
- ConsoleTraceListener.cs
- AppSettingsSection.cs
- CommunicationObject.cs
- ProcessManager.cs
- RightsManagementPermission.cs
- CustomDictionarySources.cs
- DrawListViewColumnHeaderEventArgs.cs
- WindowsRichEdit.cs
- Int16Converter.cs
- TraceLog.cs
- WebBrowserSiteBase.cs
- SmtpDateTime.cs
- VisualCollection.cs
- GridViewSortEventArgs.cs
- SettingsPropertyCollection.cs
- EntityContainerEmitter.cs
- ParamArrayAttribute.cs
- AstTree.cs
- MdiWindowListItemConverter.cs
- BitmapMetadataBlob.cs
- PageContentAsyncResult.cs
- SerialPinChanges.cs
- MailSettingsSection.cs
- TailCallAnalyzer.cs
- HostedBindingBehavior.cs
- TraceUtility.cs
- ViewStateException.cs
- PublisherMembershipCondition.cs
- SqlException.cs
- BufferedGraphicsManager.cs
- DataGridTableCollection.cs
- ControlCachePolicy.cs
- CustomErrorsSection.cs
- DataListItemCollection.cs
- Margins.cs
- DispatcherProcessingDisabled.cs
- InputLanguage.cs
- DecoderFallback.cs
- FormViewInsertedEventArgs.cs
- TransformerTypeCollection.cs
- ExtentCqlBlock.cs
- CellLabel.cs
- PointCollectionConverter.cs
- SelectionUIHandler.cs
- BitConverter.cs
- DesignerSerializationOptionsAttribute.cs
- RewritingValidator.cs
- EntityCommandExecutionException.cs
- RegexReplacement.cs
- IPPacketInformation.cs
- ISAPIRuntime.cs
- ImageFormat.cs
- CollectionConverter.cs
- WebPartUserCapability.cs
- FormViewInsertedEventArgs.cs
- Keywords.cs
- DesignUtil.cs
- Helpers.cs
- DataTableCollection.cs
- EncodingFallbackAwareXmlTextWriter.cs
- EnumValidator.cs
- DataGridState.cs
- RichTextBoxConstants.cs
- EntityTypeBase.cs
- ReflectionPermission.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ItemChangedEventArgs.cs
- CollectionConverter.cs
- TrackingRecordPreFilter.cs
- CodeComment.cs
- ManagedWndProcTracker.cs
- ChannelManagerHelpers.cs
- ZipIOLocalFileDataDescriptor.cs
- CustomTypeDescriptor.cs
- CancelEventArgs.cs
- ResourceExpression.cs
- AnnotationComponentChooser.cs
- SubMenuStyle.cs
- DataObjectMethodAttribute.cs
- MessageEnumerator.cs
- StatusBarDesigner.cs
- ComponentDispatcher.cs
- SqlMethodAttribute.cs
- GlyphRunDrawing.cs
- TabItem.cs
- ContextStaticAttribute.cs
- GridViewCellAutomationPeer.cs
- ProtocolsConfigurationHandler.cs
- SettingsProperty.cs
- Internal.cs