Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Speech / Src / Internal / SrgsCompiler / SemanticTag.cs / 1 / SemanticTag.cs
//------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------
using System;
using System.Runtime.InteropServices;
using System.Speech.Internal.SrgsParser;
namespace System.Speech.Internal.SrgsCompiler
{
///
/// Summary description for Rule.
///
internal sealed class SemanticTag : ParseElement, ISemanticTag
{
//*******************************************************************
//
// Constructors
//
//*******************************************************************
#region Constructors
internal SemanticTag (ParseElement parent, Backend backend)
: base (parent._rule)
{
}
#endregion
//********************************************************************
//
// Internal Methods
//
//*******************************************************************
#region Internal Methods
/// TODOC <_include file='doc\Tag.uex' path='docs/doc[@for="Tag.RepeatProbability"]/*' />
// The probability that this item will be repeated.
void ISemanticTag.Content (IElement parentElement, string sTag, int iLine)
{
//Return if the Tag content is empty
sTag = sTag.Trim (Helpers._achTrimChars);
if (string.IsNullOrEmpty (sTag))
{
return;
}
// Build semantic properties to attach to epsilon transition.
// script
_propInfo._ulId = (uint) iLine;
_propInfo._comValue = sTag;
ParseElementCollection parent = (ParseElementCollection) parentElement;
// Attach the semantic properties on the parent element.
parent.AddSemanticInterpretationTag (_propInfo);
}
#endregion
//********************************************************************
//
// Private Fields
//
//********************************************************************
#region Private Fields
private CfgGrammar.CfgProperty _propInfo = new CfgGrammar.CfgProperty ();
#endregion
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlStringTable.cs
- PolicyImporterElementCollection.cs
- ListChunk.cs
- HTMLTextWriter.cs
- OrderedDictionaryStateHelper.cs
- CustomError.cs
- EmbeddedMailObjectsCollection.cs
- RedBlackList.cs
- BaseDataBoundControl.cs
- SqlException.cs
- PeerSecurityManager.cs
- XmlIgnoreAttribute.cs
- ModulesEntry.cs
- CapiNative.cs
- SecuritySessionClientSettings.cs
- DataGridItemEventArgs.cs
- ImageField.cs
- TreeNodeCollection.cs
- OracleInfoMessageEventArgs.cs
- DocumentApplicationJournalEntry.cs
- ExtensionQuery.cs
- EndpointDiscoveryMetadata11.cs
- ListViewGroupConverter.cs
- safelinkcollection.cs
- NestPullup.cs
- Encoding.cs
- TraceListener.cs
- SetterBaseCollection.cs
- VirtualizingPanel.cs
- Parallel.cs
- TypeDescriptionProvider.cs
- IdentifierCollection.cs
- XPathBinder.cs
- InkPresenterAutomationPeer.cs
- CompiledRegexRunner.cs
- NullableBoolConverter.cs
- XmlEncodedRawTextWriter.cs
- ShaderRenderModeValidation.cs
- SpinLock.cs
- ValidationErrorCollection.cs
- BuildResultCache.cs
- MenuStrip.cs
- InvariantComparer.cs
- InfoCardClaimCollection.cs
- StaticFileHandler.cs
- MenuTracker.cs
- CharEnumerator.cs
- AtomMaterializerLog.cs
- AuthStoreRoleProvider.cs
- TextChangedEventArgs.cs
- DropSourceBehavior.cs
- AuthenticationModuleElement.cs
- DataGridViewCellStyleEditor.cs
- PinnedBufferMemoryStream.cs
- PersistenceContextEnlistment.cs
- ToolStripRenderer.cs
- BreadCrumbTextConverter.cs
- MachineKeySection.cs
- List.cs
- TreeChangeInfo.cs
- VisualCollection.cs
- DataView.cs
- MetabaseSettings.cs
- DetailsViewPagerRow.cs
- TextSelectionHelper.cs
- HashJoinQueryOperatorEnumerator.cs
- TokenBasedSet.cs
- TriggerBase.cs
- FixedSOMPageElement.cs
- LineUtil.cs
- DataRelationCollection.cs
- Knowncolors.cs
- FileSystemWatcher.cs
- AxisAngleRotation3D.cs
- XmlSchemaParticle.cs
- InvalidOperationException.cs
- SmtpReplyReaderFactory.cs
- EventLogTraceListener.cs
- PathFigure.cs
- CustomAttributeSerializer.cs
- SpecialFolderEnumConverter.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- XhtmlBasicListAdapter.cs
- SecurityPermission.cs
- safePerfProviderHandle.cs
- MulticastOption.cs
- RegexCapture.cs
- XmlName.cs
- SiteMapDataSource.cs
- UseLicense.cs
- SafeRightsManagementHandle.cs
- ADMembershipProvider.cs
- AsymmetricKeyExchangeDeformatter.cs
- XPathQilFactory.cs
- DynamicQueryableWrapper.cs
- LocatorPart.cs
- connectionpool.cs
- DataGridViewCellStyleConverter.cs
- WebPartConnectVerb.cs
- TimelineClockCollection.cs