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
- Vector3DIndependentAnimationStorage.cs
- DockPanel.cs
- EventWaitHandle.cs
- DataGridView.cs
- WebPartDescriptionCollection.cs
- FlowLayoutSettings.cs
- DBSchemaTable.cs
- GroupBox.cs
- ChildTable.cs
- DataTablePropertyDescriptor.cs
- VariableDesigner.xaml.cs
- ToolConsole.cs
- PtsCache.cs
- NonSerializedAttribute.cs
- StaticSiteMapProvider.cs
- ImmComposition.cs
- ClickablePoint.cs
- RawKeyboardInputReport.cs
- ResourceDisplayNameAttribute.cs
- ServiceOperationInfoTypeConverter.cs
- MultipartIdentifier.cs
- FeatureSupport.cs
- HostingPreferredMapPath.cs
- Region.cs
- DataBindEngine.cs
- NumberSubstitution.cs
- ResponseBodyWriter.cs
- HierarchicalDataSourceDesigner.cs
- BaseDataListDesigner.cs
- XmlReflectionImporter.cs
- infer.cs
- DataControlCommands.cs
- HashAlgorithm.cs
- PlacementWorkspace.cs
- ExpressionConverter.cs
- ValueCollectionParameterReader.cs
- TextDpi.cs
- Base64Encoder.cs
- XhtmlBasicCalendarAdapter.cs
- Rotation3DKeyFrameCollection.cs
- DataGridView.cs
- ColumnHeaderConverter.cs
- Transactions.cs
- PathTooLongException.cs
- ElementUtil.cs
- RawStylusInputReport.cs
- DiscoveryEndpointElement.cs
- ManagementPath.cs
- ActiveDesignSurfaceEvent.cs
- UnsafeNativeMethods.cs
- RSAPKCS1KeyExchangeFormatter.cs
- EncodingDataItem.cs
- SqlError.cs
- DefaultPrintController.cs
- PolyBezierSegmentFigureLogic.cs
- HttpCacheVary.cs
- IISMapPath.cs
- EventNotify.cs
- ScaleTransform3D.cs
- ObjectListCommandsPage.cs
- DataExpression.cs
- PackWebRequest.cs
- WeakReferenceEnumerator.cs
- CustomAttributeBuilder.cs
- InternalConfigEventArgs.cs
- ImageFormatConverter.cs
- Size.cs
- DesignerVerbCollection.cs
- WebEventTraceProvider.cs
- CreateUserWizardStep.cs
- Vector.cs
- Bezier.cs
- ResourcePart.cs
- OutputCacheSettingsSection.cs
- FrameworkObject.cs
- SimpleLine.cs
- Storyboard.cs
- SizeAnimation.cs
- CharacterMetrics.cs
- EntityDataSourceChangingEventArgs.cs
- ByteStorage.cs
- CodeRemoveEventStatement.cs
- HashStream.cs
- GiveFeedbackEventArgs.cs
- PointLight.cs
- ConstructorArgumentAttribute.cs
- HeaderLabel.cs
- HMACRIPEMD160.cs
- MailBnfHelper.cs
- RotateTransform.cs
- DNS.cs
- ItemsControlAutomationPeer.cs
- MenuItem.cs
- WebPartDisplayMode.cs
- TagNameToTypeMapper.cs
- SystemThemeKey.cs
- SynchronizedInputAdaptor.cs
- Brush.cs
- Action.cs
- ImageCodecInfoPrivate.cs