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
- BitmapDownload.cs
- AppSettingsExpressionBuilder.cs
- ComponentDesigner.cs
- WindowPattern.cs
- FileLogRecord.cs
- WebPartDisplayModeCancelEventArgs.cs
- ClusterSafeNativeMethods.cs
- CornerRadiusConverter.cs
- ConsoleCancelEventArgs.cs
- DataGridViewComponentPropertyGridSite.cs
- HtmlTableCellCollection.cs
- NonClientArea.cs
- RequiredFieldValidator.cs
- InvalidCastException.cs
- panel.cs
- XPathSelectionIterator.cs
- WebPartExportVerb.cs
- EntityTypeEmitter.cs
- _HTTPDateParse.cs
- QueryBranchOp.cs
- GridPatternIdentifiers.cs
- SiteIdentityPermission.cs
- WorkflowControlClient.cs
- KeyEvent.cs
- MatrixTransform.cs
- DesignerForm.cs
- TextStore.cs
- BindingWorker.cs
- DictionaryBase.cs
- FontWeightConverter.cs
- SpellerStatusTable.cs
- BaseProcessor.cs
- BindingValueChangedEventArgs.cs
- sqlser.cs
- ClientScriptManagerWrapper.cs
- UIElement3DAutomationPeer.cs
- LogSwitch.cs
- DesignerTransaction.cs
- PhysicalFontFamily.cs
- Sql8ConformanceChecker.cs
- PropertyChangedEventManager.cs
- FormatterConverter.cs
- StringDictionary.cs
- HttpDebugHandler.cs
- ApplicationInfo.cs
- VersionPair.cs
- DES.cs
- DockPatternIdentifiers.cs
- DocumentPageTextView.cs
- XmlNodeChangedEventArgs.cs
- GridViewSortEventArgs.cs
- DataGridItemEventArgs.cs
- SamlEvidence.cs
- ResourceDictionary.cs
- SHA256.cs
- FastEncoder.cs
- FontDifferentiator.cs
- WindowProviderWrapper.cs
- CodeAssignStatement.cs
- BinaryMessageFormatter.cs
- PointCollectionValueSerializer.cs
- AQNBuilder.cs
- ArrayTypeMismatchException.cs
- RelationshipDetailsRow.cs
- Window.cs
- DispatcherExceptionEventArgs.cs
- VoiceInfo.cs
- CheckableControlBaseAdapter.cs
- XmlDictionaryString.cs
- wgx_render.cs
- DataGridViewSelectedColumnCollection.cs
- DataPagerField.cs
- BezierSegment.cs
- MenuAdapter.cs
- DocumentProperties.cs
- Graphics.cs
- ContentFileHelper.cs
- AbandonedMutexException.cs
- EntityDataSourceView.cs
- FormatVersion.cs
- DispatcherExceptionEventArgs.cs
- Column.cs
- InvalidContentTypeException.cs
- ProviderBase.cs
- CharacterBuffer.cs
- LateBoundBitmapDecoder.cs
- SpecialFolderEnumConverter.cs
- ReferenceConverter.cs
- PipeConnection.cs
- TextEditorTyping.cs
- EditorZone.cs
- MeasurementDCInfo.cs
- TextTreeRootNode.cs
- StructuredCompositeActivityDesigner.cs
- SerializerDescriptor.cs
- SqlClientWrapperSmiStreamChars.cs
- InfoCardSchemas.cs
- BindingMAnagerBase.cs
- SyntaxCheck.cs
- RootAction.cs