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
- CellCreator.cs
- ListenerConnectionDemuxer.cs
- SrgsGrammarCompiler.cs
- ParameterToken.cs
- FileDialog.cs
- PackageStore.cs
- HandlerBase.cs
- ThreadAttributes.cs
- ProgressBarAutomationPeer.cs
- Attributes.cs
- InvalidFilterCriteriaException.cs
- WebServiceParameterData.cs
- InvalidFilterCriteriaException.cs
- DelimitedListTraceListener.cs
- ProfileEventArgs.cs
- GridLength.cs
- MemberAccessException.cs
- EnumValAlphaComparer.cs
- BindingListCollectionView.cs
- MergablePropertyAttribute.cs
- MachineKey.cs
- XmlILStorageConverter.cs
- SqlInternalConnection.cs
- BuildProvidersCompiler.cs
- ObjectItemConventionAssemblyLoader.cs
- TextEvent.cs
- XmlValidatingReader.cs
- TextDocumentView.cs
- EpmSyndicationContentSerializer.cs
- ScaleTransform3D.cs
- BinaryCommonClasses.cs
- DataContractFormatAttribute.cs
- TemplateXamlTreeBuilder.cs
- DataGridViewColumnHeaderCell.cs
- ProjectionPlan.cs
- HttpListenerPrefixCollection.cs
- CacheDependency.cs
- UpDownBase.cs
- HtmlInputCheckBox.cs
- DisplayMemberTemplateSelector.cs
- UnsafeNativeMethods.cs
- TextBlockAutomationPeer.cs
- ImageAnimator.cs
- ConnectionStringsExpressionEditor.cs
- SqlProcedureAttribute.cs
- WebPartTracker.cs
- PropertyManager.cs
- IncrementalHitTester.cs
- Deserializer.cs
- StickyNote.cs
- SqlFileStream.cs
- WebPartDisplayMode.cs
- PngBitmapDecoder.cs
- HttpListenerResponse.cs
- KeyConstraint.cs
- CheckBox.cs
- WaitHandleCannotBeOpenedException.cs
- RadialGradientBrush.cs
- HttpWebRequest.cs
- SiteMapNodeItem.cs
- PanningMessageFilter.cs
- MimeObjectFactory.cs
- DataGridBoolColumn.cs
- OutputCacheProfile.cs
- RoleService.cs
- ShimAsPublicXamlType.cs
- FormsAuthentication.cs
- OracleInfoMessageEventArgs.cs
- FlowDocument.cs
- PointLightBase.cs
- Parser.cs
- DesignerRegionCollection.cs
- PrivilegedConfigurationManager.cs
- HtmlShimManager.cs
- ParsedAttributeCollection.cs
- PinnedBufferMemoryStream.cs
- MiniConstructorInfo.cs
- DateRangeEvent.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- DbProviderServices.cs
- PeerEndPoint.cs
- CorrelationManager.cs
- CodeParameterDeclarationExpression.cs
- TextSimpleMarkerProperties.cs
- XmlKeywords.cs
- MergePropertyDescriptor.cs
- PolyLineSegment.cs
- SessionParameter.cs
- ExeConfigurationFileMap.cs
- MappingException.cs
- CultureInfoConverter.cs
- DefaultTextStoreTextComposition.cs
- MsmqDecodeHelper.cs
- WebPartEditorOkVerb.cs
- XmlSchemaAttribute.cs
- RepeaterCommandEventArgs.cs
- TargetControlTypeCache.cs
- BStrWrapper.cs
- DPCustomTypeDescriptor.cs
- ToolTipService.cs