Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Speech / Src / Recognition / SemanticResultKey.cs / 1 / SemanticResultKey.cs
//------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------- using System.Collections.Generic; using System.Diagnostics; using System.Speech.Internal.GrammarBuilding; using System.Speech.Internal; namespace System.Speech.Recognition { ////// /// [DebuggerDisplay ("{_semanticKey.DebugSummary}")] public class SemanticResultKey { //******************************************************************* // // Constructors // //******************************************************************* #region Constructors ////// /// /// private SemanticResultKey (string semanticResultKey) : base () { Helpers.ThrowIfEmptyOrNull (semanticResultKey, "semanticResultKey"); _semanticKey = new SemanticKeyElement (semanticResultKey); } ////// /// /// /// public SemanticResultKey (string semanticResultKey, params string [] phrases) : this (semanticResultKey) { Helpers.ThrowIfEmptyOrNull (semanticResultKey, "semanticResultKey"); Helpers.ThrowIfNull (phrases, "phrases"); // Build a grammar builder with all the phrases foreach (string phrase in phrases) { _semanticKey.Add ((string) phrase.Clone ()); } } ////// /// /// /// public SemanticResultKey (string semanticResultKey, params GrammarBuilder [] builders) : this (semanticResultKey) { Helpers.ThrowIfEmptyOrNull (semanticResultKey, "semanticResultKey"); Helpers.ThrowIfNull (builders, "phrases"); // Build a grammar builder with all the grammar builders foreach (GrammarBuilder builder in builders) { _semanticKey.Add (builder.Clone ()); } } #endregion //******************************************************************** // // Public Methods // //******************************************************************* #region Public Methods ////// TODOC /// ///public GrammarBuilder ToGrammarBuilder () { return new GrammarBuilder (this); } #endregion //******************************************************************** // // Internal Properties // //******************************************************************** #region Internal Properties internal SemanticKeyElement SemanticKeyElement { get { return _semanticKey; } } #endregion //******************************************************************* // // Private Fields // //******************************************************************** #region Private Fields private readonly SemanticKeyElement _semanticKey; #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
- coordinator.cs
- CollectionTypeElement.cs
- FileNotFoundException.cs
- AliasGenerator.cs
- Baml2006ReaderFrame.cs
- XmlLanguage.cs
- BehaviorDragDropEventArgs.cs
- IApplicationTrustManager.cs
- SoapEnumAttribute.cs
- HttpCapabilitiesSectionHandler.cs
- WebColorConverter.cs
- CodeSpit.cs
- ParagraphVisual.cs
- SystemInfo.cs
- DataRecord.cs
- SingletonConnectionReader.cs
- OperationContractAttribute.cs
- DrawingCollection.cs
- IERequestCache.cs
- BoolLiteral.cs
- EntityCollection.cs
- FileSystemEventArgs.cs
- ToolStripComboBox.cs
- DodSequenceMerge.cs
- SchemaImporterExtension.cs
- SettingsContext.cs
- HandleExceptionArgs.cs
- XmlDocumentType.cs
- AvTraceDetails.cs
- BitmapEditor.cs
- UserValidatedEventArgs.cs
- URLAttribute.cs
- NullableLongMinMaxAggregationOperator.cs
- AssemblyAssociatedContentFileAttribute.cs
- LocalizedNameDescriptionPair.cs
- CachingHintValidation.cs
- DataGridLinkButton.cs
- LogicalTreeHelper.cs
- ChameleonKey.cs
- InternalControlCollection.cs
- Span.cs
- MinMaxParagraphWidth.cs
- IPEndPoint.cs
- CacheEntry.cs
- RequestDescription.cs
- DependencyPropertyKey.cs
- TabControl.cs
- DeflateEmulationStream.cs
- CallTemplateAction.cs
- PropertyCondition.cs
- XmlAnyElementAttributes.cs
- WebPartConnectVerb.cs
- SqlTypeSystemProvider.cs
- EmptyEnumerator.cs
- DateTimeValueSerializerContext.cs
- AffineTransform3D.cs
- TableAdapterManagerMethodGenerator.cs
- InvokePattern.cs
- UTF8Encoding.cs
- TemplateEditingFrame.cs
- UInt32.cs
- DocumentOrderQuery.cs
- CompositeActivityValidator.cs
- DBCSCodePageEncoding.cs
- InfocardExtendedInformationCollection.cs
- Ipv6Element.cs
- TransactionScope.cs
- X509WindowsSecurityToken.cs
- _AutoWebProxyScriptEngine.cs
- PlaceHolder.cs
- MetadataExchangeClient.cs
- TransformValueSerializer.cs
- JsonCollectionDataContract.cs
- OleDbEnumerator.cs
- AppSettings.cs
- SubMenuStyleCollection.cs
- LinqMaximalSubtreeNominator.cs
- VerificationAttribute.cs
- BoolExpression.cs
- DocumentAutomationPeer.cs
- CheckBoxList.cs
- ObjectDataSourceStatusEventArgs.cs
- TimelineClockCollection.cs
- HeaderCollection.cs
- EmptyEnumerator.cs
- FileSystemInfo.cs
- WebPartDescription.cs
- ContentElement.cs
- PersistStreamTypeWrapper.cs
- TreeWalkHelper.cs
- ContentOperations.cs
- WebResponse.cs
- ResXResourceWriter.cs
- EventRoute.cs
- RowBinding.cs
- TextRunCache.cs
- BindToObject.cs
- SHA512Managed.cs
- Triangle.cs
- PropertyConverter.cs