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
- ItemContainerGenerator.cs
- ComponentResourceManager.cs
- ACL.cs
- GridLengthConverter.cs
- ArgumentException.cs
- DelegateCompletionCallbackWrapper.cs
- XmlSchemaAnnotation.cs
- ConnectionPointCookie.cs
- TextEmbeddedObject.cs
- OutOfProcStateClientManager.cs
- DispatcherFrame.cs
- HtmlAnchor.cs
- CryptoConfig.cs
- WindowsContainer.cs
- Trace.cs
- SchemaCollectionCompiler.cs
- Blend.cs
- PixelFormats.cs
- DocumentSequence.cs
- MemberAccessException.cs
- XmlKeywords.cs
- DataColumnMapping.cs
- ControlPropertyNameConverter.cs
- ColumnWidthChangingEvent.cs
- CacheAxisQuery.cs
- FrameworkObject.cs
- ViewStateException.cs
- CategoryNameCollection.cs
- DataSourceCacheDurationConverter.cs
- ContentElement.cs
- FilterUserControlBase.cs
- FontEmbeddingManager.cs
- XmlSchemaSimpleTypeRestriction.cs
- RC2CryptoServiceProvider.cs
- RecordsAffectedEventArgs.cs
- EntityViewContainer.cs
- ManualResetEvent.cs
- HttpRuntimeSection.cs
- Slider.cs
- sqlmetadatafactory.cs
- Selection.cs
- ArithmeticException.cs
- DeleteMemberBinder.cs
- XamlWriter.cs
- SqlUserDefinedAggregateAttribute.cs
- RadioButton.cs
- StateMachineWorkflowDesigner.cs
- DiscoveryClientDuplexChannel.cs
- DataGridItemAttachedStorage.cs
- FontDialog.cs
- BuildProvider.cs
- SymbolTable.cs
- DictionaryEntry.cs
- HttpSessionStateBase.cs
- BindingContext.cs
- CalendarDesigner.cs
- StubHelpers.cs
- ClientSession.cs
- SpecularMaterial.cs
- ValidationSummary.cs
- SortKey.cs
- WsatServiceAddress.cs
- EditBehavior.cs
- FixedSOMContainer.cs
- AuthenticationModulesSection.cs
- XmlSchemaObjectTable.cs
- LinearGradientBrush.cs
- CompiledQueryCacheEntry.cs
- AdornerDecorator.cs
- MemberHolder.cs
- ProfileModule.cs
- ProviderSettingsCollection.cs
- RuleSettingsCollection.cs
- ComponentSerializationService.cs
- TimelineGroup.cs
- Literal.cs
- Overlapped.cs
- ITreeGenerator.cs
- XmlSigningNodeWriter.cs
- ColorPalette.cs
- UInt64Storage.cs
- IsolatedStorageSecurityState.cs
- ObjectViewFactory.cs
- HashHelper.cs
- ListViewGroup.cs
- XmlWriter.cs
- PartialTrustHelpers.cs
- Int64KeyFrameCollection.cs
- WorkBatch.cs
- TimeoutException.cs
- SuppressMergeCheckAttribute.cs
- MbpInfo.cs
- AdRotator.cs
- SiteMapDataSource.cs
- ImportedPolicyConversionContext.cs
- ElementMarkupObject.cs
- x509utils.cs
- DataServiceHost.cs
- MultipartIdentifier.cs
- shaperfactoryquerycachekey.cs