Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / 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
- BaseDataBoundControl.cs
- GeneralTransform3D.cs
- ClaimSet.cs
- Span.cs
- ExpressionConverter.cs
- XmlWriterSettings.cs
- TextLine.cs
- NativeMethods.cs
- StylusPointProperties.cs
- DrawingContextDrawingContextWalker.cs
- HtmlElementEventArgs.cs
- ReadOnlyPropertyMetadata.cs
- ToolStripButton.cs
- MenuBindingsEditor.cs
- WebPartVerbCollection.cs
- BoundingRectTracker.cs
- DesignerValidationSummaryAdapter.cs
- XmlnsPrefixAttribute.cs
- SecurityAlgorithmSuite.cs
- TableItemPattern.cs
- TypeSystemHelpers.cs
- TextRunCache.cs
- FixUp.cs
- MenuCommandsChangedEventArgs.cs
- DescendantBaseQuery.cs
- NativeObjectSecurity.cs
- ModuleConfigurationInfo.cs
- DivideByZeroException.cs
- FieldCollectionEditor.cs
- PointCollection.cs
- StandardMenuStripVerb.cs
- SapiRecoContext.cs
- TypeBuilderInstantiation.cs
- DateTimeSerializationSection.cs
- ThemeDirectoryCompiler.cs
- TTSEvent.cs
- TriState.cs
- WebServiceHandler.cs
- XmlDeclaration.cs
- ContextStaticAttribute.cs
- Brush.cs
- ISAPIRuntime.cs
- XmlEntity.cs
- ObjectPropertyMapping.cs
- DataGridSortCommandEventArgs.cs
- Application.cs
- Region.cs
- VisualProxy.cs
- AutomationPatternInfo.cs
- XmlHelper.cs
- XmlText.cs
- DrawingBrush.cs
- SafeRegistryHandle.cs
- PrivacyNoticeElement.cs
- Span.cs
- ProjectionPathSegment.cs
- PeerCredential.cs
- SrgsSemanticInterpretationTag.cs
- XPathMessageFilter.cs
- RouteParameter.cs
- PhotoPrintingIntent.cs
- HostProtectionException.cs
- ToolTip.cs
- AssemblyHash.cs
- ListViewEditEventArgs.cs
- SequentialUshortCollection.cs
- PtsCache.cs
- ListenerElementsCollection.cs
- ByteStreamGeometryContext.cs
- LayoutEditorPart.cs
- DocumentScope.cs
- PenThread.cs
- MetabaseServerConfig.cs
- iisPickupDirectory.cs
- ProtocolException.cs
- Int32KeyFrameCollection.cs
- AutomationElementCollection.cs
- KeyboardNavigation.cs
- ConfigurationValues.cs
- FixedSOMSemanticBox.cs
- MenuItemStyle.cs
- LoginName.cs
- DataGridViewUtilities.cs
- Point3DCollectionValueSerializer.cs
- ShutDownListener.cs
- PrintControllerWithStatusDialog.cs
- RtType.cs
- FrameworkContentElementAutomationPeer.cs
- FixedBufferAttribute.cs
- EtwTrace.cs
- TableLayoutSettingsTypeConverter.cs
- Bitmap.cs
- EdmMember.cs
- ISAPIRuntime.cs
- HttpCapabilitiesEvaluator.cs
- QueryCreatedEventArgs.cs
- Errors.cs
- DrawToolTipEventArgs.cs
- AccessibleObject.cs
- GridViewCancelEditEventArgs.cs