Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / 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. // //----------------------------------------------------------------- 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TimeStampChecker.cs
- TemplateContainer.cs
- NonSerializedAttribute.cs
- documentsequencetextcontainer.cs
- WebEncodingValidator.cs
- RegisteredDisposeScript.cs
- MetadataProperty.cs
- EventWaitHandleSecurity.cs
- ZipIOCentralDirectoryBlock.cs
- Fault.cs
- Decorator.cs
- NotifyIcon.cs
- InstanceLockedException.cs
- XmlUnspecifiedAttribute.cs
- CompiledAction.cs
- TableHeaderCell.cs
- Int16KeyFrameCollection.cs
- SqlVisitor.cs
- SEHException.cs
- control.ime.cs
- DynamicMethod.cs
- XsltContext.cs
- DocumentPageHost.cs
- SchemaMerger.cs
- InfoCardBaseException.cs
- DataObjectPastingEventArgs.cs
- _NegoStream.cs
- InnerItemCollectionView.cs
- StaticExtension.cs
- FormsAuthenticationCredentials.cs
- CharacterMetrics.cs
- MemberDomainMap.cs
- Block.cs
- LayeredChannelListener.cs
- NonSerializedAttribute.cs
- MgmtResManager.cs
- ResolvedKeyFrameEntry.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- BulletChrome.cs
- XmlNotation.cs
- ListBase.cs
- XMLUtil.cs
- PassportIdentity.cs
- RichTextBox.cs
- RadioButtonPopupAdapter.cs
- MultipartContentParser.cs
- KeyEvent.cs
- XmlNamespaceDeclarationsAttribute.cs
- BinHexEncoder.cs
- FormViewPageEventArgs.cs
- ToolboxBitmapAttribute.cs
- XsdBuildProvider.cs
- EditorZone.cs
- TcpChannelListener.cs
- HashStream.cs
- ListViewGroupItemCollection.cs
- SHA384.cs
- XPathBuilder.cs
- FormViewDeleteEventArgs.cs
- ValidatingReaderNodeData.cs
- _ListenerResponseStream.cs
- DataControlFieldCollection.cs
- SignatureHelper.cs
- documentation.cs
- __Filters.cs
- base64Transforms.cs
- AnimationLayer.cs
- MsmqIntegrationMessageProperty.cs
- UriSectionData.cs
- BuildManager.cs
- XNodeValidator.cs
- StopStoryboard.cs
- SqlInfoMessageEvent.cs
- CheckBoxField.cs
- HtmlTitle.cs
- DataKeyArray.cs
- CodeTypeDelegate.cs
- HierarchicalDataSourceDesigner.cs
- InterleavedZipPartStream.cs
- mediaeventargs.cs
- ToolBarTray.cs
- SqlUDTStorage.cs
- ReadOnlyHierarchicalDataSourceView.cs
- FilterQuery.cs
- OperationCanceledException.cs
- TranslateTransform3D.cs
- SpeechRecognitionEngine.cs
- GeometryHitTestResult.cs
- HostedTransportConfigurationManager.cs
- SqlUtils.cs
- HtmlButton.cs
- ButtonField.cs
- DateTimeConverter.cs
- MembershipSection.cs
- RectangleGeometry.cs
- ObjectFullSpanRewriter.cs
- SetterBase.cs
- ItemPager.cs
- ImageAnimator.cs
- DeleteHelper.cs