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
- WorkItem.cs
- RenderTargetBitmap.cs
- InvalidPipelineStoreException.cs
- BitArray.cs
- CryptoConfig.cs
- Maps.cs
- SerializationEventsCache.cs
- PathParser.cs
- StreamDocument.cs
- SoapExtensionImporter.cs
- DesignerImageAdapter.cs
- GridViewRowPresenterBase.cs
- TableRow.cs
- TextChange.cs
- RegistrySecurity.cs
- StaticResourceExtension.cs
- StringSource.cs
- DetailsViewModeEventArgs.cs
- StateFinalizationDesigner.cs
- DbMetaDataCollectionNames.cs
- IPAddressCollection.cs
- TraceLog.cs
- CommunicationException.cs
- OleDbTransaction.cs
- ReversePositionQuery.cs
- XmlHelper.cs
- SemaphoreSlim.cs
- Border.cs
- COM2Enum.cs
- UIElementAutomationPeer.cs
- FormsAuthenticationTicket.cs
- Site.cs
- AsyncCompletedEventArgs.cs
- ThicknessAnimationUsingKeyFrames.cs
- VoiceChangeEventArgs.cs
- Rect3DConverter.cs
- BindingSource.cs
- TrustManager.cs
- PathGeometry.cs
- HttpRuntime.cs
- IRCollection.cs
- XmlHierarchicalEnumerable.cs
- Enlistment.cs
- InterleavedZipPartStream.cs
- XmlStreamStore.cs
- LocatorPartList.cs
- cryptoapiTransform.cs
- StateMachineSubscription.cs
- ReadOnlyHierarchicalDataSource.cs
- TableLayout.cs
- HandlerBase.cs
- ProcessModelSection.cs
- DataSourceHelper.cs
- SqlProviderManifest.cs
- MobileResource.cs
- TextInfo.cs
- Int32KeyFrameCollection.cs
- Geometry.cs
- _ChunkParse.cs
- ConnectionPoint.cs
- DesignTimeParseData.cs
- Queue.cs
- PinnedBufferMemoryStream.cs
- ToolStripScrollButton.cs
- KnownIds.cs
- XmlValidatingReaderImpl.cs
- WorkflowItemPresenter.cs
- Unit.cs
- ObjectAnimationBase.cs
- CodeStatementCollection.cs
- SqlUDTStorage.cs
- WebPartEditorCancelVerb.cs
- UnsafePeerToPeerMethods.cs
- ErrorProvider.cs
- ICollection.cs
- DBCommandBuilder.cs
- FontUnitConverter.cs
- ParagraphVisual.cs
- XmlJsonWriter.cs
- ObjectStorage.cs
- StylusPlugInCollection.cs
- ContentPlaceHolder.cs
- TabletDevice.cs
- COM2ICategorizePropertiesHandler.cs
- DataTableExtensions.cs
- Cursor.cs
- BufferModesCollection.cs
- WindowsFont.cs
- AssemblyName.cs
- SocketAddress.cs
- HostingEnvironment.cs
- ActiveXSite.cs
- BindingCompleteEventArgs.cs
- Config.cs
- PersonalizationStateInfo.cs
- LogWriteRestartAreaAsyncResult.cs
- AssociationTypeEmitter.cs
- ModuleBuilderData.cs
- X509CertificateCollection.cs
- StateMachineHelpers.cs