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
- AtomMaterializerLog.cs
- SqlEnums.cs
- DataGridViewTextBoxEditingControl.cs
- AuthStoreRoleProvider.cs
- ProxyWebPartManager.cs
- EmbeddedMailObject.cs
- MessageSmuggler.cs
- StorageBasedPackageProperties.cs
- CultureMapper.cs
- ExtensionWindow.cs
- FixedPageStructure.cs
- MULTI_QI.cs
- AdapterUtil.cs
- AssociationProvider.cs
- AssemblyName.cs
- EmitterCache.cs
- SendMailErrorEventArgs.cs
- EndpointInfo.cs
- UInt32.cs
- CodeExpressionCollection.cs
- UIElement3D.cs
- StagingAreaInputItem.cs
- PartialTrustVisibleAssemblyCollection.cs
- UrlMapping.cs
- TextRunProperties.cs
- DragEventArgs.cs
- ClickablePoint.cs
- EventSourceCreationData.cs
- ContextProperty.cs
- PageFunction.cs
- FrameworkObject.cs
- IsolatedStorageFile.cs
- SharedStream.cs
- SQLCharsStorage.cs
- MaxMessageSizeStream.cs
- CollectionsUtil.cs
- ProvidePropertyAttribute.cs
- EntityDesignerUtils.cs
- OrthographicCamera.cs
- GetCardDetailsRequest.cs
- RequestResizeEvent.cs
- ParagraphResult.cs
- DataGridCell.cs
- TypeForwardedToAttribute.cs
- NoResizeHandleGlyph.cs
- TableProviderWrapper.cs
- AttachedPropertyMethodSelector.cs
- SqlNodeAnnotation.cs
- EntryPointNotFoundException.cs
- BaseHashHelper.cs
- BamlRecordReader.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- OdbcPermission.cs
- FieldToken.cs
- DecoderReplacementFallback.cs
- ResourceExpressionBuilder.cs
- EntitySetRetriever.cs
- VariantWrapper.cs
- ReadOnlyDataSourceView.cs
- TabletDevice.cs
- SQLSingleStorage.cs
- InstancePersistenceCommandException.cs
- DataGridViewCellConverter.cs
- VarRemapper.cs
- Variant.cs
- Panel.cs
- CustomAssemblyResolver.cs
- DataControlExtensions.cs
- MaskedTextBox.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- OutputCacheSettingsSection.cs
- CompilerErrorCollection.cs
- VectorAnimationBase.cs
- SafeArrayRankMismatchException.cs
- ReadingWritingEntityEventArgs.cs
- Storyboard.cs
- StandardTransformFactory.cs
- AppDomainAttributes.cs
- SectionRecord.cs
- NameTable.cs
- MdiWindowListStrip.cs
- CodePageUtils.cs
- UntypedNullExpression.cs
- Utilities.cs
- WmpBitmapEncoder.cs
- DataGridViewColumnConverter.cs
- ToolStripMenuItemDesigner.cs
- BasicViewGenerator.cs
- EntityDataSourceViewSchema.cs
- WindowsMenu.cs
- Container.cs
- DBSqlParserTable.cs
- HtmlFormParameterWriter.cs
- TailPinnedEventArgs.cs
- PrintDialog.cs
- RoutingConfiguration.cs
- XPathPatternParser.cs
- SiteMapProvider.cs
- Size3D.cs
- CodeDOMUtility.cs