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
- SoapElementAttribute.cs
- UnsafeNativeMethods.cs
- IisTraceWebEventProvider.cs
- ConsoleCancelEventArgs.cs
- UnicastIPAddressInformationCollection.cs
- TypeForwardedToAttribute.cs
- ExpressionUtilities.cs
- AspCompat.cs
- ColorInterpolationModeValidation.cs
- NameSpaceExtractor.cs
- SafeSecurityHelper.cs
- CodeRegionDirective.cs
- SiteMapSection.cs
- SubMenuStyleCollectionEditor.cs
- TabletDeviceInfo.cs
- DictionarySectionHandler.cs
- SystemSounds.cs
- ColumnReorderedEventArgs.cs
- MetaModel.cs
- XmlSchemaSet.cs
- WmlListAdapter.cs
- WindowsGraphics2.cs
- Cursors.cs
- SmiTypedGetterSetter.cs
- DateTime.cs
- BeginStoryboard.cs
- HttpProfileBase.cs
- OleDragDropHandler.cs
- FieldAccessException.cs
- RegexFCD.cs
- ExtenderProvidedPropertyAttribute.cs
- ListItemsPage.cs
- AbsoluteQuery.cs
- ToolStripPanelDesigner.cs
- Selection.cs
- MessageSecurityOverMsmq.cs
- HyperLinkDataBindingHandler.cs
- SqlBinder.cs
- DataMember.cs
- MetadataElement.cs
- safesecurityhelperavalon.cs
- Command.cs
- BinaryObjectWriter.cs
- FastEncoderWindow.cs
- NameService.cs
- DoubleAnimationUsingKeyFrames.cs
- NullRuntimeConfig.cs
- EventPrivateKey.cs
- SendKeys.cs
- ConnectionsZone.cs
- TextDataBindingHandler.cs
- WebConfigurationHost.cs
- NameValueFileSectionHandler.cs
- ItemDragEvent.cs
- ExceptionUtil.cs
- OneOfElement.cs
- ActivationService.cs
- MetadataCacheItem.cs
- PropertyKey.cs
- MethodRental.cs
- OleDbDataReader.cs
- TableLayoutPanelBehavior.cs
- Mutex.cs
- EntityDataSourceDataSelectionPanel.cs
- HttpCapabilitiesBase.cs
- TextEmbeddedObject.cs
- CustomAssemblyResolver.cs
- SolidColorBrush.cs
- FileRecordSequenceCompletedAsyncResult.cs
- CacheSection.cs
- BindingCollection.cs
- SoapFault.cs
- _AcceptOverlappedAsyncResult.cs
- SqlDataSourceStatusEventArgs.cs
- PerformanceCounterCategory.cs
- RuntimeArgumentHandle.cs
- SqlXml.cs
- EmptyQuery.cs
- DataGridViewSelectedCellCollection.cs
- FileDataSourceCache.cs
- IndividualDeviceConfig.cs
- DataViewSetting.cs
- Transform3DCollection.cs
- ClrProviderManifest.cs
- AddressHeader.cs
- RunInstallerAttribute.cs
- RawStylusSystemGestureInputReport.cs
- MouseOverProperty.cs
- ReflectionHelper.cs
- TemplateEditingService.cs
- DataKeyArray.cs
- PromptStyle.cs
- DbConnectionPoolOptions.cs
- ArrayConverter.cs
- ObjectManager.cs
- cookiecontainer.cs
- CharKeyFrameCollection.cs
- CaseStatementSlot.cs
- HwndTarget.cs
- Wizard.cs