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
- ModelItemDictionary.cs
- UpdatableWrapper.cs
- CodeThrowExceptionStatement.cs
- VirtualDirectoryMappingCollection.cs
- SynchronizedInputAdaptor.cs
- TableProviderWrapper.cs
- ReflectionPermission.cs
- GcSettings.cs
- MemoryMappedViewStream.cs
- InternalConfigSettingsFactory.cs
- MenuItem.cs
- PropertyOverridesDialog.cs
- ErrorStyle.cs
- ErrorStyle.cs
- ProjectionQueryOptionExpression.cs
- TextRangeAdaptor.cs
- SmtpLoginAuthenticationModule.cs
- MetadataUtilsSmi.cs
- DoubleAnimation.cs
- XmlReader.cs
- OleDbConnectionInternal.cs
- ActivityBindForm.Designer.cs
- FixedSOMPageConstructor.cs
- DrawingVisualDrawingContext.cs
- SafeRightsManagementPubHandle.cs
- MessageUtil.cs
- COAUTHIDENTITY.cs
- BuiltInExpr.cs
- wgx_sdk_version.cs
- SecurityKeyType.cs
- XmlSchemas.cs
- WebDescriptionAttribute.cs
- ConfigXmlCDataSection.cs
- __TransparentProxy.cs
- DbProviderSpecificTypePropertyAttribute.cs
- EdmSchemaAttribute.cs
- HttpConfigurationSystem.cs
- GuidTagList.cs
- SqlDataSourceConfigureSortForm.cs
- HttpClientProtocol.cs
- SafeThemeHandle.cs
- BamlBinaryWriter.cs
- UpdateRecord.cs
- QuaternionConverter.cs
- LinkAreaEditor.cs
- InternalPermissions.cs
- ErrorReporting.cs
- ListViewTableCell.cs
- TcpChannelFactory.cs
- Calendar.cs
- CodeSnippetTypeMember.cs
- ObjectToModelValueConverter.cs
- HostAdapter.cs
- ProgressPage.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ResourcesBuildProvider.cs
- GeneralTransform2DTo3D.cs
- RoleManagerModule.cs
- COM2Properties.cs
- ProcessHostFactoryHelper.cs
- DataRowCollection.cs
- XmlElement.cs
- DataTableExtensions.cs
- IdentityModelStringsVersion1.cs
- SmiContextFactory.cs
- Message.cs
- DataShape.cs
- AddingNewEventArgs.cs
- UserControlAutomationPeer.cs
- ListChangedEventArgs.cs
- StyleTypedPropertyAttribute.cs
- StringFreezingAttribute.cs
- GroupLabel.cs
- AttributeUsageAttribute.cs
- Parameter.cs
- EventLogTraceListener.cs
- MembershipValidatePasswordEventArgs.cs
- StrokeCollectionConverter.cs
- Random.cs
- EndpointIdentityConverter.cs
- DrawListViewColumnHeaderEventArgs.cs
- ToolBarOverflowPanel.cs
- Page.cs
- ProcessHostMapPath.cs
- BinarySerializer.cs
- StructuredTypeEmitter.cs
- StringCollection.cs
- TrackingExtract.cs
- Delay.cs
- EDesignUtil.cs
- MDIClient.cs
- DescriptionAttribute.cs
- RoutedPropertyChangedEventArgs.cs
- SqlUserDefinedTypeAttribute.cs
- GlobalAclOperationRequirement.cs
- GraphicsPathIterator.cs
- BuilderInfo.cs
- _NtlmClient.cs
- ConstantProjectedSlot.cs
- DataTableClearEvent.cs