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
- InterleavedZipPartStream.cs
- PointLightBase.cs
- RequiredAttributeAttribute.cs
- ConfigurationLocation.cs
- CompilerError.cs
- SamlAudienceRestrictionCondition.cs
- GenerateScriptTypeAttribute.cs
- SeverityFilter.cs
- RectangleConverter.cs
- XmlTextEncoder.cs
- SafeRegistryKey.cs
- InputManager.cs
- SetStateEventArgs.cs
- ThreadExceptionEvent.cs
- UserPreferenceChangedEventArgs.cs
- LoginUtil.cs
- ObjectConverter.cs
- SafeFindHandle.cs
- LinkLabelLinkClickedEvent.cs
- Span.cs
- ConfigXmlSignificantWhitespace.cs
- FillRuleValidation.cs
- EventSchemaTraceListener.cs
- CheckBoxStandardAdapter.cs
- WorkflowMarkupSerializationException.cs
- securitycriticaldata.cs
- DataGridViewRowsRemovedEventArgs.cs
- Inflater.cs
- NamespaceEmitter.cs
- EditCommandColumn.cs
- CannotUnloadAppDomainException.cs
- SoapInteropTypes.cs
- _ContextAwareResult.cs
- OracleString.cs
- SocketElement.cs
- ProtocolsConfiguration.cs
- ToolBarButtonDesigner.cs
- CapabilitiesRule.cs
- SimpleBitVector32.cs
- ListItemConverter.cs
- XmlDomTextWriter.cs
- StaticFileHandler.cs
- IChannel.cs
- PerformanceCounterPermissionEntry.cs
- WebPartCancelEventArgs.cs
- CheckPair.cs
- OdbcPermission.cs
- DisplayNameAttribute.cs
- LongPath.cs
- Point4DConverter.cs
- Rfc4050KeyFormatter.cs
- UInt32Storage.cs
- TimeoutException.cs
- DocumentReferenceCollection.cs
- ActivityDelegate.cs
- SevenBitStream.cs
- SqlConnection.cs
- BaseTreeIterator.cs
- MediaCommands.cs
- SqlCrossApplyToCrossJoin.cs
- DataTableNewRowEvent.cs
- TextRangeEditTables.cs
- Encoder.cs
- DesignerDataConnection.cs
- UserPersonalizationStateInfo.cs
- WinInetCache.cs
- EastAsianLunisolarCalendar.cs
- UnsafeCollabNativeMethods.cs
- WindowsRegion.cs
- GeometryGroup.cs
- WinEventQueueItem.cs
- InvalidCardException.cs
- OrderPreservingPipeliningMergeHelper.cs
- RepeatButtonAutomationPeer.cs
- ThemeableAttribute.cs
- ControlBindingsConverter.cs
- ObjectMemberMapping.cs
- Light.cs
- DelayLoadType.cs
- SequenceNumber.cs
- ManifestResourceInfo.cs
- CurrentChangedEventManager.cs
- TextModifierScope.cs
- DataControlLinkButton.cs
- GeometryCollection.cs
- CultureMapper.cs
- NumberFormatInfo.cs
- SchemaInfo.cs
- WindowVisualStateTracker.cs
- WebContext.cs
- ReferentialConstraint.cs
- ControlCollection.cs
- FillErrorEventArgs.cs
- AbandonedMutexException.cs
- Pool.cs
- XamlBrushSerializer.cs
- Model3D.cs
- Behavior.cs
- ResourceManager.cs
- SliderAutomationPeer.cs