Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Speech / Src / Recognition / SemanticResultValue.cs / 1 / SemanticResultValue.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 ("{_tag.DebugSummary}")] public class SemanticResultValue { //******************************************************************* // // Constructors // //******************************************************************* #region Constructors ////// TODOC /// /// public SemanticResultValue (object value) { Helpers.ThrowIfNull (value, "value"); _tag = new TagElement (value); } ////// TODOC /// /// /// public SemanticResultValue (string phrase, object value) { Helpers.ThrowIfEmptyOrNull (phrase, "phrase"); Helpers.ThrowIfNull (value, "value"); _tag = new TagElement (new GrammarBuilderPhrase ((string) phrase.Clone ()), value); } ////// TODOC /// /// /// public SemanticResultValue (GrammarBuilder builder, object value) { Helpers.ThrowIfNull (builder, "builder"); Helpers.ThrowIfNull (value, "value"); _tag = new TagElement (builder.Clone (), value); } #endregion //******************************************************************** // // Public Methods // //******************************************************************* #region Public Methods ////// TODOC /// ///public GrammarBuilder ToGrammarBuilder () { return new GrammarBuilder (this); } #endregion //******************************************************************** // // Internal Properties // //******************************************************************** #region Internal Properties /// /// /// internal TagElement Tag { get { return _tag; } } #endregion //******************************************************************* // // Private Fields // //******************************************************************** #region Private Fields private TagElement _tag; #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
- SystemMulticastIPAddressInformation.cs
- ContractNamespaceAttribute.cs
- Help.cs
- ObjectCloneHelper.cs
- StoreContentChangedEventArgs.cs
- Pointer.cs
- PrinterSettings.cs
- DataGridItemEventArgs.cs
- ServiceDescriptionSerializer.cs
- ResourceAttributes.cs
- DataSourceControl.cs
- IgnoreSectionHandler.cs
- ImageConverter.cs
- MaskedTextBox.cs
- RadioButtonBaseAdapter.cs
- EntityDataSourceStatementEditor.cs
- NullReferenceException.cs
- MeshGeometry3D.cs
- Message.cs
- StringComparer.cs
- ExecutedRoutedEventArgs.cs
- WinOEToolBoxItem.cs
- HtmlEncodedRawTextWriter.cs
- XPathSelectionIterator.cs
- MenuStrip.cs
- FileUpload.cs
- SerializationInfo.cs
- CreateUserWizardStep.cs
- LayoutTable.cs
- DynamicValueConverter.cs
- QuaternionConverter.cs
- EditorZone.cs
- EventArgs.cs
- DynamicValueConverter.cs
- ArgumentNullException.cs
- DataGridItem.cs
- DataServiceHost.cs
- LineSegment.cs
- SerializerDescriptor.cs
- WorkflowView.cs
- ControlUtil.cs
- TemplateBaseAction.cs
- ConnectionPointCookie.cs
- DeploymentSection.cs
- CopyAction.cs
- TemplateColumn.cs
- HandlerWithFactory.cs
- XmlNamespaceDeclarationsAttribute.cs
- TabControlCancelEvent.cs
- TextElementEditingBehaviorAttribute.cs
- EntityDataSourceEntityTypeFilterItem.cs
- DrawingImage.cs
- Set.cs
- ListViewGroupConverter.cs
- AssemblySettingAttributes.cs
- RSAOAEPKeyExchangeFormatter.cs
- XmlSchemaIdentityConstraint.cs
- AuthenticateEventArgs.cs
- AttachmentService.cs
- RijndaelManagedTransform.cs
- DataGridViewCellValueEventArgs.cs
- Single.cs
- EntityContainerRelationshipSet.cs
- ComponentCollection.cs
- FormsIdentity.cs
- TdsParameterSetter.cs
- StringFreezingAttribute.cs
- InvokeDelegate.cs
- TransformProviderWrapper.cs
- ToolStripLocationCancelEventArgs.cs
- SdlChannelSink.cs
- TreeNodeSelectionProcessor.cs
- WebConfigurationHostFileChange.cs
- SqlUnionizer.cs
- CustomErrorCollection.cs
- CalculatedColumn.cs
- SymLanguageVendor.cs
- OneOfElement.cs
- LinearGradientBrush.cs
- Base64Encoder.cs
- PropertyMetadata.cs
- StateManagedCollection.cs
- MultiTrigger.cs
- ListItemCollection.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- EntityDataSourceChangedEventArgs.cs
- SharedStream.cs
- NativeMethodsCLR.cs
- DataGridViewRowHeaderCell.cs
- NotifyIcon.cs
- ClientFormsIdentity.cs
- CompositeControl.cs
- SecurityChannelListener.cs
- SqlMethodTransformer.cs
- ReturnEventArgs.cs
- QueryableFilterUserControl.cs
- BaseTemplatedMobileComponentEditor.cs
- DataSourceConverter.cs
- OpenFileDialog.cs
- PointHitTestResult.cs