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
- TemplateBindingExpressionConverter.cs
- XslTransform.cs
- OleServicesContext.cs
- ComPlusServiceLoader.cs
- ComPlusThreadInitializer.cs
- SafeRightsManagementEnvironmentHandle.cs
- DataGridViewColumnHeaderCell.cs
- NativeMethods.cs
- MasterPage.cs
- DataAdapter.cs
- EntityDataSourceQueryBuilder.cs
- StringValueConverter.cs
- Range.cs
- XmlSchemaType.cs
- HttpPostProtocolImporter.cs
- RestClientProxyHandler.cs
- ChineseLunisolarCalendar.cs
- CodeNamespaceImportCollection.cs
- QuadraticBezierSegment.cs
- ExtentKey.cs
- HttpCapabilitiesSectionHandler.cs
- CreateUserWizard.cs
- DataGridItemAutomationPeer.cs
- DesignerCategoryAttribute.cs
- SecurityResources.cs
- ReflectEventDescriptor.cs
- CodeExporter.cs
- EnumerableRowCollectionExtensions.cs
- VisualBrush.cs
- TimeSpanValidatorAttribute.cs
- EntityConnection.cs
- InheritedPropertyDescriptor.cs
- InkPresenter.cs
- NamespaceCollection.cs
- GridViewRowCollection.cs
- DrawingImage.cs
- RefreshPropertiesAttribute.cs
- StringReader.cs
- TimeSpan.cs
- DataViewSettingCollection.cs
- VirtualPath.cs
- MobileErrorInfo.cs
- ConfigurationManagerInternalFactory.cs
- BasicDesignerLoader.cs
- WebPartsPersonalizationAuthorization.cs
- DataBindingList.cs
- ProxyGenerationError.cs
- LineBreak.cs
- DataException.cs
- WebPartConnectionsCancelEventArgs.cs
- ShaperBuffers.cs
- SeverityFilter.cs
- MarshalDirectiveException.cs
- ToolStripDropDownItem.cs
- Convert.cs
- DataGrid.cs
- DiagnosticsConfiguration.cs
- CommentGlyph.cs
- Compiler.cs
- RealProxy.cs
- RectAnimationUsingKeyFrames.cs
- SortFieldComparer.cs
- AutomationFocusChangedEventArgs.cs
- TreeSet.cs
- MouseActionValueSerializer.cs
- XhtmlBasicTextBoxAdapter.cs
- ObjectCloneHelper.cs
- DataColumnChangeEvent.cs
- InputScopeManager.cs
- SerializationException.cs
- RuntimeHelpers.cs
- InstanceData.cs
- SystemBrushes.cs
- TreeSet.cs
- SimpleBitVector32.cs
- DataGridViewLinkColumn.cs
- LineMetrics.cs
- DbParameterCollection.cs
- InternalResources.cs
- WebBrowserEvent.cs
- HttpRuntimeSection.cs
- Type.cs
- SoundPlayerAction.cs
- ChangePassword.cs
- SchemaManager.cs
- XamlWriter.cs
- Vector3D.cs
- RenderData.cs
- NullReferenceException.cs
- AddInSegmentDirectoryNotFoundException.cs
- EntityClassGenerator.cs
- Size.cs
- SchemaNotation.cs
- FileStream.cs
- SaveFileDialog.cs
- DataSysAttribute.cs
- HtmlDocument.cs
- ResourceWriter.cs
- AssociationType.cs
- DataGridViewToolTip.cs