Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / 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. // //----------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ValidateNames.cs
- SplashScreenNativeMethods.cs
- CookieParameter.cs
- shaperfactory.cs
- XmlSchemaCollection.cs
- WrapperEqualityComparer.cs
- HttpCapabilitiesBase.cs
- InvalidBodyAccessException.cs
- InkCanvasFeedbackAdorner.cs
- TextTrailingCharacterEllipsis.cs
- UrlPropertyAttribute.cs
- WebBrowserContainer.cs
- DataStreamFromComStream.cs
- DataListItem.cs
- TemplatedControlDesigner.cs
- DetailsViewInsertedEventArgs.cs
- PointF.cs
- FixedSOMPage.cs
- WebPartMenuStyle.cs
- SiteMapPath.cs
- xml.cs
- MasterPage.cs
- HandlerBase.cs
- MessageQueue.cs
- CodeDomLocalizationProvider.cs
- MinMaxParagraphWidth.cs
- EntityViewGenerator.cs
- EntityContainerAssociationSetEnd.cs
- ScrollBar.cs
- CultureSpecificStringDictionary.cs
- AssemblyHash.cs
- SmtpFailedRecipientsException.cs
- _OverlappedAsyncResult.cs
- DeviceContexts.cs
- SqlDataSourceParameterParser.cs
- MemoryStream.cs
- MessagePropertyVariants.cs
- XmlSecureResolver.cs
- JumpList.cs
- GradientPanel.cs
- WindowsGraphicsCacheManager.cs
- DataGridViewRowsAddedEventArgs.cs
- PeerNodeAddress.cs
- SignatureDescription.cs
- IUnknownConstantAttribute.cs
- LocatorPart.cs
- UnmanagedMemoryAccessor.cs
- ConfigXmlSignificantWhitespace.cs
- WebPartConnectionsDisconnectVerb.cs
- VirtualPathUtility.cs
- FrameworkElementFactory.cs
- WebPartHeaderCloseVerb.cs
- ConfigurationManagerHelper.cs
- PropertyMapper.cs
- BitSet.cs
- RegexCode.cs
- ClientConvert.cs
- InstanceOwner.cs
- BrowserInteropHelper.cs
- graph.cs
- ProtocolsConfiguration.cs
- PriorityItem.cs
- MessageQueuePermissionEntryCollection.cs
- ScrollChrome.cs
- PageAsyncTask.cs
- EdmComplexPropertyAttribute.cs
- IndentedTextWriter.cs
- DateTimeFormatInfoScanner.cs
- ListSortDescriptionCollection.cs
- CroppedBitmap.cs
- HyperLinkColumn.cs
- Rfc4050KeyFormatter.cs
- FormViewUpdatedEventArgs.cs
- FormParameter.cs
- InvalidPrinterException.cs
- GridViewUpdateEventArgs.cs
- RegexParser.cs
- Win32.cs
- _CommandStream.cs
- ServiceRouteHandler.cs
- CompilationRelaxations.cs
- WindowsTitleBar.cs
- IndicFontClient.cs
- RestHandler.cs
- LogicalExpr.cs
- EastAsianLunisolarCalendar.cs
- XmlDownloadManager.cs
- CacheOutputQuery.cs
- Stylesheet.cs
- TransactionTraceIdentifier.cs
- DataRelation.cs
- StringUtil.cs
- ReflectionUtil.cs
- SoapCommonClasses.cs
- TargetParameterCountException.cs
- TcpSocketManager.cs
- ThemeDirectoryCompiler.cs
- DataPagerCommandEventArgs.cs
- WsdlBuildProvider.cs
- EmptyQuery.cs