Code:
/ DotNET / DotNET / 8.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UxThemeWrapper.cs
- FileLogRecordEnumerator.cs
- OleDbPermission.cs
- OdbcError.cs
- RevocationPoint.cs
- NamedPipeChannelFactory.cs
- PageVisual.cs
- AssertSection.cs
- SqlMethodAttribute.cs
- _ConnectStream.cs
- NodeLabelEditEvent.cs
- CanonicalFontFamilyReference.cs
- Transform.cs
- CommandEventArgs.cs
- SafeCoTaskMem.cs
- ScopeCollection.cs
- CodePrimitiveExpression.cs
- ProcessModuleCollection.cs
- XmlSchemaSubstitutionGroup.cs
- BuildDependencySet.cs
- Mapping.cs
- FileResponseElement.cs
- ValueTable.cs
- FormatConvertedBitmap.cs
- FixedSOMContainer.cs
- isolationinterop.cs
- HwndTarget.cs
- SQLGuidStorage.cs
- DependencyObjectProvider.cs
- Transform.cs
- PageTheme.cs
- Vector3DValueSerializer.cs
- GroupDescription.cs
- MenuAdapter.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ResourcesBuildProvider.cs
- Graph.cs
- DetailsViewPageEventArgs.cs
- SafeHandle.cs
- WebPart.cs
- EventItfInfo.cs
- _IPv4Address.cs
- TypedAsyncResult.cs
- PageContentCollection.cs
- ApplicationSecurityManager.cs
- CachedRequestParams.cs
- DesignerActionPanel.cs
- ListViewDeletedEventArgs.cs
- FrameworkElement.cs
- SqlInternalConnectionSmi.cs
- ProfileService.cs
- Exceptions.cs
- StreamHelper.cs
- ReadOnlyCollectionBase.cs
- AffineTransform3D.cs
- FileRecordSequenceCompletedAsyncResult.cs
- backend.cs
- newinstructionaction.cs
- NamedPipeAppDomainProtocolHandler.cs
- WebColorConverter.cs
- LinkedResource.cs
- DependentList.cs
- BatchStream.cs
- Typography.cs
- WindowsEditBoxRange.cs
- Exceptions.cs
- WebPartPersonalization.cs
- PixelShader.cs
- OracleDataReader.cs
- FormatterServicesNoSerializableCheck.cs
- FormParameter.cs
- BindingList.cs
- InstrumentationTracker.cs
- PropertyGridCommands.cs
- SortQuery.cs
- HtmlLiteralTextAdapter.cs
- _LazyAsyncResult.cs
- ContentElement.cs
- OracleBFile.cs
- RelationshipConverter.cs
- StorageComplexTypeMapping.cs
- ServiceBuildProvider.cs
- NameValueConfigurationCollection.cs
- HelpProvider.cs
- PieceNameHelper.cs
- PropertyChangingEventArgs.cs
- GlyphManager.cs
- StyleBamlRecordReader.cs
- WebPartHeaderCloseVerb.cs
- WindowsRebar.cs
- WebCategoryAttribute.cs
- OLEDB_Enum.cs
- WebZoneDesigner.cs
- XmlNamespaceMapping.cs
- ReadOnlyTernaryTree.cs
- SettingsPropertyNotFoundException.cs
- DbDataAdapter.cs
- ChtmlCommandAdapter.cs
- MetadataArtifactLoader.cs
- CounterCreationData.cs