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
- FixedSchema.cs
- XmlWrappingWriter.cs
- ContractValidationHelper.cs
- XmlCountingReader.cs
- ISFTagAndGuidCache.cs
- ModelUIElement3D.cs
- TreeNode.cs
- HMACSHA1.cs
- UnmanagedHandle.cs
- BooleanToVisibilityConverter.cs
- WebCategoryAttribute.cs
- FixedDocumentPaginator.cs
- FileSystemEventArgs.cs
- Rect3D.cs
- DrawingVisual.cs
- StylusButtonEventArgs.cs
- CompositionCommandSet.cs
- SessionEndingEventArgs.cs
- FileCodeGroup.cs
- TextContainerHelper.cs
- TransactionManagerProxy.cs
- MetadataConversionError.cs
- FillBehavior.cs
- DSASignatureFormatter.cs
- Transform3DGroup.cs
- ListComponentEditorPage.cs
- GeneralTransform3DGroup.cs
- KnownBoxes.cs
- IdentityNotMappedException.cs
- IsolatedStoragePermission.cs
- RegisteredDisposeScript.cs
- AssemblyCache.cs
- PolicyValidationException.cs
- RC2CryptoServiceProvider.cs
- ImageEditor.cs
- FontNamesConverter.cs
- GeneralTransform2DTo3D.cs
- MdImport.cs
- SoapExtensionImporter.cs
- InvariantComparer.cs
- FunctionUpdateCommand.cs
- SecurityException.cs
- XmlEventCache.cs
- DependencyPropertyKind.cs
- KeyConverter.cs
- ExtenderProvidedPropertyAttribute.cs
- WindowsGraphicsWrapper.cs
- DoubleAnimationBase.cs
- ResolveDuplex11AsyncResult.cs
- IdentitySection.cs
- XamlTemplateSerializer.cs
- CmsInterop.cs
- FixUp.cs
- DeviceContexts.cs
- errorpatternmatcher.cs
- KeyGestureValueSerializer.cs
- DataTablePropertyDescriptor.cs
- ChtmlTextWriter.cs
- SectionInformation.cs
- InvalidFilterCriteriaException.cs
- DotExpr.cs
- JsonWriterDelegator.cs
- WebPartChrome.cs
- SHA1Managed.cs
- TextFormatterContext.cs
- CodeNamespaceCollection.cs
- TextTrailingWordEllipsis.cs
- GeneralTransform3D.cs
- BitSet.cs
- UnauthorizedWebPart.cs
- IERequestCache.cs
- ServiceCredentialsSecurityTokenManager.cs
- XmlMapping.cs
- VectorKeyFrameCollection.cs
- KeyboardNavigation.cs
- DataGridViewBindingCompleteEventArgs.cs
- ContentElement.cs
- StylusShape.cs
- AutomationEventArgs.cs
- Effect.cs
- CrossContextChannel.cs
- TextTreeText.cs
- ArrangedElementCollection.cs
- DispatcherExceptionFilterEventArgs.cs
- VSWCFServiceContractGenerator.cs
- OleDbCommand.cs
- HttpHandlerActionCollection.cs
- SqlDataSourceQueryConverter.cs
- StringConverter.cs
- CodeConditionStatement.cs
- SourceItem.cs
- UIElement.cs
- DocumentXmlWriter.cs
- InvalidOleVariantTypeException.cs
- UndoManager.cs
- DataColumnCollection.cs
- ThrowHelper.cs
- SamlSubjectStatement.cs
- LogExtent.cs
- HostSecurityManager.cs