Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / EntityModel / SchemaObjectModel / SchemaElementLookUpTableEnumerator.cs / 1305376 / SchemaElementLookUpTableEnumerator.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Diagnostics; namespace System.Data.EntityModel.SchemaObjectModel { ////// Summary description for SchemaElementLookUpTableEnumerator. /// internal sealed class SchemaElementLookUpTableEnumerator: IEnumerator where T : S where S : SchemaElement { #region Instance Fields private Dictionary _data = null; private List .Enumerator _enumerator; #endregion #region Public Methods /// /// /// /// /// public SchemaElementLookUpTableEnumerator(Dictionarydata,List keysInOrder) { Debug.Assert(data != null, "data parameter is null"); Debug.Assert(keysInOrder != null, "keysInOrder parameter is null"); _data = data; _enumerator = keysInOrder.GetEnumerator(); } #endregion #region IEnumerator Members /// /// /// public void Reset() { // it is implemented explicitly ((IEnumerator)_enumerator).Reset(); } ////// /// public T Current { get { string key = _enumerator.Current; return _data[key] as T; } } object System.Collections.IEnumerator.Current { get { string key = _enumerator.Current; return _data[key] as T; } } ////// /// ///public bool MoveNext() { while ( _enumerator.MoveNext() ) { if ( Current != null ) return true; } return false; } #endregion #region IDisposable Members /// /// /// public void Dispose() { } #endregion } } // 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
- PrePrepareMethodAttribute.cs
- BufferModesCollection.cs
- ThemeableAttribute.cs
- Cursor.cs
- XPathNavigatorReader.cs
- Content.cs
- WorkflowTransactionOptions.cs
- CrossContextChannel.cs
- TypeExtension.cs
- RadioButton.cs
- MergeFilterQuery.cs
- SizeConverter.cs
- BinHexEncoder.cs
- ImagingCache.cs
- IUnknownConstantAttribute.cs
- ValueQuery.cs
- SqlConnection.cs
- XamlInt32CollectionSerializer.cs
- figurelength.cs
- GorillaCodec.cs
- DataKey.cs
- BehaviorEditorPart.cs
- PropertyBuilder.cs
- BaseAsyncResult.cs
- BufferedWebEventProvider.cs
- SecurityListenerSettingsLifetimeManager.cs
- PassportAuthenticationModule.cs
- ErrorFormatterPage.cs
- TextDecorationCollectionConverter.cs
- SqlConnectionFactory.cs
- GeometryConverter.cs
- XsdDataContractExporter.cs
- StateChangeEvent.cs
- EntityDataSourceReferenceGroup.cs
- ObjectViewFactory.cs
- Ops.cs
- UnsafeNativeMethods.cs
- ParameterModifier.cs
- TextEditorLists.cs
- RoleServiceManager.cs
- MissingMethodException.cs
- CodeDelegateInvokeExpression.cs
- Transactions.cs
- Point3D.cs
- InternalPermissions.cs
- FrugalMap.cs
- GeometryGroup.cs
- QilGenerator.cs
- RoleGroup.cs
- Composition.cs
- ZipIOExtraFieldElement.cs
- Decoder.cs
- DataView.cs
- WebPartConnection.cs
- PolyBezierSegment.cs
- CheckBox.cs
- ToolStripDesignerUtils.cs
- TdsParserSafeHandles.cs
- XmlnsCompatibleWithAttribute.cs
- PhoneCallDesigner.cs
- SystemSounds.cs
- RTLAwareMessageBox.cs
- DataFormats.cs
- SafeFileMappingHandle.cs
- Privilege.cs
- EntityContainerRelationshipSetEnd.cs
- SoapSchemaMember.cs
- XmlDigitalSignatureProcessor.cs
- PathData.cs
- BitmapEffectOutputConnector.cs
- DefaultPrintController.cs
- ConfigurationManager.cs
- ComponentResourceKey.cs
- XmlCharType.cs
- StreamResourceInfo.cs
- TakeQueryOptionExpression.cs
- CDSsyncETWBCLProvider.cs
- SpecularMaterial.cs
- InputLanguageSource.cs
- CodeCastExpression.cs
- ParserContext.cs
- DataGridViewComboBoxCell.cs
- AttachmentCollection.cs
- ResolveNameEventArgs.cs
- FixedSOMPage.cs
- CodeExporter.cs
- assemblycache.cs
- ControlParameter.cs
- NonParentingControl.cs
- IndexerNameAttribute.cs
- EmptyQuery.cs
- TextRunTypographyProperties.cs
- XmlUtil.cs
- UnsafeNativeMethods.cs
- TextureBrush.cs
- Decoder.cs
- EditorPartDesigner.cs
- ContentDesigner.cs
- Vector3dCollection.cs
- NavigateUrlConverter.cs