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
- DocumentViewerHelper.cs
- DrawingContextWalker.cs
- DataObjectMethodAttribute.cs
- CDSCollectionETWBCLProvider.cs
- WebHeaderCollection.cs
- EntitySqlQueryBuilder.cs
- Choices.cs
- BufferedReadStream.cs
- ListViewGroupItemCollection.cs
- ReturnEventArgs.cs
- WaitHandle.cs
- EasingKeyFrames.cs
- Util.cs
- SQLDecimalStorage.cs
- PingOptions.cs
- WindowsRebar.cs
- ZipFileInfoCollection.cs
- EntityModelBuildProvider.cs
- COM2ColorConverter.cs
- Tuple.cs
- ClickablePoint.cs
- PeerPresenceInfo.cs
- ObjectSecurityT.cs
- PassportAuthenticationEventArgs.cs
- ServiceOperation.cs
- RuntimeConfigurationRecord.cs
- MessageQueueConverter.cs
- PageHandlerFactory.cs
- QilTypeChecker.cs
- WorkflowTimerService.cs
- TextElementEditingBehaviorAttribute.cs
- BooleanSwitch.cs
- AnnotationHighlightLayer.cs
- Encoder.cs
- AutomationPatternInfo.cs
- MaxValueConverter.cs
- FieldNameLookup.cs
- MessageQueueCriteria.cs
- Serializer.cs
- CellNormalizer.cs
- BitmapEffectDrawing.cs
- NameScope.cs
- TreeNodeStyle.cs
- ByteStorage.cs
- ImageKeyConverter.cs
- MetadataAssemblyHelper.cs
- hwndwrapper.cs
- HtmlInputCheckBox.cs
- LocalFileSettingsProvider.cs
- RenderOptions.cs
- NamespaceList.cs
- OpenFileDialog.cs
- LabelEditEvent.cs
- SslStream.cs
- LinqDataSourceStatusEventArgs.cs
- StrongNameIdentityPermission.cs
- WindowsComboBox.cs
- DetailsViewUpdatedEventArgs.cs
- XmlSchemaComplexContent.cs
- Misc.cs
- EncoderParameters.cs
- PinnedBufferMemoryStream.cs
- TreeViewEvent.cs
- HostSecurityManager.cs
- SignedXml.cs
- COM2PropertyDescriptor.cs
- SqlTransaction.cs
- TableLayoutSettingsTypeConverter.cs
- Brushes.cs
- ListControl.cs
- SmtpDateTime.cs
- SqlDataRecord.cs
- SimpleLine.cs
- PropertyChangedEventManager.cs
- ToolStripScrollButton.cs
- WorkflowDesigner.cs
- pingexception.cs
- CommandManager.cs
- FixedSOMPageConstructor.cs
- Request.cs
- ExecutionContext.cs
- DataSourceViewSchemaConverter.cs
- SecurityState.cs
- ForEachAction.cs
- AlphabeticalEnumConverter.cs
- WebSysDescriptionAttribute.cs
- FamilyMap.cs
- FormatterConverter.cs
- BamlLocalizableResourceKey.cs
- ReflectionPermission.cs
- BinarySerializer.cs
- IsolatedStorage.cs
- MatcherBuilder.cs
- WebPartEditorApplyVerb.cs
- RuntimeConfig.cs
- FileDialog_Vista_Interop.cs
- IncrementalReadDecoders.cs
- MailAddressCollection.cs
- CustomTypeDescriptor.cs
- HttpHandlerActionCollection.cs