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
- BoolExpr.cs
- Exception.cs
- XmlSchemaAny.cs
- OrderPreservingSpoolingTask.cs
- ReflectionPermission.cs
- SqlClientWrapperSmiStreamChars.cs
- TextContainer.cs
- ColorEditor.cs
- ManipulationPivot.cs
- BamlStream.cs
- __Filters.cs
- RegistrationProxy.cs
- StatusBar.cs
- DynamicEntity.cs
- ClientSession.cs
- UnitySerializationHolder.cs
- VirtualPathProvider.cs
- X509ChainElement.cs
- RepeatInfo.cs
- AuthorizationRuleCollection.cs
- OutputScopeManager.cs
- SHA512.cs
- AlternateViewCollection.cs
- ErasingStroke.cs
- XmlILModule.cs
- ByteStreamGeometryContext.cs
- CrossSiteScriptingValidation.cs
- SafeCancelMibChangeNotify.cs
- ContainsRowNumberChecker.cs
- CellCreator.cs
- CodePrimitiveExpression.cs
- Win32PrintDialog.cs
- SchemaCollectionPreprocessor.cs
- Token.cs
- PropertyDescriptor.cs
- ServiceAppDomainAssociationProvider.cs
- SafePEFileHandle.cs
- ChoiceConverter.cs
- WebScriptMetadataMessageEncoderFactory.cs
- LabelEditEvent.cs
- SchemaLookupTable.cs
- LineBreak.cs
- SqlNotificationEventArgs.cs
- ConfigurationElementProperty.cs
- HuffmanTree.cs
- FamilyTypefaceCollection.cs
- AdRotatorDesigner.cs
- WebBrowserUriTypeConverter.cs
- BoolExpressionVisitors.cs
- DataGridViewAdvancedBorderStyle.cs
- SelectionHighlightInfo.cs
- wgx_commands.cs
- ByteStreamMessage.cs
- FakeModelPropertyImpl.cs
- IdentityModelStringsVersion1.cs
- EventToken.cs
- LinkUtilities.cs
- WindowsScrollBar.cs
- SecurityManager.cs
- SHA384Managed.cs
- Classification.cs
- ConfigXmlText.cs
- ParserExtension.cs
- ProcessModule.cs
- SQLUtility.cs
- TypeUnloadedException.cs
- CreateParams.cs
- RubberbandSelector.cs
- WebBrowser.cs
- CodeBlockBuilder.cs
- XmlRawWriterWrapper.cs
- CodeDOMUtility.cs
- MulticastNotSupportedException.cs
- DataBindEngine.cs
- RegistrationServices.cs
- Currency.cs
- RuleDefinitions.cs
- BatchWriter.cs
- XmlParser.cs
- ReadOnlyCollectionBase.cs
- Object.cs
- OledbConnectionStringbuilder.cs
- ButtonDesigner.cs
- ServiceDescriptionData.cs
- ConfigXmlWhitespace.cs
- WebPartCollection.cs
- HttpMethodConstraint.cs
- AccessViolationException.cs
- smtpconnection.cs
- FlowDecision.cs
- CanonicalFormWriter.cs
- OrderedEnumerableRowCollection.cs
- ScrollItemProviderWrapper.cs
- XmlSchemaSimpleTypeRestriction.cs
- Trace.cs
- C14NUtil.cs
- RotateTransform.cs
- RootBuilder.cs
- Point3DCollection.cs
- QueryBranchOp.cs