Code:
/ DotNET / DotNET / 8.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BrowserDefinition.cs
- WindowInteractionStateTracker.cs
- ComplexBindingPropertiesAttribute.cs
- Bidi.cs
- SingleObjectCollection.cs
- DeclarationUpdate.cs
- XmlQualifiedName.cs
- RenderData.cs
- SQLDecimal.cs
- Contracts.cs
- PatternMatcher.cs
- RC2.cs
- OAVariantLib.cs
- LineSegment.cs
- PointConverter.cs
- FrameworkContextData.cs
- ImplicitInputBrush.cs
- OpenTypeLayout.cs
- PropertyPath.cs
- SecurityTokenException.cs
- MetadataElement.cs
- FrameworkRichTextComposition.cs
- CustomTypeDescriptor.cs
- CryptoApi.cs
- Brush.cs
- VirtualDirectoryMappingCollection.cs
- XmlWrappingWriter.cs
- SafeMemoryMappedFileHandle.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- MetadataCache.cs
- ProjectionCamera.cs
- WriteStateInfoBase.cs
- InternalUserCancelledException.cs
- DataGridRelationshipRow.cs
- DataSourceHelper.cs
- AppSettings.cs
- StateInitializationDesigner.cs
- BrowserCapabilitiesFactory.cs
- SecUtil.cs
- TypeKeyValue.cs
- XhtmlConformanceSection.cs
- ControlBindingsCollection.cs
- TemplatedWizardStep.cs
- Effect.cs
- DiscreteKeyFrames.cs
- DomainUpDown.cs
- ObjectStateFormatter.cs
- WebUtility.cs
- TextAction.cs
- WebControlAdapter.cs
- BulletChrome.cs
- NoneExcludedImageIndexConverter.cs
- HttpServerVarsCollection.cs
- PageTheme.cs
- Substitution.cs
- MenuItemAutomationPeer.cs
- QueryContinueDragEventArgs.cs
- TextTreeUndoUnit.cs
- ReadOnlyCollectionBase.cs
- ChannelDemuxer.cs
- datacache.cs
- RayHitTestParameters.cs
- PassportPrincipal.cs
- HtmlEmptyTagControlBuilder.cs
- CustomLineCap.cs
- SpeechSynthesizer.cs
- Object.cs
- ClientSettings.cs
- _SslStream.cs
- XslUrlEditor.cs
- LinqDataSourceInsertEventArgs.cs
- SoundPlayerAction.cs
- Pts.cs
- versioninfo.cs
- ResourcePart.cs
- WebProxyScriptElement.cs
- WebPartMenu.cs
- WindowsAuthenticationEventArgs.cs
- XmlBinaryReader.cs
- ObjectDisposedException.cs
- PagerSettings.cs
- SqlProviderServices.cs
- RSAOAEPKeyExchangeDeformatter.cs
- COMException.cs
- PositiveTimeSpanValidator.cs
- RemoteWebConfigurationHost.cs
- FrameworkTemplate.cs
- Decoder.cs
- MdiWindowListStrip.cs
- ConnectionStringSettingsCollection.cs
- WeakReference.cs
- SurrogateEncoder.cs
- SqlWorkflowPersistenceService.cs
- IPipelineRuntime.cs
- MachineKeySection.cs
- SetterBaseCollection.cs
- Internal.cs
- ByteStreamGeometryContext.cs
- CompensationToken.cs
- DataGridViewColumnEventArgs.cs