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
- ReachPrintTicketSerializerAsync.cs
- SoapHeaderException.cs
- WindowsScrollBar.cs
- BufferBuilder.cs
- WinInetCache.cs
- OracleInternalConnection.cs
- WebPartRestoreVerb.cs
- LongMinMaxAggregationOperator.cs
- ConfigXmlSignificantWhitespace.cs
- Form.cs
- ADConnectionHelper.cs
- AssemblyInfo.cs
- DetailsViewInsertedEventArgs.cs
- PolyLineSegment.cs
- OdbcCommandBuilder.cs
- UseManagedPresentationElement.cs
- GreaterThanOrEqual.cs
- WorkItem.cs
- TimeSpanStorage.cs
- MeasureData.cs
- CreateUserWizardStep.cs
- TemplateColumn.cs
- EventWaitHandle.cs
- InfoCardX509Validator.cs
- Label.cs
- ProfileBuildProvider.cs
- ByteFacetDescriptionElement.cs
- CustomTypeDescriptor.cs
- TypeValidationEventArgs.cs
- WebPartCatalogCloseVerb.cs
- EnterpriseServicesHelper.cs
- SessionParameter.cs
- EmptyEnumerator.cs
- ResourcesGenerator.cs
- ExpandCollapsePattern.cs
- ConfigXmlComment.cs
- BinaryObjectReader.cs
- RowToFieldTransformer.cs
- ComplexPropertyEntry.cs
- TypeForwardedToAttribute.cs
- httpapplicationstate.cs
- EdmToObjectNamespaceMap.cs
- HexParser.cs
- ProfessionalColorTable.cs
- PhonemeEventArgs.cs
- AddInServer.cs
- AssemblyCache.cs
- StoreContentChangedEventArgs.cs
- FixedSchema.cs
- LayoutEngine.cs
- Collection.cs
- DecimalStorage.cs
- XmlStrings.cs
- ValueSerializer.cs
- ForwardPositionQuery.cs
- ChangeBlockUndoRecord.cs
- Comparer.cs
- ReadOnlyDataSource.cs
- FixedElement.cs
- COM2ComponentEditor.cs
- StringInfo.cs
- TemplateControlParser.cs
- XmlSchemaNotation.cs
- COM2EnumConverter.cs
- OdbcError.cs
- FilteredAttributeCollection.cs
- DispatcherOperation.cs
- SchemaImporterExtension.cs
- XmlDomTextWriter.cs
- DesignerSerializerAttribute.cs
- OutputCacheProfileCollection.cs
- WebPartConnectVerb.cs
- _ShellExpression.cs
- DBCommandBuilder.cs
- SpeechUI.cs
- CLRBindingWorker.cs
- WebBrowserNavigatedEventHandler.cs
- CurrencyWrapper.cs
- FragmentNavigationEventArgs.cs
- CheckBoxFlatAdapter.cs
- SoapAttributes.cs
- DbConnectionInternal.cs
- RoleManagerEventArgs.cs
- QuaternionAnimation.cs
- SignedPkcs7.cs
- CodeDirectoryCompiler.cs
- DataGridView.cs
- __Error.cs
- JournalEntryStack.cs
- NullableConverter.cs
- DynamicRenderer.cs
- mda.cs
- BrushConverter.cs
- HtmlTernaryTree.cs
- SecurityTokenRequirement.cs
- LicFileLicenseProvider.cs
- Line.cs
- Rect3D.cs
- ProcessThreadCollection.cs
- SqlVersion.cs