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
- FlowNode.cs
- ContentElement.cs
- DetailsViewUpdatedEventArgs.cs
- StringDictionary.cs
- XmlDataSourceView.cs
- EmptyReadOnlyDictionaryInternal.cs
- ProcessModelInfo.cs
- TimeBoundedCache.cs
- ObjectQuery.cs
- Brush.cs
- CodeGenerator.cs
- WmlObjectListAdapter.cs
- NullableDecimalSumAggregationOperator.cs
- UnmanagedHandle.cs
- TCEAdapterGenerator.cs
- SoapFault.cs
- BindToObject.cs
- ListViewDeletedEventArgs.cs
- HyperLinkColumn.cs
- ArcSegment.cs
- ErrorStyle.cs
- RawTextInputReport.cs
- ColorContextHelper.cs
- FactoryRecord.cs
- FtpWebResponse.cs
- SqlStatistics.cs
- RangeContentEnumerator.cs
- DrawingGroup.cs
- WindowsToolbarAsMenu.cs
- BuildProvider.cs
- Int16Animation.cs
- UrlAuthFailedErrorFormatter.cs
- DataGridViewToolTip.cs
- FileDialog.cs
- DataGridViewComboBoxEditingControl.cs
- IISUnsafeMethods.cs
- TcpConnectionPool.cs
- DefaultCommandConverter.cs
- Control.cs
- TableItemPatternIdentifiers.cs
- SoapSchemaExporter.cs
- StrokeCollectionDefaultValueFactory.cs
- AuthenticationConfig.cs
- sqlmetadatafactory.cs
- QueryCreatedEventArgs.cs
- StateMachineWorkflow.cs
- TimeSpanMinutesConverter.cs
- DateRangeEvent.cs
- UTF7Encoding.cs
- DataGridColumn.cs
- dataprotectionpermissionattribute.cs
- SqlServer2KCompatibilityAnnotation.cs
- CompModSwitches.cs
- UpdateProgress.cs
- EntityDesignerBuildProvider.cs
- DataGridLinkButton.cs
- HostingEnvironmentSection.cs
- X509WindowsSecurityToken.cs
- UniqueSet.cs
- XmlRawWriter.cs
- HttpHandlersSection.cs
- Range.cs
- BufferAllocator.cs
- SemanticBasicElement.cs
- MultiSelectRootGridEntry.cs
- XmlSchemaAppInfo.cs
- Int32Rect.cs
- HitTestResult.cs
- Transform3DCollection.cs
- ConfigurationLockCollection.cs
- XamlVector3DCollectionSerializer.cs
- TreeBuilderBamlTranslator.cs
- SecureEnvironment.cs
- WindowsPrincipal.cs
- LoadedOrUnloadedOperation.cs
- TextEffect.cs
- Receive.cs
- OdbcParameterCollection.cs
- InstallerTypeAttribute.cs
- ClosureBinding.cs
- MulticastDelegate.cs
- Matrix.cs
- SetStateDesigner.cs
- RecommendedAsConfigurableAttribute.cs
- localization.cs
- SerializableAttribute.cs
- BitStack.cs
- ItemChangedEventArgs.cs
- WebPartConnectionsDisconnectVerb.cs
- WmlTextViewAdapter.cs
- WorkflowDesignerMessageFilter.cs
- ToolStripItem.cs
- ProxyWebPartConnectionCollection.cs
- AdapterDictionary.cs
- TableRow.cs
- ExpressionBinding.cs
- DbExpressionRules.cs
- UnsafeNativeMethods.cs
- ScriptManager.cs
- WebConvert.cs