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
- HttpCachePolicyElement.cs
- TraceListeners.cs
- UTF8Encoding.cs
- PermissionSetEnumerator.cs
- __Error.cs
- QfeChecker.cs
- IPipelineRuntime.cs
- _KerberosClient.cs
- HyperLink.cs
- FixedHighlight.cs
- AutomationAttributeInfo.cs
- BufferedStream2.cs
- SmtpNtlmAuthenticationModule.cs
- TriState.cs
- Descriptor.cs
- TypeUtil.cs
- PropertyToken.cs
- MasterPageParser.cs
- StringSorter.cs
- SspiNegotiationTokenProvider.cs
- HtmlElementCollection.cs
- ErrorWrapper.cs
- MissingMemberException.cs
- ContextMarshalException.cs
- HttpSysSettings.cs
- StateDesignerConnector.cs
- TextElementEditingBehaviorAttribute.cs
- DesignTimeParseData.cs
- ObjectAnimationUsingKeyFrames.cs
- DeploymentExceptionMapper.cs
- IndependentAnimationStorage.cs
- InheritanceContextHelper.cs
- EntityDataReader.cs
- DetailsViewAutoFormat.cs
- SerializerWriterEventHandlers.cs
- Helpers.cs
- MetafileHeaderWmf.cs
- MouseEventArgs.cs
- Transactions.cs
- XhtmlBasicLinkAdapter.cs
- BitmapEffectOutputConnector.cs
- MatchSingleFxEngineOpcode.cs
- SrgsElementFactory.cs
- arclist.cs
- PropertySourceInfo.cs
- configsystem.cs
- ComponentEditorForm.cs
- RadioButtonFlatAdapter.cs
- CursorConverter.cs
- WebPartCatalogAddVerb.cs
- ProfileSettings.cs
- ToolStripEditorManager.cs
- Propagator.Evaluator.cs
- Size.cs
- CharAnimationUsingKeyFrames.cs
- SelectQueryOperator.cs
- SafeFindHandle.cs
- SamlAssertionKeyIdentifierClause.cs
- ConfigurationLocationCollection.cs
- XamlHostingConfiguration.cs
- XslNumber.cs
- SqlEnums.cs
- VersionPair.cs
- ProtocolsConfigurationEntry.cs
- PolyBezierSegment.cs
- XslVisitor.cs
- HttpRequest.cs
- DashStyles.cs
- RelationshipEndMember.cs
- DataGridViewCellValidatingEventArgs.cs
- TypeConverterAttribute.cs
- XsltArgumentList.cs
- BoundsDrawingContextWalker.cs
- DataControlCommands.cs
- ResourceReferenceKeyNotFoundException.cs
- codemethodreferenceexpression.cs
- ExpandCollapseProviderWrapper.cs
- SiteIdentityPermission.cs
- Gdiplus.cs
- DataAdapter.cs
- TimeZoneInfo.cs
- PermissionSetEnumerator.cs
- CreateParams.cs
- Attributes.cs
- DecimalAnimationBase.cs
- DNS.cs
- CornerRadiusConverter.cs
- ModifiableIteratorCollection.cs
- HashMembershipCondition.cs
- Policy.cs
- Renderer.cs
- BmpBitmapDecoder.cs
- ListBindableAttribute.cs
- ColorConverter.cs
- TextBlock.cs
- ListItemCollection.cs
- RecognitionResult.cs
- TextElementEnumerator.cs
- RowToParametersTransformer.cs
- hresults.cs