Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Speech / Src / Internal / GrammarBuilding / IdentifierCollection.cs / 1 / IdentifierCollection.cs
//------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------- using System.Collections.Generic; namespace System.Speech.Internal.GrammarBuilding { ////// /// internal class IdentifierCollection { //******************************************************************* // // Constructors // //******************************************************************* #region Constructors ////// /// internal IdentifierCollection() { _identifiers = new List(); CreateNewIdentifier ("_"); } #endregion //******************************************************************** // // Internal Methods // //******************************************************************* #region Internal Methods /// /// /// /// ///internal string CreateNewIdentifier(string id) { if (!_identifiers.Contains(id)) { _identifiers.Add(id); return id; } else { string newId; int i = 1; do { newId = id + i; i++; } while (_identifiers.Contains(newId)); _identifiers.Add(newId); return newId; } } #endregion //******************************************************************** // // Protected Fields // //******************************************************************** #region Protected Fields /// /// /// protected List_identifiers; #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Gdiplus.cs
- PanelStyle.cs
- BindingGraph.cs
- IdentityNotMappedException.cs
- EventTrigger.cs
- CharKeyFrameCollection.cs
- WebBrowserEvent.cs
- IQueryable.cs
- FlowDocumentPaginator.cs
- RequiredFieldValidator.cs
- StorageModelBuildProvider.cs
- MenuItem.cs
- StyleSheetComponentEditor.cs
- TypeNameParser.cs
- DesignerRegionCollection.cs
- ColumnResizeUndoUnit.cs
- GeneratedView.cs
- Tuple.cs
- COM2Properties.cs
- TextRangeAdaptor.cs
- BezierSegment.cs
- CryptoConfig.cs
- CacheMode.cs
- FrameworkElement.cs
- EmptyEnumerator.cs
- PagePropertiesChangingEventArgs.cs
- GeometryDrawing.cs
- WCFBuildProvider.cs
- BatchServiceHost.cs
- SchemaTableColumn.cs
- Win32KeyboardDevice.cs
- DialogResultConverter.cs
- DoubleCollectionConverter.cs
- EventMemberCodeDomSerializer.cs
- Completion.cs
- EnumValAlphaComparer.cs
- Metadata.cs
- AppModelKnownContentFactory.cs
- Point3DKeyFrameCollection.cs
- _ListenerResponseStream.cs
- Not.cs
- PackagingUtilities.cs
- DigitalSignature.cs
- BmpBitmapEncoder.cs
- FullTrustAssemblyCollection.cs
- RadialGradientBrush.cs
- TypeSystemProvider.cs
- AutoResizedEvent.cs
- XmlCountingReader.cs
- SqlGenericUtil.cs
- X509Certificate2.cs
- DataSourceCollectionBase.cs
- WebPartHelpVerb.cs
- SqlParameterCollection.cs
- WindowsListViewGroup.cs
- HtmlUtf8RawTextWriter.cs
- Rule.cs
- GradientStop.cs
- TextCompositionEventArgs.cs
- DateTimeSerializationSection.cs
- CalendarBlackoutDatesCollection.cs
- storepermission.cs
- HierarchicalDataTemplate.cs
- DBSqlParserTableCollection.cs
- MenuItemAutomationPeer.cs
- TdsRecordBufferSetter.cs
- SqlErrorCollection.cs
- ObjectQueryState.cs
- ByeMessage11.cs
- XsdBuildProvider.cs
- XmlWriter.cs
- IdentityManager.cs
- ListViewGroupCollectionEditor.cs
- GregorianCalendar.cs
- SecurityUtils.cs
- LogLogRecordHeader.cs
- AbandonedMutexException.cs
- ComplexType.cs
- XmlDataLoader.cs
- ResourceWriter.cs
- NegatedCellConstant.cs
- Line.cs
- SmtpNtlmAuthenticationModule.cs
- DataBoundLiteralControl.cs
- ClientType.cs
- X509UI.cs
- TimeSpanStorage.cs
- DataStorage.cs
- SystemDiagnosticsSection.cs
- LocalizabilityAttribute.cs
- WebPartTransformerCollection.cs
- AttachedPropertyMethodSelector.cs
- ReferenceEqualityComparer.cs
- FormsAuthenticationModule.cs
- DataGridRow.cs
- HttpCacheVary.cs
- ToolTipAutomationPeer.cs
- LassoHelper.cs
- SiteMap.cs
- TypeToken.cs