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
- DesignerActionGlyph.cs
- ChildTable.cs
- HttpRuntime.cs
- BinaryKeyIdentifierClause.cs
- WmlListAdapter.cs
- SqlProfileProvider.cs
- CultureSpecificStringDictionary.cs
- SafeProcessHandle.cs
- CategoryAttribute.cs
- ContainerControlDesigner.cs
- ObjectView.cs
- IImplicitResourceProvider.cs
- CqlLexerHelpers.cs
- RbTree.cs
- AdornerLayer.cs
- XmlCharType.cs
- SqlXml.cs
- Bold.cs
- NavigationWindowAutomationPeer.cs
- RbTree.cs
- MobileListItemCollection.cs
- StatusBarItem.cs
- AnnotationDocumentPaginator.cs
- RadioButtonRenderer.cs
- EmulateRecognizeCompletedEventArgs.cs
- TranslateTransform.cs
- InfoCardBaseException.cs
- ClientTargetSection.cs
- BaseAddressElement.cs
- XhtmlMobileTextWriter.cs
- TextParagraph.cs
- Int32CollectionConverter.cs
- ScriptManager.cs
- AggregateNode.cs
- IndexedEnumerable.cs
- ShaderEffect.cs
- SettingsPropertyValue.cs
- XamlFxTrace.cs
- ReferenceService.cs
- FileUtil.cs
- UpdateManifestForBrowserApplication.cs
- QueueProcessor.cs
- XamlSerializerUtil.cs
- WebBrowserContainer.cs
- ResourceExpressionBuilder.cs
- COM2PictureConverter.cs
- XslCompiledTransform.cs
- RegexCompiler.cs
- ScriptReferenceBase.cs
- DataGridViewCellFormattingEventArgs.cs
- ThicknessConverter.cs
- SHA384Managed.cs
- TemplateKey.cs
- ClientSettingsProvider.cs
- MarkupProperty.cs
- SqlDataSourceView.cs
- NCryptSafeHandles.cs
- CompilerScopeManager.cs
- EventSetter.cs
- SimpleHandlerBuildProvider.cs
- HeaderPanel.cs
- NetworkAddressChange.cs
- AsyncDataRequest.cs
- Typeface.cs
- CreateDataSourceDialog.cs
- RepeatInfo.cs
- UnconditionalPolicy.cs
- ProfileModule.cs
- _CacheStreams.cs
- ScriptingJsonSerializationSection.cs
- DataFormats.cs
- DataTransferEventArgs.cs
- OdbcFactory.cs
- DateTimeFormatInfo.cs
- MachineKeyConverter.cs
- QilFunction.cs
- BamlBinaryReader.cs
- NavigationPropertyEmitter.cs
- DataAdapter.cs
- TemplateContent.cs
- IntPtr.cs
- FilteredAttributeCollection.cs
- PreProcessInputEventArgs.cs
- DBSqlParserTable.cs
- DiffuseMaterial.cs
- DataGridViewCellParsingEventArgs.cs
- TickBar.cs
- unsafenativemethodsother.cs
- ParseNumbers.cs
- SingleTagSectionHandler.cs
- Color.cs
- TransformerInfoCollection.cs
- LinearGradientBrush.cs
- MultiView.cs
- CreatingCookieEventArgs.cs
- TableItemStyle.cs
- ExtenderControl.cs
- NotImplementedException.cs
- DataGridRowAutomationPeer.cs
- Size.cs