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
- Stack.cs
- ShaderRenderModeValidation.cs
- updatecommandorderer.cs
- SqlUnionizer.cs
- SpeechUI.cs
- EngineSiteSapi.cs
- WebServiceHost.cs
- TemplateControlCodeDomTreeGenerator.cs
- ScriptHandlerFactory.cs
- ThemeableAttribute.cs
- BaseDataListComponentEditor.cs
- IdentityValidationException.cs
- ValueProviderWrapper.cs
- OutOfProcStateClientManager.cs
- ManagementObjectSearcher.cs
- WorkflowDebuggerSteppingAttribute.cs
- XsdBuilder.cs
- ActiveXHost.cs
- DataSourceCacheDurationConverter.cs
- SoapAttributeOverrides.cs
- DataGridViewRowPostPaintEventArgs.cs
- KeyValueInternalCollection.cs
- Point3DCollection.cs
- NavigationPropertyAccessor.cs
- ResolveNextArgumentWorkItem.cs
- TabItemWrapperAutomationPeer.cs
- SQLDecimalStorage.cs
- NoneExcludedImageIndexConverter.cs
- FacetDescription.cs
- ServicePoint.cs
- RTLAwareMessageBox.cs
- BookmarkEventArgs.cs
- CheckedPointers.cs
- Itemizer.cs
- WindowShowOrOpenTracker.cs
- TokenizerHelper.cs
- XPathDocumentIterator.cs
- SimpleExpression.cs
- ButtonBase.cs
- ExtensibleClassFactory.cs
- URL.cs
- NamespaceTable.cs
- TextEditorCopyPaste.cs
- PlatformNotSupportedException.cs
- SqlCommandBuilder.cs
- QuaternionValueSerializer.cs
- RectAnimationUsingKeyFrames.cs
- CreateUserErrorEventArgs.cs
- Point3DAnimationBase.cs
- EventToken.cs
- RangeValidator.cs
- FunctionDetailsReader.cs
- CodeGenHelper.cs
- EmptyControlCollection.cs
- IteratorFilter.cs
- XamlWriter.cs
- TTSEngineTypes.cs
- PassportIdentity.cs
- SessionEndingCancelEventArgs.cs
- ReliableDuplexSessionChannel.cs
- DeferredTextReference.cs
- CollectionsUtil.cs
- SequenceDesignerAccessibleObject.cs
- sqlcontext.cs
- XamlPointCollectionSerializer.cs
- Label.cs
- OutOfMemoryException.cs
- DataKeyArray.cs
- StringStorage.cs
- ExpressionBuilderCollection.cs
- SettingsPropertyValueCollection.cs
- PatternMatchRules.cs
- codemethodreferenceexpression.cs
- DelegatingTypeDescriptionProvider.cs
- JournalEntryStack.cs
- XamlPointCollectionSerializer.cs
- PseudoWebRequest.cs
- IsolatedStoragePermission.cs
- QueryReaderSettings.cs
- XmlImplementation.cs
- TagPrefixCollection.cs
- WebBrowsableAttribute.cs
- ConversionContext.cs
- TraceListener.cs
- ViewCellRelation.cs
- _FixedSizeReader.cs
- TryCatchDesigner.xaml.cs
- WindowsPen.cs
- WorkflowApplicationCompletedException.cs
- UpdateTranslator.cs
- BlobPersonalizationState.cs
- HttpWriter.cs
- CheckBoxList.cs
- EditableRegion.cs
- EmptyCollection.cs
- TiffBitmapEncoder.cs
- MouseGestureValueSerializer.cs
- CompilerCollection.cs
- ElementHostPropertyMap.cs
- ScrollProperties.cs