Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataSet / System / Data / TypedTableBase.cs / 1305376 / TypedTableBase.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //spather //----------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Collections; using System.Linq; using System.Linq.Expressions; using System.Runtime.Serialization; namespace System.Data { ////// This is the generic base class for TypedDataSet /// [Serializable] public abstract class TypedTableBase: DataTable, IEnumerable where T : DataRow { /// /// Default constructor for generic TypedTableBase. /// Will be called by generated Typed DataSet classes and is not for public use. /// protected TypedTableBase() : base() {} ////// Constructor for the generic TypedTableBase with takes SerializationInfo and StreamingContext. /// Will be called by generated Typed DataSet classes and /// is not for public use. /// /// /// SerializationInfo containing data to construct the object. /// /// /// The streaming context for the object being deserializad. /// protected TypedTableBase(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) {} ////// This property returns a enumerator of T for the TypedTable. Note, this could /// execute the underlying Linq expression. /// ////// IEnumerable of T. /// public IEnumeratorGetEnumerator() { return this.Rows.Cast ().GetEnumerator(); } IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); } /// /// Casts an EnumerableDataTable_TSource into EnumerableDataTable_TResult /// public EnumerableRowCollectionCast () { EnumerableRowCollection erc = new EnumerableRowCollection ((DataTable)this); return erc.Cast (); } } } // 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
- DataBindingHandlerAttribute.cs
- WindowsSolidBrush.cs
- ZoneIdentityPermission.cs
- Workspace.cs
- Header.cs
- EditBehavior.cs
- WebConfigurationManager.cs
- _ConnectOverlappedAsyncResult.cs
- XmlValueConverter.cs
- DataGridViewComboBoxEditingControl.cs
- XamlGridLengthSerializer.cs
- AttributeData.cs
- TraceContext.cs
- CheckedPointers.cs
- XmlHierarchicalEnumerable.cs
- SmiEventSink.cs
- DateTimeFormatInfo.cs
- RuntimeHandles.cs
- DispatchWrapper.cs
- StringOutput.cs
- InternalResources.cs
- CallTemplateAction.cs
- LinqDataSourceEditData.cs
- SqlInternalConnection.cs
- TextTreeTextNode.cs
- ObjectParameterCollection.cs
- CodeDomConfigurationHandler.cs
- TransactionChannelFaultConverter.cs
- MsmqAuthenticationMode.cs
- ProviderUtil.cs
- DataGridViewUtilities.cs
- MergablePropertyAttribute.cs
- Misc.cs
- UrlMappingCollection.cs
- ConnectionPointGlyph.cs
- WindowsTab.cs
- ClientRuntimeConfig.cs
- SplineQuaternionKeyFrame.cs
- AspNetHostingPermission.cs
- ConsoleKeyInfo.cs
- GZipObjectSerializer.cs
- DataGridViewIntLinkedList.cs
- TimelineGroup.cs
- DataSourceCache.cs
- CookielessHelper.cs
- QuaternionAnimation.cs
- CriticalFinalizerObject.cs
- BaseDataList.cs
- Maps.cs
- DoubleLinkList.cs
- EventData.cs
- DSACryptoServiceProvider.cs
- MarkerProperties.cs
- ChtmlTextWriter.cs
- CodeDelegateCreateExpression.cs
- ColumnCollectionEditor.cs
- MLangCodePageEncoding.cs
- MappingSource.cs
- XmlSchemaExternal.cs
- TaiwanLunisolarCalendar.cs
- SafeFreeMibTable.cs
- LinkArea.cs
- TdsParameterSetter.cs
- TextAdaptor.cs
- WebPartManagerInternals.cs
- DeferredReference.cs
- PropertyMetadata.cs
- SqlGenerator.cs
- pingexception.cs
- MdiWindowListItemConverter.cs
- RunWorkerCompletedEventArgs.cs
- OdbcReferenceCollection.cs
- ZipIOLocalFileHeader.cs
- Label.cs
- PhoneCall.cs
- TaskForm.cs
- ListChunk.cs
- CapabilitiesUse.cs
- ZipIOLocalFileHeader.cs
- ObjectListFieldCollection.cs
- CollectionChangeEventArgs.cs
- MemberInitExpression.cs
- SiteMapNodeCollection.cs
- DynamicUpdateCommand.cs
- CreationContext.cs
- VersionConverter.cs
- XPathNodeIterator.cs
- FlowLayoutPanelDesigner.cs
- DrawingAttributesDefaultValueFactory.cs
- Attributes.cs
- WindowsTokenRoleProvider.cs
- isolationinterop.cs
- EmbeddedObject.cs
- PackageRelationshipCollection.cs
- HyperLinkStyle.cs
- FrameworkElementAutomationPeer.cs
- ModelService.cs
- NavigatorInput.cs
- SignedPkcs7.cs
- OpCellTreeNode.cs