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
- NativeWindow.cs
- PresentationAppDomainManager.cs
- TypedReference.cs
- CreateUserWizardStep.cs
- BitmapEffectOutputConnector.cs
- DataRow.cs
- DataViewManager.cs
- MultiDataTrigger.cs
- CLRBindingWorker.cs
- DataServiceRequestException.cs
- ReadOnlyDataSource.cs
- ZipFileInfoCollection.cs
- WebContext.cs
- SiteMapPath.cs
- RadioButton.cs
- StylusEventArgs.cs
- Int32AnimationBase.cs
- XmlSiteMapProvider.cs
- recordstatefactory.cs
- TypeGenericEnumerableViewSchema.cs
- QilBinary.cs
- BatchServiceHost.cs
- PassportAuthenticationModule.cs
- PerspectiveCamera.cs
- MultiPropertyDescriptorGridEntry.cs
- Triplet.cs
- FormViewPageEventArgs.cs
- XmlHierarchicalDataSourceView.cs
- JsonEnumDataContract.cs
- NetworkInterface.cs
- BinaryUtilClasses.cs
- XamlFilter.cs
- TransformCollection.cs
- AccessorTable.cs
- URLAttribute.cs
- WhiteSpaceTrimStringConverter.cs
- DataGridViewColumnHeaderCell.cs
- SendingRequestEventArgs.cs
- DependencyPropertyDescriptor.cs
- ExportOptions.cs
- _PooledStream.cs
- CollectionTraceRecord.cs
- WeakHashtable.cs
- Menu.cs
- AnnotationAuthorChangedEventArgs.cs
- IsolatedStorageException.cs
- PointLightBase.cs
- precedingsibling.cs
- EntityObject.cs
- ArgumentException.cs
- AmbientLight.cs
- safelink.cs
- VolatileEnlistmentMultiplexing.cs
- GPRECTF.cs
- PerfCounterSection.cs
- ChtmlTextWriter.cs
- PermissionListSet.cs
- XmlUtf8RawTextWriter.cs
- TypeUtil.cs
- View.cs
- HttpRequestCacheValidator.cs
- ExpandSegment.cs
- ThicknessKeyFrameCollection.cs
- DbDataAdapter.cs
- OleDbParameterCollection.cs
- FixedSOMElement.cs
- ButtonChrome.cs
- AttributeCollection.cs
- IncrementalReadDecoders.cs
- SigningCredentials.cs
- ScrollEventArgs.cs
- MexNamedPipeBindingElement.cs
- cache.cs
- DeclarativeExpressionConditionDeclaration.cs
- Pair.cs
- SqlInternalConnectionTds.cs
- ObjectDataSourceMethodEventArgs.cs
- ZipFileInfoCollection.cs
- FrameAutomationPeer.cs
- CheckBox.cs
- Size3DConverter.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- Parser.cs
- SecurityPolicySection.cs
- HttpVersion.cs
- DrawTreeNodeEventArgs.cs
- ProvidersHelper.cs
- SmtpNegotiateAuthenticationModule.cs
- OdbcEnvironment.cs
- TextParagraphProperties.cs
- SchemaSetCompiler.cs
- Matrix.cs
- EventMap.cs
- FixedSOMTableCell.cs
- WebColorConverter.cs
- SafeMemoryMappedViewHandle.cs
- CompressStream.cs
- WindowsTokenRoleProvider.cs
- ZipIOExtraFieldElement.cs
- NamespaceCollection.cs