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
- autovalidator.cs
- SqlDataAdapter.cs
- OleDbSchemaGuid.cs
- ServiceBehaviorAttribute.cs
- ClrPerspective.cs
- RoutingExtensionElement.cs
- FrameworkPropertyMetadata.cs
- BamlWriter.cs
- DataGridClipboardHelper.cs
- SimpleWorkerRequest.cs
- Block.cs
- SqlAliasesReferenced.cs
- WebBrowserBase.cs
- UnauthorizedWebPart.cs
- CodeGen.cs
- ObfuscationAttribute.cs
- DependencyPropertyConverter.cs
- ObjectToken.cs
- ResXFileRef.cs
- WebServiceTypeData.cs
- ConfigsHelper.cs
- LowerCaseStringConverter.cs
- CfgParser.cs
- FakeModelPropertyImpl.cs
- ConstructorNeedsTagAttribute.cs
- MemberAssignmentAnalysis.cs
- SmtpNegotiateAuthenticationModule.cs
- XmlUtil.cs
- TextElementCollection.cs
- BitSet.cs
- NameScope.cs
- ExpressionWriter.cs
- GridViewDeletedEventArgs.cs
- WebBrowser.cs
- TakeOrSkipQueryOperator.cs
- BinaryNode.cs
- OleDbSchemaGuid.cs
- OdbcStatementHandle.cs
- ArgumentOutOfRangeException.cs
- VirtualizingStackPanel.cs
- ValueTable.cs
- SqlStatistics.cs
- ModifierKeysConverter.cs
- MimeMultiPart.cs
- SqlIdentifier.cs
- QuaternionAnimation.cs
- IDReferencePropertyAttribute.cs
- SqlLiftIndependentRowExpressions.cs
- ListControl.cs
- X509ClientCertificateAuthentication.cs
- ProfileModule.cs
- WebPartRestoreVerb.cs
- BitmapMetadata.cs
- SubMenuStyleCollectionEditor.cs
- NullableLongSumAggregationOperator.cs
- ContentPlaceHolder.cs
- SoapFormatter.cs
- Block.cs
- OneOfScalarConst.cs
- BinaryNode.cs
- securitycriticaldataformultiplegetandset.cs
- BaseDataBoundControl.cs
- PtsCache.cs
- DataRecordInfo.cs
- ClientCultureInfo.cs
- XmlSerializationGeneratedCode.cs
- TemplateApplicationHelper.cs
- ArraySegment.cs
- connectionpool.cs
- TemplateBindingExtension.cs
- HttpCachePolicyElement.cs
- Facet.cs
- CanonicalXml.cs
- TemplatedWizardStep.cs
- XmlEntityReference.cs
- EntityPropertyMappingAttribute.cs
- ReferenceTypeElement.cs
- ViewValidator.cs
- UrlMappingCollection.cs
- AdCreatedEventArgs.cs
- PropertyGeneratedEventArgs.cs
- RefreshEventArgs.cs
- Transform3D.cs
- DispatcherTimer.cs
- GPStream.cs
- PeerCollaborationPermission.cs
- Bits.cs
- XmlDocumentSurrogate.cs
- SqlBinder.cs
- Pair.cs
- BinaryMessageEncodingBindingElement.cs
- IncrementalCompileAnalyzer.cs
- ConfigurationValues.cs
- SqlFunctions.cs
- WebPartTracker.cs
- DependencyPropertyKey.cs
- BaseProcessProtocolHandler.cs
- WSFederationHttpBindingElement.cs
- FontStretchConverter.cs
- ClientApiGenerator.cs