Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FrugalList.cs
- SqlWriter.cs
- TreeViewImageKeyConverter.cs
- XmlTextReader.cs
- BaseResourcesBuildProvider.cs
- OdbcConnectionOpen.cs
- SoapAttributes.cs
- SmtpMail.cs
- ComplexPropertyEntry.cs
- DrawingCollection.cs
- Exceptions.cs
- DynamicUpdateCommand.cs
- ByteStorage.cs
- UpdateException.cs
- DBParameter.cs
- TemplateField.cs
- ElementNotEnabledException.cs
- Pair.cs
- GridViewCellAutomationPeer.cs
- SystemColors.cs
- SqlDataReader.cs
- CallbackValidator.cs
- UIElement.cs
- FontStretch.cs
- UDPClient.cs
- ResolveNameEventArgs.cs
- SerializationInfoEnumerator.cs
- WebPartEditVerb.cs
- LabelEditEvent.cs
- PageWrapper.cs
- CLRBindingWorker.cs
- MulticastDelegate.cs
- PopupRoot.cs
- GenericTypeParameterConverter.cs
- CollectionConverter.cs
- Utils.cs
- ConstrainedDataObject.cs
- MultipleViewProviderWrapper.cs
- ConstrainedDataObject.cs
- BamlLocalizationDictionary.cs
- ActiveXHelper.cs
- OdbcInfoMessageEvent.cs
- ParserHooks.cs
- ParserExtension.cs
- Validator.cs
- DataGridTextColumn.cs
- FixedPageAutomationPeer.cs
- XmlSchemaComplexContentRestriction.cs
- ConditionalExpression.cs
- Span.cs
- ScrollItemPattern.cs
- BindToObject.cs
- PropertyEmitter.cs
- TextFormatterHost.cs
- DrawingBrush.cs
- SoapFormatterSinks.cs
- Action.cs
- FtpCachePolicyElement.cs
- MarkedHighlightComponent.cs
- NamespaceEmitter.cs
- CodeSnippetCompileUnit.cs
- ContentOperations.cs
- SortQuery.cs
- GenericIdentity.cs
- EventEntry.cs
- DataGridViewControlCollection.cs
- Point3DIndependentAnimationStorage.cs
- RuleSet.cs
- BinaryWriter.cs
- TimeSpan.cs
- TransformationRules.cs
- SocketPermission.cs
- ComponentManagerBroker.cs
- Link.cs
- ConstrainedDataObject.cs
- HiddenField.cs
- Stack.cs
- GridView.cs
- RefreshEventArgs.cs
- ComplexBindingPropertiesAttribute.cs
- RemoveFromCollection.cs
- DBAsyncResult.cs
- OrderingQueryOperator.cs
- ConfigXmlComment.cs
- UserNameSecurityTokenAuthenticator.cs
- CSharpCodeProvider.cs
- ComplexTypeEmitter.cs
- XmlnsDictionary.cs
- ManagementScope.cs
- RectangleHotSpot.cs
- HwndKeyboardInputProvider.cs
- CustomAttributeFormatException.cs
- DocumentSchemaValidator.cs
- HttpCachePolicy.cs
- COM2ExtendedTypeConverter.cs
- UserMapPath.cs
- OverlappedAsyncResult.cs
- XdrBuilder.cs
- PrintPreviewDialog.cs
- DependencyPropertyConverter.cs