Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------- //// 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
- RangeContentEnumerator.cs
- SiteMapHierarchicalDataSourceView.cs
- Codec.cs
- MemberProjectedSlot.cs
- RefExpr.cs
- StringAttributeCollection.cs
- InvalidWMPVersionException.cs
- ClrPerspective.cs
- ExpressionParser.cs
- BuildResultCache.cs
- SimpleLine.cs
- XmlValidatingReaderImpl.cs
- Action.cs
- SqlProcedureAttribute.cs
- ObjectStateEntry.cs
- Codec.cs
- ConstructorArgumentAttribute.cs
- ContextMenuStrip.cs
- SqlBulkCopyColumnMapping.cs
- HideDisabledControlAdapter.cs
- Pen.cs
- NonVisualControlAttribute.cs
- DataGridViewCellParsingEventArgs.cs
- storagemappingitemcollection.viewdictionary.cs
- XhtmlConformanceSection.cs
- ZipIOLocalFileHeader.cs
- ReadOnlyObservableCollection.cs
- ExtenderControl.cs
- CheckedListBox.cs
- OpenTypeCommon.cs
- VolatileResourceManager.cs
- ByteStream.cs
- BamlRecords.cs
- TextFormatterImp.cs
- XmlValidatingReader.cs
- CookielessData.cs
- XpsFontSerializationService.cs
- ConfigurationConverterBase.cs
- DisplayMemberTemplateSelector.cs
- NameValueConfigurationCollection.cs
- XhtmlBasicObjectListAdapter.cs
- TaiwanCalendar.cs
- SortKey.cs
- TextInfo.cs
- Table.cs
- BaseTransportHeaders.cs
- TableCell.cs
- __Filters.cs
- CombinedGeometry.cs
- SR.cs
- ClientScriptManager.cs
- RadioButton.cs
- QueryOptionExpression.cs
- GroupAggregateExpr.cs
- SoapIncludeAttribute.cs
- ChannelManager.cs
- InputScopeNameConverter.cs
- DataGridViewRowHeaderCell.cs
- WinEventTracker.cs
- WindowsBrush.cs
- PersonalizationProvider.cs
- EnumBuilder.cs
- EntityDataSourceEntitySetNameItem.cs
- GcHandle.cs
- MulticastNotSupportedException.cs
- QuaternionValueSerializer.cs
- TextTreeTextElementNode.cs
- Annotation.cs
- DataViewSettingCollection.cs
- HtmlEmptyTagControlBuilder.cs
- StateManagedCollection.cs
- DataBoundControlHelper.cs
- CodeMemberProperty.cs
- ExpressionBinding.cs
- StateDesigner.Helpers.cs
- InlineObject.cs
- SqlLiftIndependentRowExpressions.cs
- UdpChannelFactory.cs
- FileRecordSequenceHelper.cs
- AsymmetricSignatureDeformatter.cs
- AnnotationHelper.cs
- OutOfMemoryException.cs
- CacheDependency.cs
- XamlFilter.cs
- TagNameToTypeMapper.cs
- ContentType.cs
- SQlBooleanStorage.cs
- CredentialCache.cs
- validation.cs
- WeakRefEnumerator.cs
- EditableLabelControl.cs
- EncryptedType.cs
- IntSecurity.cs
- CodeFieldReferenceExpression.cs
- CodeTypeReferenceCollection.cs
- _SslState.cs
- ConnectionStringSettingsCollection.cs
- ProfileService.cs
- DataGridCellAutomationPeer.cs
- BinaryFormatterWriter.cs