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
- ParseHttpDate.cs
- XmlUtil.cs
- _HeaderInfo.cs
- MessagingDescriptionAttribute.cs
- OracleNumber.cs
- ScriptIgnoreAttribute.cs
- TileBrush.cs
- TypeForwardedFromAttribute.cs
- ServiceSecurityAuditBehavior.cs
- Ops.cs
- ToolBarPanel.cs
- UriParserTemplates.cs
- SqlDataSourceCache.cs
- DataSpaceManager.cs
- RenderOptions.cs
- RegexFCD.cs
- ProvideValueServiceProvider.cs
- AssemblyBuilder.cs
- HandlerFactoryCache.cs
- BooleanFunctions.cs
- SelectedDatesCollection.cs
- RowToFieldTransformer.cs
- TextEditorParagraphs.cs
- ToolStripCollectionEditor.cs
- WindowsAuthenticationEventArgs.cs
- RegexGroup.cs
- RealProxy.cs
- DataGridViewCellCollection.cs
- BamlCollectionHolder.cs
- ClientTargetSection.cs
- FunctionDetailsReader.cs
- DrawingImage.cs
- ConfigXmlWhitespace.cs
- ClientSettingsProvider.cs
- SubMenuStyle.cs
- CanExecuteRoutedEventArgs.cs
- XmlSchemaComplexContentRestriction.cs
- LoadedOrUnloadedOperation.cs
- BookmarkInfo.cs
- ReadWriteObjectLock.cs
- nulltextcontainer.cs
- TextClipboardData.cs
- TextContainer.cs
- RSAPKCS1SignatureFormatter.cs
- SByteStorage.cs
- XmlHelper.cs
- ToolboxComponentsCreatingEventArgs.cs
- TemplateControlCodeDomTreeGenerator.cs
- FontFamilyConverter.cs
- StreamUpdate.cs
- DefinitionBase.cs
- FilterQuery.cs
- AggregatePushdown.cs
- XmlWriterTraceListener.cs
- PrintDocument.cs
- ImageAutomationPeer.cs
- HwndSource.cs
- X509Certificate2.cs
- HttpServerProtocol.cs
- TreeViewDesigner.cs
- UrlMappingCollection.cs
- ProviderCollection.cs
- RemotingAttributes.cs
- PropertyChange.cs
- WebPartTransformer.cs
- NullRuntimeConfig.cs
- AccessedThroughPropertyAttribute.cs
- PasswordBoxAutomationPeer.cs
- LocalizableResourceBuilder.cs
- TypeDescriptionProviderAttribute.cs
- Roles.cs
- SoapInteropTypes.cs
- OrderablePartitioner.cs
- NamespaceCollection.cs
- EntityDataSourceColumn.cs
- WebPartUserCapability.cs
- HostingEnvironmentSection.cs
- CustomError.cs
- LayoutTableCell.cs
- DefaultValueTypeConverter.cs
- DeferredElementTreeState.cs
- QuestionEventArgs.cs
- ParameterToken.cs
- ReverseInheritProperty.cs
- SignerInfo.cs
- CallbackException.cs
- PerfService.cs
- CompositeScriptReference.cs
- CodeExpressionCollection.cs
- EUCJPEncoding.cs
- ToolZone.cs
- PerfService.cs
- StateMachineHelpers.cs
- SafeNativeMethods.cs
- namescope.cs
- EdmComplexTypeAttribute.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- XmlHierarchyData.cs
- WsdlInspector.cs
- WinFormsSecurity.cs