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
- DataBoundControlHelper.cs
- RegexStringValidatorAttribute.cs
- XMLSyntaxException.cs
- UnaryQueryOperator.cs
- StackBuilderSink.cs
- CodeIterationStatement.cs
- MemberRelationshipService.cs
- GeometryModel3D.cs
- AppSettingsReader.cs
- EncryptedData.cs
- Perspective.cs
- TextRenderer.cs
- SubMenuStyleCollectionEditor.cs
- QueryOutputWriterV1.cs
- MgmtConfigurationRecord.cs
- XmlSchemaAttributeGroupRef.cs
- ValidatorCompatibilityHelper.cs
- Stream.cs
- COAUTHINFO.cs
- LinkAreaEditor.cs
- Vector3D.cs
- SoundPlayerAction.cs
- RegexFCD.cs
- DBCSCodePageEncoding.cs
- Nodes.cs
- SystemColors.cs
- ChannelDemuxer.cs
- EditingMode.cs
- DataGridViewRowCancelEventArgs.cs
- ChildTable.cs
- __ConsoleStream.cs
- FileDialogPermission.cs
- MemoryStream.cs
- CodeExpressionCollection.cs
- Journal.cs
- OdbcConnectionHandle.cs
- X500Name.cs
- ContractCodeDomInfo.cs
- DiffuseMaterial.cs
- RuleProcessor.cs
- DataGridViewCellStateChangedEventArgs.cs
- StringDictionaryEditor.cs
- COAUTHIDENTITY.cs
- BrushMappingModeValidation.cs
- CaseInsensitiveHashCodeProvider.cs
- XmlnsDefinitionAttribute.cs
- DebuggerAttributes.cs
- RegexCompiler.cs
- RijndaelManagedTransform.cs
- DeviceContext2.cs
- EventBindingService.cs
- TextContainer.cs
- EntitySetBaseCollection.cs
- CollectionAdapters.cs
- MailMessage.cs
- XmlTextReaderImplHelpers.cs
- DependsOnAttribute.cs
- ObjectIDGenerator.cs
- TemplateManager.cs
- _SSPISessionCache.cs
- HijriCalendar.cs
- latinshape.cs
- EntityContainerEmitter.cs
- Triangle.cs
- ProviderException.cs
- ObjectContextServiceProvider.cs
- ObjectStateFormatter.cs
- _ContextAwareResult.cs
- EventDescriptorCollection.cs
- BamlVersionHeader.cs
- PixelFormats.cs
- DefaultHttpHandler.cs
- QueryCacheEntry.cs
- ListBase.cs
- MessageQueueConverter.cs
- WindowsListViewGroup.cs
- DbParameterCollectionHelper.cs
- CryptoApi.cs
- NavigationProgressEventArgs.cs
- AssociationSetEnd.cs
- ListArgumentProvider.cs
- FontFamilyIdentifier.cs
- TimeoutValidationAttribute.cs
- Operator.cs
- MediaElementAutomationPeer.cs
- DayRenderEvent.cs
- MaskedTextProvider.cs
- XmlSchemaObjectCollection.cs
- NameNode.cs
- HttpListener.cs
- SettingsPropertyValueCollection.cs
- TypeConverter.cs
- KeyedByTypeCollection.cs
- FlowPosition.cs
- CheckBoxFlatAdapter.cs
- ObjectStorage.cs
- RepeaterItemCollection.cs
- TextSelectionHelper.cs
- NetworkInformationPermission.cs
- TransformerInfo.cs