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
- AuthenticatingEventArgs.cs
- DataGridItemAttachedStorage.cs
- DetailsViewDeleteEventArgs.cs
- CodeMethodReturnStatement.cs
- Pair.cs
- MessageBuilder.cs
- RuntimeWrappedException.cs
- precedingquery.cs
- KeySpline.cs
- NamespaceEmitter.cs
- FixedPageAutomationPeer.cs
- SynchronizedPool.cs
- SourceItem.cs
- TextContainerChangeEventArgs.cs
- HtmlButton.cs
- UrlAuthFailedErrorFormatter.cs
- SectionVisual.cs
- OdbcException.cs
- AppSettingsExpressionEditor.cs
- BStrWrapper.cs
- Canvas.cs
- OutOfProcStateClientManager.cs
- XPathException.cs
- ToolboxItemCollection.cs
- DrawingContextWalker.cs
- XmlSchemaSimpleTypeList.cs
- CheckBox.cs
- FormsAuthenticationEventArgs.cs
- CompiledXpathExpr.cs
- BitmapEffectDrawingContent.cs
- Set.cs
- NativeMethods.cs
- LinkLabelLinkClickedEvent.cs
- Track.cs
- Message.cs
- BigInt.cs
- PropertyPathWorker.cs
- UserValidatedEventArgs.cs
- XdrBuilder.cs
- ProbeMatches11.cs
- CommonRemoteMemoryBlock.cs
- LeafCellTreeNode.cs
- PingReply.cs
- KeyPullup.cs
- SchemeSettingElementCollection.cs
- ScrollChrome.cs
- ValidationSummaryDesigner.cs
- XmlObjectSerializerWriteContextComplex.cs
- KeyNotFoundException.cs
- DefaultValueTypeConverter.cs
- TableItemProviderWrapper.cs
- ThrowHelper.cs
- SqlNotificationEventArgs.cs
- DataGridAutomationPeer.cs
- MemberRestriction.cs
- SynchronizationContext.cs
- relpropertyhelper.cs
- Hashtable.cs
- SolidColorBrush.cs
- SqlMultiplexer.cs
- Vector3dCollection.cs
- SqlReorderer.cs
- TextElement.cs
- AsymmetricKeyExchangeDeformatter.cs
- InfoCardTraceRecord.cs
- DataTableCollection.cs
- SoapSchemaImporter.cs
- ParseChildrenAsPropertiesAttribute.cs
- ClearTypeHintValidation.cs
- XmlSchemaSet.cs
- TransformedBitmap.cs
- OleDbDataReader.cs
- HandlerFactoryWrapper.cs
- unsafenativemethodstextservices.cs
- BindingExpressionUncommonField.cs
- ReferenceService.cs
- DesignerCommandSet.cs
- Span.cs
- ObjectAnimationUsingKeyFrames.cs
- EmptyEnumerator.cs
- MailMessageEventArgs.cs
- Pen.cs
- TimeSpanParse.cs
- DateTimeConverter.cs
- GenericsNotImplementedException.cs
- CommandLibraryHelper.cs
- MessageSmuggler.cs
- TransactionManager.cs
- PublisherIdentityPermission.cs
- ImpersonateTokenRef.cs
- CngAlgorithmGroup.cs
- MetadataItemSerializer.cs
- XmlWhitespace.cs
- Table.cs
- ObjectDataProvider.cs
- StructuralObject.cs
- ConstNode.cs
- MessageFilter.cs
- DbProviderManifest.cs
- ReferenceConverter.cs