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
- DispatchWrapper.cs
- PersonalizationStateInfoCollection.cs
- MediaEntryAttribute.cs
- basecomparevalidator.cs
- DataServiceHostFactory.cs
- SplitContainer.cs
- RijndaelManaged.cs
- QilChoice.cs
- MobileResource.cs
- RSAPKCS1SignatureFormatter.cs
- QilValidationVisitor.cs
- DelegatedStream.cs
- ImageClickEventArgs.cs
- ExtensionSurface.cs
- TextParaClient.cs
- SettingsBindableAttribute.cs
- CardSpaceShim.cs
- ItemCheckEvent.cs
- Pen.cs
- BuilderPropertyEntry.cs
- HttpCacheParams.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- DataService.cs
- ConfigurationErrorsException.cs
- ActivityTypeDesigner.xaml.cs
- ScrollItemPatternIdentifiers.cs
- UriExt.cs
- XmlSchemaComplexType.cs
- ContractReference.cs
- SoapFault.cs
- TextElementEnumerator.cs
- SoapExtensionImporter.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- LocalizationComments.cs
- CounterSampleCalculator.cs
- SizeConverter.cs
- cryptoapiTransform.cs
- IssuedTokenParametersElement.cs
- HeaderLabel.cs
- _IPv4Address.cs
- DataSourceXmlSerializationAttribute.cs
- DataServiceRequestArgs.cs
- ImageField.cs
- Odbc32.cs
- HostingEnvironmentSection.cs
- IDataContractSurrogate.cs
- ExpandSegmentCollection.cs
- SamlSecurityTokenAuthenticator.cs
- XmlResolver.cs
- Component.cs
- FreezableOperations.cs
- CodeBinaryOperatorExpression.cs
- InstanceContextManager.cs
- panel.cs
- ConfigXmlWhitespace.cs
- CodeDefaultValueExpression.cs
- DeferredReference.cs
- UnknownWrapper.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- HealthMonitoringSectionHelper.cs
- validation.cs
- FormViewModeEventArgs.cs
- MexTcpBindingElement.cs
- ConditionBrowserDialog.cs
- Hyperlink.cs
- TableLayoutStyleCollection.cs
- TableColumnCollectionInternal.cs
- ControlDesigner.cs
- RemotingConfigParser.cs
- ColorIndependentAnimationStorage.cs
- InterleavedZipPartStream.cs
- InstanceLockException.cs
- ItemMap.cs
- Point3DCollectionConverter.cs
- CheckPair.cs
- TablePatternIdentifiers.cs
- OpenTypeLayoutCache.cs
- HostProtectionPermission.cs
- ProcessThreadCollection.cs
- Column.cs
- BasicKeyConstraint.cs
- HttpListenerResponse.cs
- InputReportEventArgs.cs
- FileDialogCustomPlace.cs
- IsolatedStorageException.cs
- TreeBuilderXamlTranslator.cs
- StorageScalarPropertyMapping.cs
- DataGridViewLayoutData.cs
- GeneralTransformGroup.cs
- ChannelProtectionRequirements.cs
- PrincipalPermission.cs
- WebHttpSecurity.cs
- PanelDesigner.cs
- ContentType.cs
- SerTrace.cs
- InternalConfigSettingsFactory.cs
- ExceptionAggregator.cs
- DBDataPermissionAttribute.cs
- TwoPhaseCommit.cs
- CheckBoxBaseAdapter.cs