Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / 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
- ProcessHostServerConfig.cs
- Style.cs
- MaterialGroup.cs
- CapabilitiesState.cs
- PartialArray.cs
- TagMapInfo.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- PropertyInformation.cs
- ReadOnlyPropertyMetadata.cs
- RIPEMD160Managed.cs
- NumberFormatInfo.cs
- EventLogger.cs
- ObjectDataSourceSelectingEventArgs.cs
- RegexBoyerMoore.cs
- RequestCacheEntry.cs
- HwndMouseInputProvider.cs
- While.cs
- ValidationSummary.cs
- DateTimePicker.cs
- RuntimeCompatibilityAttribute.cs
- precedingquery.cs
- MachineKeyConverter.cs
- RegexTree.cs
- DiscreteKeyFrames.cs
- NoClickablePointException.cs
- InkCanvasSelectionAdorner.cs
- UriTemplateVariableQueryValue.cs
- Query.cs
- FieldAccessException.cs
- ScrollPattern.cs
- _ListenerRequestStream.cs
- TimeSpanValidator.cs
- CharAnimationBase.cs
- IsolatedStorageFile.cs
- TagPrefixInfo.cs
- DictionaryItemsCollection.cs
- CodeTypeConstructor.cs
- HtmlImage.cs
- SafeNativeMethods.cs
- ALinqExpressionVisitor.cs
- ViewManagerAttribute.cs
- ClientSession.cs
- WriterOutput.cs
- Input.cs
- DataViewSettingCollection.cs
- HTTPNotFoundHandler.cs
- IntegrationExceptionEventArgs.cs
- ReadOnlyDictionary.cs
- SectionXmlInfo.cs
- ClientSession.cs
- CallContext.cs
- SafeArrayTypeMismatchException.cs
- DataSourceControlBuilder.cs
- SliderAutomationPeer.cs
- SymbolType.cs
- Itemizer.cs
- ListenerSessionConnectionReader.cs
- UIElementPropertyUndoUnit.cs
- SafeNativeMethods.cs
- WindowsListViewScroll.cs
- AssemblyCollection.cs
- TableRow.cs
- WebConfigurationFileMap.cs
- RtfToken.cs
- DataServiceExpressionVisitor.cs
- ColumnReorderedEventArgs.cs
- WebPartEventArgs.cs
- CompilerScopeManager.cs
- BitArray.cs
- DelimitedListTraceListener.cs
- DataTableCollection.cs
- BindingValueChangedEventArgs.cs
- BaseConfigurationRecord.cs
- FlagsAttribute.cs
- ByteKeyFrameCollection.cs
- XmlNodeChangedEventArgs.cs
- ValidationErrorCollection.cs
- TransactionContext.cs
- DbConnectionClosed.cs
- ManualResetEvent.cs
- FixedSOMImage.cs
- DialogDivider.cs
- ProgressPage.cs
- RestHandler.cs
- ObjectTag.cs
- connectionpool.cs
- BinaryCommonClasses.cs
- cache.cs
- PathBox.cs
- ReturnValue.cs
- WrappedReader.cs
- ModelPerspective.cs
- ObjectSet.cs
- Point4DValueSerializer.cs
- _StreamFramer.cs
- PathFigureCollectionConverter.cs
- ScrollBarRenderer.cs
- SBCSCodePageEncoding.cs
- CanonicalFontFamilyReference.cs
- TypedTableGenerator.cs