Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / 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
- ErrorFormatterPage.cs
- Size3DConverter.cs
- HttpListener.cs
- GeometryDrawing.cs
- PackUriHelper.cs
- Membership.cs
- XmlSchemaAppInfo.cs
- DateTimeFormatInfo.cs
- SevenBitStream.cs
- DataKey.cs
- WorkflowMarkupSerializer.cs
- ACL.cs
- ForeignConstraint.cs
- BamlRecordWriter.cs
- AttributeQuery.cs
- MetadataArtifactLoaderComposite.cs
- PrimarySelectionGlyph.cs
- DoubleUtil.cs
- SettingsAttributes.cs
- DataView.cs
- TextEditorMouse.cs
- PropertyChangedEventArgs.cs
- WebFormsRootDesigner.cs
- ClaimComparer.cs
- InvalidPrinterException.cs
- HtmlInputButton.cs
- CLSCompliantAttribute.cs
- ResourceProviderFactory.cs
- MexBindingBindingCollectionElement.cs
- KeyValueInternalCollection.cs
- WebServiceErrorEvent.cs
- ReferenceEqualityComparer.cs
- AnnotationResourceCollection.cs
- QuarticEase.cs
- ParallelTimeline.cs
- SignatureHelper.cs
- UiaCoreApi.cs
- DbDataReader.cs
- _SslStream.cs
- DbCommandTree.cs
- HtmlInputFile.cs
- InfoCardProofToken.cs
- Rotation3DAnimationBase.cs
- DataTableReaderListener.cs
- DrawItemEvent.cs
- InternalControlCollection.cs
- SuppressMergeCheckAttribute.cs
- Vector3DIndependentAnimationStorage.cs
- NameTable.cs
- BaseInfoTable.cs
- AttributeSetAction.cs
- InternalRelationshipCollection.cs
- Encoding.cs
- BuildProviderAppliesToAttribute.cs
- CompiledAction.cs
- ControlHelper.cs
- AppDomainCompilerProxy.cs
- TabItemAutomationPeer.cs
- ChtmlFormAdapter.cs
- IPipelineRuntime.cs
- TagMapCollection.cs
- ProcessDesigner.cs
- printdlgexmarshaler.cs
- ViewService.cs
- XmlQueryOutput.cs
- CustomErrorsSectionWrapper.cs
- SurrogateSelector.cs
- ObjectStateEntryDbDataRecord.cs
- VisualStateManager.cs
- DesignerProperties.cs
- CodeCompiler.cs
- ResourceDisplayNameAttribute.cs
- _LazyAsyncResult.cs
- CompositeTypefaceMetrics.cs
- compensatingcollection.cs
- ThrowHelper.cs
- ScrollViewer.cs
- WebControlsSection.cs
- LayoutEditorPart.cs
- CallSiteHelpers.cs
- DesignerCategoryAttribute.cs
- TextParaClient.cs
- PersonalizationStateInfoCollection.cs
- FontFamilyConverter.cs
- MessageSmuggler.cs
- WizardStepBase.cs
- Crc32.cs
- PasswordTextNavigator.cs
- DesignObjectWrapper.cs
- MemberInfoSerializationHolder.cs
- MediaElementAutomationPeer.cs
- Msmq4PoisonHandler.cs
- SoapHeaderException.cs
- EdmProviderManifest.cs
- Cursors.cs
- ObjectDataSourceFilteringEventArgs.cs
- XmlAttributeProperties.cs
- DateTimeParse.cs
- DataServiceExpressionVisitor.cs
- SubclassTypeValidator.cs