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
- AppDomainEvidenceFactory.cs
- ChangePassword.cs
- BaseTemplateParser.cs
- GeneratedView.cs
- EndpointConfigContainer.cs
- ApplicationHost.cs
- WebServiceData.cs
- DesignerActionService.cs
- CodeConstructor.cs
- InputProcessorProfiles.cs
- TraceSection.cs
- CustomError.cs
- TransformConverter.cs
- UserCancellationException.cs
- VariantWrapper.cs
- VectorCollectionValueSerializer.cs
- CompositionTarget.cs
- PageTrueTypeFont.cs
- AdRotator.cs
- XmlBinaryWriter.cs
- ParameterToken.cs
- XamlHostingSectionGroup.cs
- TransformValueSerializer.cs
- SessionChannels.cs
- ProcessHostServerConfig.cs
- FontFamilyIdentifier.cs
- LayoutDump.cs
- PropertyDescriptor.cs
- ProgressBarHighlightConverter.cs
- HashRepartitionEnumerator.cs
- XPathMultyIterator.cs
- ArgumentNullException.cs
- Content.cs
- TcpTransportBindingElement.cs
- TypeValidationEventArgs.cs
- MetadataCacheItem.cs
- UIInitializationException.cs
- Trace.cs
- HostnameComparisonMode.cs
- NamespaceQuery.cs
- SpellerStatusTable.cs
- VirtualPathProvider.cs
- QuarticEase.cs
- Geometry.cs
- HttpModuleActionCollection.cs
- AuthStoreRoleProvider.cs
- PixelFormatConverter.cs
- Quaternion.cs
- MetafileHeaderEmf.cs
- DesignerActionTextItem.cs
- CodeCatchClauseCollection.cs
- Logging.cs
- ConstructorNeedsTagAttribute.cs
- TreeViewItem.cs
- WebServiceErrorEvent.cs
- ObjectHandle.cs
- HttpRequestCacheValidator.cs
- PreviousTrackingServiceAttribute.cs
- PropertyStore.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- JumpItem.cs
- entityreference_tresulttype.cs
- InternalReceiveMessage.cs
- FileLoadException.cs
- GetPageCompletedEventArgs.cs
- ActivationServices.cs
- HtmlInputReset.cs
- LinqDataSourceInsertEventArgs.cs
- XmlAnyElementAttribute.cs
- XmlAttribute.cs
- StylusTip.cs
- CodeObjectCreateExpression.cs
- RectKeyFrameCollection.cs
- XmlDocumentType.cs
- CodeGroup.cs
- Comparer.cs
- FileRecordSequence.cs
- DoubleLinkList.cs
- WizardPanelChangingEventArgs.cs
- TraceUtils.cs
- IisTraceWebEventProvider.cs
- SecurityToken.cs
- PopupRootAutomationPeer.cs
- ParentControlDesigner.cs
- XmlBufferReader.cs
- DesignerCategoryAttribute.cs
- UnknownWrapper.cs
- ConfigXmlAttribute.cs
- ExpressionLink.cs
- DefaultProxySection.cs
- TextTreeRootTextBlock.cs
- DocumentCollection.cs
- EdmSchemaAttribute.cs
- StringUtil.cs
- SqlUtils.cs
- RemoteWebConfigurationHostStream.cs
- AssociatedControlConverter.cs
- TextFormatterHost.cs
- HttpModuleActionCollection.cs
- File.cs