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
- XmlEncoding.cs
- OracleParameter.cs
- WebHostedComPlusServiceHost.cs
- ParameterBuilder.cs
- WCFModelStrings.Designer.cs
- SmtpClient.cs
- ProxyAttribute.cs
- NoResizeSelectionBorderGlyph.cs
- NullRuntimeConfig.cs
- DynamicILGenerator.cs
- TileModeValidation.cs
- WebBrowser.cs
- NavigationHelper.cs
- OpCellTreeNode.cs
- AlignmentYValidation.cs
- BlobPersonalizationState.cs
- messageonlyhwndwrapper.cs
- LocatorManager.cs
- PerformanceCounters.cs
- DesignerGeometryHelper.cs
- X509Certificate.cs
- TransformerInfoCollection.cs
- SelectQueryOperator.cs
- ValidationPropertyAttribute.cs
- IsolatedStorageException.cs
- ObjectIDGenerator.cs
- EnterpriseServicesHelper.cs
- WebUtil.cs
- GuidTagList.cs
- ToolStripRenderer.cs
- ThreadInterruptedException.cs
- ImageMap.cs
- WhitespaceRuleLookup.cs
- TrackingServices.cs
- _LazyAsyncResult.cs
- FieldBuilder.cs
- RegularExpressionValidator.cs
- SymDocumentType.cs
- Int64Animation.cs
- ComponentDispatcher.cs
- SQLGuidStorage.cs
- ProtocolElement.cs
- DataObjectAttribute.cs
- TemplateBindingExtension.cs
- ExcCanonicalXml.cs
- TraceInternal.cs
- TypeDescriptor.cs
- CannotUnloadAppDomainException.cs
- TypeBuilderInstantiation.cs
- SmtpDigestAuthenticationModule.cs
- TimeBoundedCache.cs
- App.cs
- SQLConvert.cs
- ProfessionalColors.cs
- NoneExcludedImageIndexConverter.cs
- RIPEMD160.cs
- PropertyEntry.cs
- GraphicsState.cs
- CatalogZoneBase.cs
- DataSourceHelper.cs
- NetStream.cs
- PointCollection.cs
- ClientFormsIdentity.cs
- OverflowException.cs
- DataControlPagerLinkButton.cs
- ExtractorMetadata.cs
- IBuiltInEvidence.cs
- StorageEntityTypeMapping.cs
- ValidatorCompatibilityHelper.cs
- NonParentingControl.cs
- Processor.cs
- DataServiceRequestException.cs
- EntityDesignerBuildProvider.cs
- TextTreePropertyUndoUnit.cs
- XmlReflectionImporter.cs
- ServiceKnownTypeAttribute.cs
- DataGridViewCellPaintingEventArgs.cs
- DataBoundControlHelper.cs
- AdornerLayer.cs
- SiteMapSection.cs
- HttpAsyncResult.cs
- GetCardDetailsRequest.cs
- oledbmetadatacolumnnames.cs
- DeclarativeCatalogPartDesigner.cs
- OdbcEnvironment.cs
- Rect3D.cs
- ResourceSet.cs
- XmlReturnWriter.cs
- Gdiplus.cs
- PointConverter.cs
- XslTransform.cs
- ImportContext.cs
- DynamicRenderer.cs
- InternalConfigRoot.cs
- IntSecurity.cs
- RegexBoyerMoore.cs
- HttpResponseBase.cs
- ClientUtils.cs
- CalendarDataBindingHandler.cs
- CompleteWizardStep.cs