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
- _LocalDataStore.cs
- AssemblyInfo.cs
- HttpListenerResponse.cs
- DataErrorValidationRule.cs
- DataGridViewIntLinkedList.cs
- IndentedWriter.cs
- InputElement.cs
- SelectionPattern.cs
- WindowsComboBox.cs
- ThemeableAttribute.cs
- LayoutSettings.cs
- GridViewColumnHeader.cs
- CredentialManagerDialog.cs
- SqlDataSourceConfigureFilterForm.cs
- OracleBoolean.cs
- UserValidatedEventArgs.cs
- adornercollection.cs
- XXXInfos.cs
- HitTestResult.cs
- ClientUtils.cs
- WaitForChangedResult.cs
- TextPenaltyModule.cs
- ProfileManager.cs
- GraphicsPathIterator.cs
- CompiledXpathExpr.cs
- PipeException.cs
- AsymmetricCryptoHandle.cs
- ExtractorMetadata.cs
- IDReferencePropertyAttribute.cs
- HttpWebResponse.cs
- XmlCompatibilityReader.cs
- MemberInfoSerializationHolder.cs
- DBCommandBuilder.cs
- WeakReference.cs
- Operators.cs
- ServiceModelActivationSectionGroup.cs
- TimerElapsedEvenArgs.cs
- PublisherMembershipCondition.cs
- FormsAuthentication.cs
- SqlInfoMessageEvent.cs
- StringUtil.cs
- exports.cs
- XmlEventCache.cs
- PackageFilter.cs
- SecurityKeyIdentifier.cs
- Typeface.cs
- ObjectViewEntityCollectionData.cs
- ObjectIDGenerator.cs
- CategoryList.cs
- FixedSOMLineCollection.cs
- CultureMapper.cs
- MarkupCompilePass2.cs
- ContentElementCollection.cs
- ValueTypeFixupInfo.cs
- ObjectView.cs
- UshortList2.cs
- PasswordRecovery.cs
- PropertyReferenceSerializer.cs
- NoPersistProperty.cs
- MenuItemCollectionEditorDialog.cs
- CompiledQuery.cs
- SemanticResultKey.cs
- CrossAppDomainChannel.cs
- TableCellAutomationPeer.cs
- DrawingGroupDrawingContext.cs
- ClientScriptManager.cs
- UnsafeNativeMethods.cs
- XmlValidatingReader.cs
- XmlFormatWriterGenerator.cs
- ParenthesizePropertyNameAttribute.cs
- XAMLParseException.cs
- FlowLayoutSettings.cs
- codemethodreferenceexpression.cs
- DesigntimeLicenseContextSerializer.cs
- LabelLiteral.cs
- ValidatorCollection.cs
- OracleEncoding.cs
- XmlCharCheckingReader.cs
- SizeIndependentAnimationStorage.cs
- Menu.cs
- CommandHelper.cs
- AnimationException.cs
- AssemblyBuilder.cs
- PropertyMapper.cs
- SiteIdentityPermission.cs
- DesignTimeParseData.cs
- CqlParser.cs
- XmlSchemaAny.cs
- CommonObjectSecurity.cs
- GCHandleCookieTable.cs
- DataGridLengthConverter.cs
- DashStyles.cs
- ComboBoxItem.cs
- CSharpCodeProvider.cs
- HtmlTableCellCollection.cs
- AddInStore.cs
- PackUriHelper.cs
- Misc.cs
- DbConnectionPool.cs
- PerformanceCounter.cs