Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / 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
- TreeViewEvent.cs
- UIElement3D.cs
- Control.cs
- CodeArrayCreateExpression.cs
- JournalEntryStack.cs
- WindowsBrush.cs
- XmlILConstructAnalyzer.cs
- ClientProxyGenerator.cs
- GreenMethods.cs
- AssemblyCollection.cs
- ProxySimple.cs
- AudioFileOut.cs
- SetIterators.cs
- QilInvokeLateBound.cs
- SequentialWorkflowRootDesigner.cs
- AstTree.cs
- SoapClientMessage.cs
- ArrayList.cs
- AsmxEndpointPickerExtension.cs
- nulltextnavigator.cs
- DebugController.cs
- Sentence.cs
- ProtocolsConfiguration.cs
- SetterBaseCollection.cs
- WindowManager.cs
- XmlSchema.cs
- FactoryGenerator.cs
- WindowProviderWrapper.cs
- XmlReaderSettings.cs
- OpacityConverter.cs
- PolygonHotSpot.cs
- PersonalizationProvider.cs
- TypeBinaryExpression.cs
- ConnectionStringsExpressionBuilder.cs
- HttpWebRequest.cs
- DnsPermission.cs
- ItemList.cs
- XmlSubtreeReader.cs
- PolicyManager.cs
- Array.cs
- DbConnectionPoolCounters.cs
- ExpressionBindingCollection.cs
- QilChoice.cs
- DataGridHeaderBorder.cs
- ClientScriptItem.cs
- XmlAttributeProperties.cs
- StylusPointCollection.cs
- TypographyProperties.cs
- SecurityTokenValidationException.cs
- ArgumentOutOfRangeException.cs
- Classification.cs
- ParameterBinding.cs
- ContentElement.cs
- processwaithandle.cs
- XmlDataFileEditor.cs
- UncommonField.cs
- DependencyPropertyKind.cs
- SimplePropertyEntry.cs
- SafeThemeHandle.cs
- PcmConverter.cs
- EffectiveValueEntry.cs
- ConstraintConverter.cs
- ADMembershipUser.cs
- CookieProtection.cs
- TextWriter.cs
- JsonStringDataContract.cs
- DataGridAutomationPeer.cs
- BasicKeyConstraint.cs
- XmlRootAttribute.cs
- XmlSchemas.cs
- ArithmeticLiteral.cs
- CachingHintValidation.cs
- StreamingContext.cs
- ContextBase.cs
- DataServiceBuildProvider.cs
- ArrayElementGridEntry.cs
- DBCommand.cs
- TiffBitmapEncoder.cs
- ExpandSegmentCollection.cs
- PartialList.cs
- StaticResourceExtension.cs
- TextSelectionHelper.cs
- DocumentSequence.cs
- KnownTypesHelper.cs
- ComboBox.cs
- Reference.cs
- SqlDataSourceView.cs
- NetworkCredential.cs
- BinaryMethodMessage.cs
- SessionSwitchEventArgs.cs
- EntityKey.cs
- PageThemeBuildProvider.cs
- DateTime.cs
- SecurityPermission.cs
- Matrix3DStack.cs
- TextDocumentView.cs
- LogConverter.cs
- DataGridViewCell.cs
- NextPreviousPagerField.cs
- ListViewItem.cs