Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / 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. // //----------------------------------------------------------------- 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ValidatorCollection.cs
- Cursor.cs
- PrimaryKeyTypeConverter.cs
- SystemWebSectionGroup.cs
- TextRangeProviderWrapper.cs
- mda.cs
- MenuItem.cs
- MappingSource.cs
- MenuBindingsEditor.cs
- FixedSOMSemanticBox.cs
- RelationshipEndCollection.cs
- DirectionalLight.cs
- EditableTreeList.cs
- PtsPage.cs
- Subtree.cs
- ProfileModule.cs
- GenericEnumerator.cs
- DynamicControlParameter.cs
- AsymmetricKeyExchangeDeformatter.cs
- AudioException.cs
- MultiBinding.cs
- KeyedHashAlgorithm.cs
- WriteableOnDemandPackagePart.cs
- Decoder.cs
- PolyBezierSegment.cs
- TryCatch.cs
- _SslSessionsCache.cs
- IgnorePropertiesAttribute.cs
- XmlEncoding.cs
- ConfigurationStrings.cs
- WebPartEventArgs.cs
- JsonUriDataContract.cs
- StateItem.cs
- DiagnosticTrace.cs
- DataObjectCopyingEventArgs.cs
- UnionCodeGroup.cs
- SQLConvert.cs
- ConfigurationElementProperty.cs
- MsmqOutputMessage.cs
- AsymmetricKeyExchangeDeformatter.cs
- DynamicField.cs
- HtmlEncodedRawTextWriter.cs
- VersionConverter.cs
- XsdDateTime.cs
- SequentialUshortCollection.cs
- InvokePatternIdentifiers.cs
- MaterialCollection.cs
- DataGridItemCollection.cs
- ActivityExecutionContextCollection.cs
- HwndSource.cs
- QilSortKey.cs
- EqualityComparer.cs
- MenuItemCollection.cs
- SqlGenerator.cs
- OdbcTransaction.cs
- RoutedEventConverter.cs
- MouseEvent.cs
- AdobeCFFWrapper.cs
- ExceptQueryOperator.cs
- ContextQuery.cs
- FlowDocument.cs
- PrintPreviewDialog.cs
- OleTxTransactionInfo.cs
- GiveFeedbackEvent.cs
- MachineKey.cs
- EntityKeyElement.cs
- baseshape.cs
- RuleCache.cs
- DataPagerField.cs
- NetworkInterface.cs
- ValidationSummary.cs
- XmlTextReaderImplHelpers.cs
- HtmlElement.cs
- Vertex.cs
- MainMenu.cs
- CompiledAction.cs
- DocumentGridContextMenu.cs
- StorageBasedPackageProperties.cs
- ChtmlTextWriter.cs
- SecureStringHasher.cs
- GridViewCellAutomationPeer.cs
- EventData.cs
- ResponseBodyWriter.cs
- WindowsListViewGroupSubsetLink.cs
- Schema.cs
- SqlUnionizer.cs
- TextParagraphProperties.cs
- MessageAction.cs
- TreeView.cs
- VisualStyleRenderer.cs
- Crc32.cs
- PasswordDeriveBytes.cs
- TreeNodeStyleCollection.cs
- ToolboxItemCollection.cs
- MatchAttribute.cs
- ConnectionModeReader.cs
- PathGradientBrush.cs
- DurableMessageDispatchInspector.cs
- OverrideMode.cs
- FieldMetadata.cs