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
- WebPartVerb.cs
- WebEvents.cs
- DataAdapter.cs
- Lasso.cs
- MailMessageEventArgs.cs
- EpmContentDeSerializerBase.cs
- RadioButtonFlatAdapter.cs
- InternalConfirm.cs
- ItemContainerGenerator.cs
- SqlCacheDependency.cs
- WinEventTracker.cs
- Thread.cs
- JapaneseLunisolarCalendar.cs
- SystemIPAddressInformation.cs
- WebHttpBindingElement.cs
- XmlEnumAttribute.cs
- PointUtil.cs
- SQLGuidStorage.cs
- XmlSchemaElement.cs
- CachedFontFamily.cs
- PrintControllerWithStatusDialog.cs
- LinqDataSourceContextEventArgs.cs
- EncoderFallback.cs
- WrapPanel.cs
- KeyMatchBuilder.cs
- BitStack.cs
- ImportCatalogPart.cs
- SQLInt32.cs
- DataFormat.cs
- DependencyObject.cs
- ConnectionStringsSection.cs
- DataServiceEntityAttribute.cs
- FunctionDetailsReader.cs
- WindowsToolbarAsMenu.cs
- OdbcPermission.cs
- DesignerProperties.cs
- EntityTypeEmitter.cs
- QualificationDataItem.cs
- SliderAutomationPeer.cs
- FunctionGenerator.cs
- PrintDialog.cs
- Executor.cs
- invalidudtexception.cs
- HttpClientCertificate.cs
- Transform.cs
- RSAOAEPKeyExchangeDeformatter.cs
- StrongTypingException.cs
- _UncName.cs
- OperationPerformanceCounters.cs
- NegotiateStream.cs
- CornerRadiusConverter.cs
- SelectionPatternIdentifiers.cs
- XmlSerializerSection.cs
- UriParserTemplates.cs
- MarkupCompilePass2.cs
- ProgressBarBrushConverter.cs
- EntityReference.cs
- ClusterRegistryConfigurationProvider.cs
- CustomErrorCollection.cs
- InstanceData.cs
- UnitySerializationHolder.cs
- SequenceNumber.cs
- SystemInformation.cs
- DataControlHelper.cs
- Size3DConverter.cs
- sqlnorm.cs
- TextRenderer.cs
- ButtonBaseAutomationPeer.cs
- EncryptedHeaderXml.cs
- SecurityCookieModeValidator.cs
- DisableDpiAwarenessAttribute.cs
- AppDomainFactory.cs
- XhtmlBasicValidationSummaryAdapter.cs
- MultiBinding.cs
- Unit.cs
- XpsFixedDocumentSequenceReaderWriter.cs
- FlatButtonAppearance.cs
- dbdatarecord.cs
- CollectionView.cs
- Error.cs
- XmlSchemaRedefine.cs
- Journaling.cs
- InvalidFilterCriteriaException.cs
- XmlSchemaExporter.cs
- TextServicesDisplayAttribute.cs
- WsdlBuildProvider.cs
- TransactionOptions.cs
- XmlCodeExporter.cs
- PreservationFileReader.cs
- InitializationEventAttribute.cs
- TextEditorDragDrop.cs
- Vector3DCollectionValueSerializer.cs
- NonParentingControl.cs
- PaperSize.cs
- InputElement.cs
- MimeParameterWriter.cs
- BulletDecorator.cs
- MulticastDelegate.cs
- AggregationMinMaxHelpers.cs
- SingleConverter.cs