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
- ContainsRowNumberChecker.cs
- ReadContentAsBinaryHelper.cs
- DesignerValidatorAdapter.cs
- EntityKey.cs
- Permission.cs
- ZipFileInfo.cs
- DataGridViewRowConverter.cs
- MethodBody.cs
- TrustLevelCollection.cs
- TransformProviderWrapper.cs
- DynamicExpression.cs
- EntityDataSourceChangingEventArgs.cs
- EventData.cs
- ObjectParameterCollection.cs
- EntityParameterCollection.cs
- CapabilitiesPattern.cs
- SQLString.cs
- RestHandler.cs
- DataRowCollection.cs
- FolderLevelBuildProvider.cs
- SeekStoryboard.cs
- HandleCollector.cs
- ObjectManager.cs
- ImplicitInputBrush.cs
- XmlNullResolver.cs
- DecimalStorage.cs
- IsolatedStorageFileStream.cs
- EdmTypeAttribute.cs
- Literal.cs
- Pair.cs
- XmlSchemaChoice.cs
- RepeaterItemEventArgs.cs
- KeyConverter.cs
- CommandDevice.cs
- DataControlField.cs
- ErrorStyle.cs
- CodeTypeReference.cs
- SecurityTraceRecordHelper.cs
- PeerMessageDispatcher.cs
- HttpCapabilitiesSectionHandler.cs
- CmsInterop.cs
- BufferAllocator.cs
- SqlDataSourceConfigureSelectPanel.cs
- DrawingContextWalker.cs
- WebPartConnectionsCancelEventArgs.cs
- OleDbInfoMessageEvent.cs
- SupportingTokenSpecification.cs
- OdbcConnectionFactory.cs
- PackageStore.cs
- RelationshipWrapper.cs
- TdsEnums.cs
- RequestUriProcessor.cs
- TextPattern.cs
- UrlMapping.cs
- OdbcEnvironment.cs
- XmlTextAttribute.cs
- DesignSurfaceEvent.cs
- BadImageFormatException.cs
- mediaeventshelper.cs
- ContentTextAutomationPeer.cs
- MdiWindowListStrip.cs
- FactoryGenerator.cs
- TextEffectCollection.cs
- CheckBoxAutomationPeer.cs
- Processor.cs
- QueryTask.cs
- DriveInfo.cs
- Update.cs
- DecimalSumAggregationOperator.cs
- AQNBuilder.cs
- DropDownList.cs
- StreamHelper.cs
- InkPresenter.cs
- ListViewUpdateEventArgs.cs
- GridViewRowCollection.cs
- ToolStripSplitStackLayout.cs
- BinaryVersion.cs
- DuplicateDetector.cs
- Models.cs
- EventMap.cs
- MessageBox.cs
- SqlProvider.cs
- PropertyKey.cs
- EncryptedKey.cs
- PenCursorManager.cs
- Transactions.cs
- XmlEntity.cs
- TextEffect.cs
- BinaryFormatterWriter.cs
- HMACSHA256.cs
- TextServicesHost.cs
- Logging.cs
- QuaternionValueSerializer.cs
- CurrentChangingEventManager.cs
- ManagementExtension.cs
- EventHandlersStore.cs
- MouseGesture.cs
- DataGridItemEventArgs.cs
- StrongNameKeyPair.cs
- ContainerParaClient.cs