Code:
/ DotNET / DotNET / 8.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SelectionRange.cs
- CommonObjectSecurity.cs
- WebBrowserNavigatingEventHandler.cs
- BooleanFacetDescriptionElement.cs
- WindowsStatic.cs
- BodyWriter.cs
- AddressHeader.cs
- EmbeddedObject.cs
- SoapMessage.cs
- IxmlLineInfo.cs
- AuthenticatingEventArgs.cs
- IPipelineRuntime.cs
- GeneratedCodeAttribute.cs
- RequiredFieldValidator.cs
- Clause.cs
- XmlSchemaImport.cs
- WizardStepCollectionEditor.cs
- TemplateFactory.cs
- PerformanceCountersElement.cs
- XPathAncestorQuery.cs
- ManagementEventWatcher.cs
- BitmapEffect.cs
- COMException.cs
- ProfileSettingsCollection.cs
- SettingsSavedEventArgs.cs
- TimeSpanFormat.cs
- ConnectionConsumerAttribute.cs
- ProviderSettings.cs
- MatrixUtil.cs
- ECDiffieHellman.cs
- BatchServiceHost.cs
- RegexWorker.cs
- ToolStripItemCollection.cs
- ReadOnlyKeyedCollection.cs
- ValueType.cs
- TableAutomationPeer.cs
- TreeNodeBindingCollection.cs
- RenderData.cs
- WebConfigurationManager.cs
- ProxyWebPartConnectionCollection.cs
- ToolStripSystemRenderer.cs
- WebAdminConfigurationHelper.cs
- WebEncodingValidator.cs
- BaseValidator.cs
- DockPattern.cs
- SafeViewOfFileHandle.cs
- CodeDOMUtility.cs
- InvalidAsynchronousStateException.cs
- UnsignedPublishLicense.cs
- SmtpMail.cs
- DbConnectionPoolGroupProviderInfo.cs
- ReferenceConverter.cs
- SQLMembershipProvider.cs
- XmlAttributeOverrides.cs
- WindowsGraphics2.cs
- TimeSpanMinutesConverter.cs
- ArcSegment.cs
- XsltConvert.cs
- UnsafeCollabNativeMethods.cs
- CookielessHelper.cs
- AuthenticatingEventArgs.cs
- GlobalizationAssembly.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- XpsFilter.cs
- EFAssociationProvider.cs
- SecureConversationServiceCredential.cs
- XmlCharCheckingWriter.cs
- TransactionsSectionGroup.cs
- ValuePattern.cs
- Point3DKeyFrameCollection.cs
- CacheEntry.cs
- SynchronizedDispatch.cs
- ObjectStateFormatter.cs
- _NegotiateClient.cs
- DBBindings.cs
- ConfigUtil.cs
- SupportsEventValidationAttribute.cs
- ObjectDisposedException.cs
- GPRECTF.cs
- XmlDataSourceNodeDescriptor.cs
- XMLSchema.cs
- _ConnectStream.cs
- AttributeQuery.cs
- Rotation3D.cs
- TextRangeAdaptor.cs
- DATA_BLOB.cs
- ConfigXmlText.cs
- login.cs
- DataGridViewAccessibleObject.cs
- ping.cs
- FilterableAttribute.cs
- PeerMaintainer.cs
- MobileFormsAuthentication.cs
- ObjectQueryProvider.cs
- printdlgexmarshaler.cs
- TCPListener.cs
- HierarchicalDataBoundControl.cs
- RenamedEventArgs.cs
- PeerDuplexChannel.cs
- BooleanAnimationBase.cs