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
- Setter.cs
- HttpGetProtocolImporter.cs
- EpmTargetPathSegment.cs
- basevalidator.cs
- SrgsElementFactory.cs
- Calendar.cs
- OpCellTreeNode.cs
- DataSetMappper.cs
- TextBlockAutomationPeer.cs
- Socket.cs
- ApplicationId.cs
- GuidelineCollection.cs
- ComboBox.cs
- ResumeStoryboard.cs
- ToolStripSplitButton.cs
- ImageEditor.cs
- WebScriptEnablingElement.cs
- XmlDataLoader.cs
- AnnotationResourceCollection.cs
- XmlCharType.cs
- TypeSemantics.cs
- OrderPreservingPipeliningSpoolingTask.cs
- DataErrorValidationRule.cs
- GridViewDeletedEventArgs.cs
- ListViewItem.cs
- ClientTarget.cs
- LoginUtil.cs
- PolicyConversionContext.cs
- RSAPKCS1SignatureFormatter.cs
- ExpressionNormalizer.cs
- TypeSystem.cs
- StructuredType.cs
- ImageSourceConverter.cs
- AssociationSetMetadata.cs
- TerminateDesigner.cs
- ResXBuildProvider.cs
- PathStreamGeometryContext.cs
- SortKey.cs
- XmlDataContract.cs
- DbProviderSpecificTypePropertyAttribute.cs
- FlowchartDesignerCommands.cs
- OdbcParameter.cs
- clipboard.cs
- BaseResourcesBuildProvider.cs
- HeaderedItemsControl.cs
- AsymmetricKeyExchangeDeformatter.cs
- Schema.cs
- ResizingMessageFilter.cs
- UserControlCodeDomTreeGenerator.cs
- OrderByQueryOptionExpression.cs
- PageContentCollection.cs
- Signature.cs
- HostDesigntimeLicenseContext.cs
- DetailsView.cs
- CheckedPointers.cs
- MainMenu.cs
- TemplateNameScope.cs
- XmlnsPrefixAttribute.cs
- CredentialSelector.cs
- ExcludeFromCodeCoverageAttribute.cs
- MetaModel.cs
- XmlTypeMapping.cs
- documentsequencetextcontainer.cs
- SupportingTokenListenerFactory.cs
- CharAnimationBase.cs
- _HTTPDateParse.cs
- ListCollectionView.cs
- BamlResourceSerializer.cs
- BrowserTree.cs
- BufferAllocator.cs
- StyleCollection.cs
- PrimaryKeyTypeConverter.cs
- XpsFilter.cs
- CodeTryCatchFinallyStatement.cs
- XmlUTF8TextReader.cs
- EntityTemplateUserControl.cs
- StaticResourceExtension.cs
- Lease.cs
- ImplicitInputBrush.cs
- VideoDrawing.cs
- ArrayList.cs
- HandledEventArgs.cs
- EntityCommandExecutionException.cs
- _ListenerAsyncResult.cs
- Compiler.cs
- Pkcs7Recipient.cs
- WMIGenerator.cs
- EditBehavior.cs
- ExtendedProperty.cs
- StructuralType.cs
- DataGridColumnCollectionEditor.cs
- LambdaCompiler.Statements.cs
- QueueProcessor.cs
- SessionStateItemCollection.cs
- XmlSchemaExporter.cs
- BitmapSizeOptions.cs
- Encoder.cs
- ExtensionSimplifierMarkupObject.cs
- WebServiceEndpoint.cs
- WebPartEditorApplyVerb.cs