Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / 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
- DrawingContextDrawingContextWalker.cs
- QueryContinueDragEventArgs.cs
- SvcMapFileSerializer.cs
- _ContextAwareResult.cs
- PolyBezierSegment.cs
- UnmanagedMarshal.cs
- RemotingServices.cs
- OdbcReferenceCollection.cs
- LookupNode.cs
- ImageSourceConverter.cs
- InfoCardProofToken.cs
- ExpressionEditorAttribute.cs
- SettingsPropertyNotFoundException.cs
- RouteTable.cs
- _IPv6Address.cs
- Exception.cs
- SmtpFailedRecipientException.cs
- AuthenticationService.cs
- ContractCodeDomInfo.cs
- InternalTypeHelper.cs
- LinearGradientBrush.cs
- SourceFileInfo.cs
- Root.cs
- Utils.cs
- ListMarkerSourceInfo.cs
- ToolboxItem.cs
- TreeNode.cs
- SafeLocalMemHandle.cs
- SoapObjectInfo.cs
- TemplateBuilder.cs
- State.cs
- BuildTopDownAttribute.cs
- SystemSounds.cs
- SoapTransportImporter.cs
- ErrorRuntimeConfig.cs
- SliderAutomationPeer.cs
- ListView.cs
- MetadataPropertyvalue.cs
- DiscoveryMessageSequence.cs
- LicenseProviderAttribute.cs
- XmlILIndex.cs
- BaseDataBoundControlDesigner.cs
- TextEffectResolver.cs
- TextSerializer.cs
- DesigntimeLicenseContext.cs
- XmlDownloadManager.cs
- WebSysDisplayNameAttribute.cs
- SmiRecordBuffer.cs
- SerialPinChanges.cs
- PaginationProgressEventArgs.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- StatusBarAutomationPeer.cs
- IDReferencePropertyAttribute.cs
- RTLAwareMessageBox.cs
- Char.cs
- ToolstripProfessionalRenderer.cs
- BulletChrome.cs
- EntityDataSourceContextCreatedEventArgs.cs
- ProviderUtil.cs
- BitmapEffect.cs
- DiagnosticEventProvider.cs
- Visual3D.cs
- EncoderReplacementFallback.cs
- BinaryNode.cs
- ContextDataSourceView.cs
- ApplicationProxyInternal.cs
- QueryContext.cs
- BitmapFrameEncode.cs
- MgmtConfigurationRecord.cs
- DesignerOptions.cs
- ConfigurationSectionCollection.cs
- VisualStateGroup.cs
- MobileResource.cs
- PropertyGridEditorPart.cs
- AssemblyFilter.cs
- DataServiceBehavior.cs
- Menu.cs
- CqlGenerator.cs
- securitycriticaldataClass.cs
- ADRoleFactoryConfiguration.cs
- UnknownBitmapDecoder.cs
- AstTree.cs
- ItemCheckedEvent.cs
- TabItemWrapperAutomationPeer.cs
- DataServiceHost.cs
- ScopelessEnumAttribute.cs
- Crc32Helper.cs
- Internal.cs
- XmlSchema.cs
- XmlAttributeOverrides.cs
- DispatcherProcessingDisabled.cs
- DeleteStoreRequest.cs
- InputMethodStateTypeInfo.cs
- ResourceKey.cs
- unsafeIndexingFilterStream.cs
- ImageButton.cs
- ConfigXmlWhitespace.cs
- SQLMoney.cs
- DeviceContext2.cs
- DataFormats.cs