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
- SrgsElementFactoryCompiler.cs
- StateWorkerRequest.cs
- DefaultClaimSet.cs
- WebPartExportVerb.cs
- ADMembershipUser.cs
- Boolean.cs
- DBAsyncResult.cs
- AuthenticationServiceManager.cs
- IteratorDescriptor.cs
- QilTypeChecker.cs
- CompiledQueryCacheKey.cs
- RoleManagerEventArgs.cs
- Parameter.cs
- QueryRewriter.cs
- CatalogPartCollection.cs
- GroupDescription.cs
- DataColumnPropertyDescriptor.cs
- RegexTypeEditor.cs
- TypeSystem.cs
- CancellationHandlerDesigner.cs
- UnsignedPublishLicense.cs
- DynamicPropertyHolder.cs
- DataGridHeaderBorder.cs
- FormatStringEditor.cs
- CatalogPart.cs
- PerformanceCounterPermissionEntryCollection.cs
- XmlSignatureProperties.cs
- ConfigurationSectionCollection.cs
- AssignDesigner.xaml.cs
- CalendarTable.cs
- StateInitialization.cs
- SurrogateChar.cs
- ReceiveActivityValidator.cs
- sitestring.cs
- OdbcConnectionOpen.cs
- DataGridViewSelectedColumnCollection.cs
- WaitHandle.cs
- HandlerMappingMemo.cs
- SourceElementsCollection.cs
- ConstantCheck.cs
- FixedDSBuilder.cs
- Main.cs
- ServicePoint.cs
- FixedDocument.cs
- UnsafeNativeMethods.cs
- wgx_exports.cs
- XmlParserContext.cs
- odbcmetadatacollectionnames.cs
- CategoryAttribute.cs
- _NegotiateClient.cs
- Sequence.cs
- SpellCheck.cs
- CircleHotSpot.cs
- Matrix3DStack.cs
- hwndwrapper.cs
- UpdateProgress.cs
- TypeDescriptionProviderAttribute.cs
- CircleHotSpot.cs
- MimeWriter.cs
- DispatcherOperation.cs
- WindowsGraphics2.cs
- ArgumentOutOfRangeException.cs
- Stylus.cs
- XsltInput.cs
- PolyBezierSegment.cs
- SqlStatistics.cs
- TextTrailingWordEllipsis.cs
- UIElement3D.cs
- TextCompositionEventArgs.cs
- HandlerElement.cs
- BitmapData.cs
- VariantWrapper.cs
- ConnectionPool.cs
- MultiDataTrigger.cs
- Message.cs
- _ConnectOverlappedAsyncResult.cs
- ToolStripDropDownItem.cs
- Utility.cs
- DeflateInput.cs
- XmlWrappingWriter.cs
- NotifyInputEventArgs.cs
- PasswordRecovery.cs
- TreeViewCancelEvent.cs
- DragDeltaEventArgs.cs
- ElapsedEventArgs.cs
- SelectedGridItemChangedEvent.cs
- VectorCollectionConverter.cs
- DataIdProcessor.cs
- MouseDevice.cs
- WsdlExporter.cs
- brushes.cs
- SectionInformation.cs
- CapabilitiesPattern.cs
- DataGridViewCellStateChangedEventArgs.cs
- DocComment.cs
- RouteItem.cs
- SynchronizedDispatch.cs
- ToolStripSeparatorRenderEventArgs.cs
- StrokeDescriptor.cs
- TimeoutValidationAttribute.cs