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
- StreamReader.cs
- DropShadowEffect.cs
- Sequence.cs
- PropertyDescriptorCollection.cs
- PauseStoryboard.cs
- SearchForVirtualItemEventArgs.cs
- _LazyAsyncResult.cs
- SplineQuaternionKeyFrame.cs
- OleDbFactory.cs
- DescriptionAttribute.cs
- ObjectDataSourceSelectingEventArgs.cs
- QueryAsyncResult.cs
- UnsafeNativeMethods.cs
- hresults.cs
- FolderLevelBuildProvider.cs
- Encoder.cs
- StateElement.cs
- SqlCacheDependencyDatabase.cs
- ParseChildrenAsPropertiesAttribute.cs
- BamlReader.cs
- RemotingConfiguration.cs
- PhysicalFontFamily.cs
- GlobalItem.cs
- _UriSyntax.cs
- ArrayMergeHelper.cs
- SerTrace.cs
- DetailsViewRowCollection.cs
- LinearGradientBrush.cs
- FtpWebResponse.cs
- PolyQuadraticBezierSegment.cs
- ProvidersHelper.cs
- ExpressionList.cs
- DbConnectionPoolGroupProviderInfo.cs
- DockProviderWrapper.cs
- StringDictionary.cs
- MetafileHeaderWmf.cs
- GeometryDrawing.cs
- Viewport3DVisual.cs
- CompiledQuery.cs
- SslStream.cs
- ItemPager.cs
- SyntaxCheck.cs
- XmlDocumentFragment.cs
- DataBinding.cs
- MetadataUtil.cs
- SingleQueryOperator.cs
- Page.cs
- Baml6ConstructorInfo.cs
- Point.cs
- DrawingGroupDrawingContext.cs
- GeneralTransform2DTo3DTo2D.cs
- DispatcherFrame.cs
- Action.cs
- ZipArchive.cs
- LexicalChunk.cs
- TextFindEngine.cs
- EventLogConfiguration.cs
- TextBox.cs
- OutOfMemoryException.cs
- QilCloneVisitor.cs
- DataGridItemEventArgs.cs
- SimpleBitVector32.cs
- TripleDES.cs
- SaveFileDialogDesigner.cs
- TcpSocketManager.cs
- OwnerDrawPropertyBag.cs
- WebServiceBindingAttribute.cs
- BulletDecorator.cs
- Cursor.cs
- OrCondition.cs
- EnumValidator.cs
- XmlSerializerSection.cs
- SpecialFolderEnumConverter.cs
- PasswordPropertyTextAttribute.cs
- WindowsAuthenticationEventArgs.cs
- EnumBuilder.cs
- SignatureConfirmationElement.cs
- UserUseLicenseDictionaryLoader.cs
- GatewayDefinition.cs
- Vector3DCollectionConverter.cs
- TextTreeExtractElementUndoUnit.cs
- SqlReferenceCollection.cs
- ToolStripItemImageRenderEventArgs.cs
- FunctionDetailsReader.cs
- Util.cs
- Dispatcher.cs
- GeometryHitTestParameters.cs
- HttpListenerRequest.cs
- SqlServices.cs
- NumberSubstitution.cs
- FilteredAttributeCollection.cs
- SoapCodeExporter.cs
- Base64Stream.cs
- EncoderReplacementFallback.cs
- ReadingWritingEntityEventArgs.cs
- PreviewPrintController.cs
- WindowsListViewItemCheckBox.cs
- BaseAddressPrefixFilterElementCollection.cs
- TogglePattern.cs
- FixedNode.cs