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
- VariantWrapper.cs
- VarInfo.cs
- httpapplicationstate.cs
- ActivatedMessageQueue.cs
- LinearGradientBrush.cs
- Repeater.cs
- unsafeIndexingFilterStream.cs
- ThumbAutomationPeer.cs
- HttpBrowserCapabilitiesWrapper.cs
- CompositionAdorner.cs
- AutoGeneratedField.cs
- diagnosticsswitches.cs
- Context.cs
- LockedHandleGlyph.cs
- CLSCompliantAttribute.cs
- EntityTypeBase.cs
- EntityViewGenerator.cs
- XmlCustomFormatter.cs
- AttributeCollection.cs
- MimeReturn.cs
- Constraint.cs
- DataGridViewCellStyleBuilderDialog.cs
- ScriptResourceAttribute.cs
- TreeSet.cs
- FacetDescription.cs
- PeerNodeTraceRecord.cs
- ArrayElementGridEntry.cs
- LiteralSubsegment.cs
- ToolStripScrollButton.cs
- EncoderParameter.cs
- FileReservationCollection.cs
- codemethodreferenceexpression.cs
- DesignTimeParseData.cs
- OrderedDictionary.cs
- CultureSpecificStringDictionary.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- BindingUtils.cs
- ObjectSpanRewriter.cs
- DictionaryBase.cs
- SymmetricKey.cs
- ProfileProvider.cs
- GradientSpreadMethodValidation.cs
- ToolZone.cs
- PropertyChangeTracker.cs
- Evidence.cs
- HasActivatableWorkflowEvent.cs
- DockPanel.cs
- HtmlControlPersistable.cs
- webeventbuffer.cs
- SystemResourceKey.cs
- ImageField.cs
- HMACRIPEMD160.cs
- ReachDocumentReferenceCollectionSerializerAsync.cs
- BuildProvidersCompiler.cs
- TextWriterTraceListener.cs
- LinqDataSourceInsertEventArgs.cs
- BinaryNode.cs
- HtmlMobileTextWriter.cs
- KeyValueSerializer.cs
- FlowNode.cs
- ResourceReferenceExpressionConverter.cs
- AttributeCallbackBuilder.cs
- __Filters.cs
- WindowsButton.cs
- ActiveXContainer.cs
- Options.cs
- TextDecoration.cs
- TypeTypeConverter.cs
- DrawListViewColumnHeaderEventArgs.cs
- SqlDataSourceDesigner.cs
- PrimitiveCodeDomSerializer.cs
- PathGradientBrush.cs
- VectorAnimationBase.cs
- QuaternionConverter.cs
- TextRangeEdit.cs
- DefaultTextStore.cs
- ColumnReorderedEventArgs.cs
- AssemblyResourceLoader.cs
- HostProtectionException.cs
- InternalTransaction.cs
- EntityDataSourceSelectingEventArgs.cs
- TreeViewHitTestInfo.cs
- XPathScanner.cs
- EditorPartCollection.cs
- MsmqTransportElement.cs
- WebPartCatalogAddVerb.cs
- DemultiplexingClientMessageFormatter.cs
- SQLByte.cs
- ImageCodecInfo.cs
- DataGridSortCommandEventArgs.cs
- PeerConnector.cs
- HttpCapabilitiesSectionHandler.cs
- PathStreamGeometryContext.cs
- MimeMultiPart.cs
- ToolStripContentPanelRenderEventArgs.cs
- DbParameterCollection.cs
- PrtTicket_Public.cs
- StringStorage.cs
- DragCompletedEventArgs.cs
- XmlTextReaderImpl.cs