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
- EdmFunction.cs
- NamedPermissionSet.cs
- ObjectViewFactory.cs
- Compilation.cs
- XmlSchemaExternal.cs
- DateTimeValueSerializerContext.cs
- DocumentCollection.cs
- TypeElement.cs
- BitmapImage.cs
- GeneralTransform3DGroup.cs
- FontNameConverter.cs
- XMLSyntaxException.cs
- InkCanvasSelectionAdorner.cs
- WorkflowDefinitionContext.cs
- MessageLoggingFilterTraceRecord.cs
- DataFormats.cs
- StaticResourceExtension.cs
- GroupStyle.cs
- PeerNameResolver.cs
- ScrollPattern.cs
- NamedElement.cs
- UnsafeNativeMethodsTablet.cs
- HashAlgorithm.cs
- graph.cs
- WindowManager.cs
- Tool.cs
- UIElement.cs
- ObjectParameterCollection.cs
- StrongName.cs
- CultureInfoConverter.cs
- EventLogPermissionAttribute.cs
- PropertyDescriptorCollection.cs
- ParentUndoUnit.cs
- smtpconnection.cs
- coordinatorscratchpad.cs
- UndoUnit.cs
- DesignRelation.cs
- DataGridViewDesigner.cs
- ToolBarDesigner.cs
- InstalledFontCollection.cs
- AstNode.cs
- NativeMethodsCLR.cs
- Events.cs
- ConsumerConnectionPoint.cs
- Drawing.cs
- FrameworkObject.cs
- BookmarkScopeInfo.cs
- TemplateBamlTreeBuilder.cs
- PTConverter.cs
- GenericWebPart.cs
- DBAsyncResult.cs
- Dictionary.cs
- Ops.cs
- TabControlAutomationPeer.cs
- Parsers.cs
- ReferenceService.cs
- KeyProperty.cs
- ITreeGenerator.cs
- RuntimeArgument.cs
- NamespaceEmitter.cs
- ActivitiesCollection.cs
- ParamArrayAttribute.cs
- SecurityContextTokenValidationException.cs
- DefaultValueTypeConverter.cs
- PermissionRequestEvidence.cs
- SupportingTokenChannel.cs
- CodeCompileUnit.cs
- EditingCommands.cs
- FileSystemWatcher.cs
- CodeSubDirectoriesCollection.cs
- TargetControlTypeCache.cs
- PaintValueEventArgs.cs
- StrongTypingException.cs
- FixedSOMPageElement.cs
- BrushConverter.cs
- ObjectListCommand.cs
- MimeFormatter.cs
- EncoderExceptionFallback.cs
- CryptoHelper.cs
- EventBuilder.cs
- WebPartAuthorizationEventArgs.cs
- TagMapCollection.cs
- HttpsChannelFactory.cs
- InputLangChangeEvent.cs
- FrameSecurityDescriptor.cs
- BuildResultCache.cs
- CommandField.cs
- Int32CollectionValueSerializer.cs
- LockRecursionException.cs
- BrowserInteropHelper.cs
- FrameDimension.cs
- FillBehavior.cs
- elementinformation.cs
- MemberJoinTreeNode.cs
- MouseGestureConverter.cs
- FieldNameLookup.cs
- AncestorChangedEventArgs.cs
- TogglePatternIdentifiers.cs
- Exception.cs
- Maps.cs