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
- DecimalConverter.cs
- Form.cs
- AttributedMetaModel.cs
- ComponentChangedEvent.cs
- DocumentGridContextMenu.cs
- XXXInfos.cs
- SchemaMerger.cs
- ServiceRouteHandler.cs
- DebuggerAttributes.cs
- SequenceDesigner.cs
- PointConverter.cs
- ImageFormatConverter.cs
- RoleManagerEventArgs.cs
- ProtocolsSection.cs
- ControlEvent.cs
- BamlResourceSerializer.cs
- CharUnicodeInfo.cs
- ConnectivityStatus.cs
- FigureParaClient.cs
- HttpConfigurationContext.cs
- Typeface.cs
- MergeFilterQuery.cs
- SubclassTypeValidator.cs
- AuthenticatedStream.cs
- ProcessHostMapPath.cs
- AutomationPropertyInfo.cs
- UserMapPath.cs
- MessageQueueInstaller.cs
- SerializationSectionGroup.cs
- UnsafeNativeMethods.cs
- MetadataCacheItem.cs
- UnhandledExceptionEventArgs.cs
- PipeSecurity.cs
- DataGridColumnCollection.cs
- SoapAttributes.cs
- SignerInfo.cs
- InheritanceAttribute.cs
- Quad.cs
- SqlDataSourceCustomCommandPanel.cs
- StandardTransformFactory.cs
- SessionStateItemCollection.cs
- SiteOfOriginPart.cs
- SortedList.cs
- BypassElementCollection.cs
- RsaSecurityTokenAuthenticator.cs
- TableRowGroupCollection.cs
- ToolStripOverflowButton.cs
- Lock.cs
- EncryptedData.cs
- StreamInfo.cs
- RoutedCommand.cs
- DataControlLinkButton.cs
- AsyncStreamReader.cs
- ObjectNavigationPropertyMapping.cs
- CompiledWorkflowDefinitionContext.cs
- RuntimeVariablesExpression.cs
- CommandLineParser.cs
- CommandBinding.cs
- FromRequest.cs
- DispatcherExceptionFilterEventArgs.cs
- XmlCollation.cs
- FixedStringLookup.cs
- SelectionEditor.cs
- StylusDownEventArgs.cs
- CompressEmulationStream.cs
- ConfigurationValue.cs
- Convert.cs
- NameValueFileSectionHandler.cs
- ManagementQuery.cs
- DocumentOrderQuery.cs
- DataSourceCollectionBase.cs
- HashCryptoHandle.cs
- LinearGradientBrush.cs
- Vertex.cs
- LocalizableAttribute.cs
- MsmqInputChannelBase.cs
- WeakReferenceList.cs
- DataFormats.cs
- ListViewCancelEventArgs.cs
- TextViewBase.cs
- CodeVariableDeclarationStatement.cs
- JoinTreeNode.cs
- HierarchicalDataBoundControlAdapter.cs
- FormViewModeEventArgs.cs
- ThemeConfigurationDialog.cs
- NotifyIcon.cs
- XmlObjectSerializerReadContext.cs
- WebBrowserBase.cs
- KeyMatchBuilder.cs
- Point3DAnimation.cs
- TranslateTransform3D.cs
- DES.cs
- DbParameterCollection.cs
- HyperLinkColumn.cs
- DataGridTextBoxColumn.cs
- FileEnumerator.cs
- DrawingAttributeSerializer.cs
- XmlEncoding.cs
- FieldMetadata.cs
- PeerEndPoint.cs