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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ResXResourceSet.cs
- TimeSpanMinutesConverter.cs
- DataStreams.cs
- DispatcherHookEventArgs.cs
- CodeExpressionStatement.cs
- BookmarkScopeHandle.cs
- PanelStyle.cs
- DiscoveryClientOutputChannel.cs
- XmlSchemaAnnotation.cs
- SapiRecognizer.cs
- BindMarkupExtensionSerializer.cs
- QilTargetType.cs
- XamlSerializer.cs
- ListControl.cs
- UnsafeNativeMethods.cs
- TraceSection.cs
- SplashScreenNativeMethods.cs
- _IPv6Address.cs
- TypePropertyEditor.cs
- input.cs
- ChannelEndpointElementCollection.cs
- __Error.cs
- GCHandleCookieTable.cs
- ContextMenu.cs
- Cursors.cs
- EDesignUtil.cs
- UIElement3D.cs
- DependencyPropertyChangedEventArgs.cs
- NotCondition.cs
- EditorPart.cs
- BuildResultCache.cs
- WebServiceReceive.cs
- HostedTransportConfigurationManager.cs
- HttpHeaderCollection.cs
- EntityDataSourceValidationException.cs
- SchemaTableColumn.cs
- DataSourceGroupCollection.cs
- ObjectComplexPropertyMapping.cs
- MeshGeometry3D.cs
- XPathMessageFilterTable.cs
- BamlRecordWriter.cs
- ButtonBase.cs
- HttpRequestCacheValidator.cs
- HostingEnvironmentSection.cs
- AlignmentXValidation.cs
- ProfileServiceManager.cs
- DateTimePicker.cs
- SystemColors.cs
- WebBrowserUriTypeConverter.cs
- Paragraph.cs
- TemplatedMailWebEventProvider.cs
- HttpCapabilitiesEvaluator.cs
- MultiDataTrigger.cs
- SqlBulkCopyColumnMappingCollection.cs
- InheritanceContextHelper.cs
- Normalization.cs
- securitycriticaldataformultiplegetandset.cs
- DataList.cs
- Geometry3D.cs
- DSACryptoServiceProvider.cs
- HostnameComparisonMode.cs
- ToolStripDropDownClosedEventArgs.cs
- HwndKeyboardInputProvider.cs
- TextServicesProperty.cs
- CLRBindingWorker.cs
- NativeMethods.cs
- HelpInfo.cs
- AssemblyEvidenceFactory.cs
- XPathParser.cs
- ProfileInfo.cs
- ButtonColumn.cs
- OrderedDictionary.cs
- StreamReader.cs
- DuplexChannel.cs
- GlobalAllocSafeHandle.cs
- StylusLogic.cs
- CodeCompileUnit.cs
- Timer.cs
- DeobfuscatingStream.cs
- TypeConverterAttribute.cs
- TextBoxLine.cs
- SpeechSeg.cs
- OledbConnectionStringbuilder.cs
- HostedElements.cs
- Authorization.cs
- RolePrincipal.cs
- XmlAttributeProperties.cs
- InteropEnvironment.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- MD5CryptoServiceProvider.cs
- IpcManager.cs
- _ConnectOverlappedAsyncResult.cs
- FullTrustAssembly.cs
- DragAssistanceManager.cs
- SimpleBitVector32.cs
- DrawingAttributes.cs
- StaticSiteMapProvider.cs
- Label.cs
- SqlServices.cs
- NullExtension.cs