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
- BodyGlyph.cs
- RuntimeHelpers.cs
- FlowPanelDesigner.cs
- XmlSignatureProperties.cs
- KeyedPriorityQueue.cs
- SqlProfileProvider.cs
- SmiConnection.cs
- dbenumerator.cs
- SqlTriggerAttribute.cs
- DataGridViewCellConverter.cs
- SqlRewriteScalarSubqueries.cs
- InitiatorSessionSymmetricMessageSecurityProtocol.cs
- ItemCollectionEditor.cs
- DesignBindingValueUIHandler.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- BasicKeyConstraint.cs
- FontEmbeddingManager.cs
- TagElement.cs
- CalendarItem.cs
- RMPermissions.cs
- GPStream.cs
- GridViewRowPresenterBase.cs
- TransformedBitmap.cs
- Inline.cs
- MatchAttribute.cs
- WithStatement.cs
- ConfigurationLockCollection.cs
- ParsedAttributeCollection.cs
- DefaultPrintController.cs
- SharedMemory.cs
- Column.cs
- GenericPrincipal.cs
- VisualStyleInformation.cs
- ComponentSerializationService.cs
- DescendantOverDescendantQuery.cs
- TTSVoice.cs
- VisualTransition.cs
- XmlSchemaAppInfo.cs
- PrimitiveXmlSerializers.cs
- PerformanceCounterPermission.cs
- ParameterElement.cs
- NotifyInputEventArgs.cs
- RolePrincipal.cs
- DocumentPageTextView.cs
- InputBinding.cs
- XmlSchemaGroup.cs
- ColorInterpolationModeValidation.cs
- ProxyHelper.cs
- ProcessModule.cs
- MaskDescriptors.cs
- DbParameterCollectionHelper.cs
- ReadingWritingEntityEventArgs.cs
- ProcessModuleDesigner.cs
- Constraint.cs
- UndoEngine.cs
- EventsTab.cs
- NameNode.cs
- PrintSchema.cs
- SqlXmlStorage.cs
- DropDownHolder.cs
- CodeVariableReferenceExpression.cs
- DataKeyCollection.cs
- ObjectViewListener.cs
- CodeExpressionCollection.cs
- CodeDOMUtility.cs
- CodeAttachEventStatement.cs
- _Connection.cs
- ManifestBasedResourceGroveler.cs
- XmlSchemaDocumentation.cs
- DynamicArgumentDesigner.xaml.cs
- ScrollableControl.cs
- DateTimeAutomationPeer.cs
- OptimalBreakSession.cs
- sortedlist.cs
- WindowsScrollBarBits.cs
- JobStaple.cs
- IdentityModelStringsVersion1.cs
- CompiledELinqQueryState.cs
- rsa.cs
- ToolStripSeparator.cs
- TraceListener.cs
- DPAPIProtectedConfigurationProvider.cs
- MsmqIntegrationInputMessage.cs
- DeobfuscatingStream.cs
- Facet.cs
- StringConcat.cs
- ParameterCollection.cs
- InvalidOleVariantTypeException.cs
- PropertyEntry.cs
- CompiledScopeCriteria.cs
- D3DImage.cs
- HybridDictionary.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- ComponentDispatcher.cs
- IndexingContentUnit.cs
- SmiTypedGetterSetter.cs
- System.Data_BID.cs
- PropertyEntry.cs
- XmlSchemaSimpleContentExtension.cs
- DbDataAdapter.cs