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 / ScriptRef.cs / 1 / ScriptRef.cs
//// Copyright (c) Microsoft Corporation. All rights reserved. // // // // Description: // // History: // 6/1/2004 jeanfp Created //----------------------------------------------------------------------------using System; using System.Diagnostics; using System.Speech.Internal.SrgsParser; namespace System.Speech.Internal.SrgsCompiler { ////// Summary description for ScriptRef. /// // list of rules with scripts #if VSCOMPILE [DebuggerDisplay ("rule=\"{_rule}\" method=\"{_sMethod}\" operation=\"{_method.ToString ()}\"")] #endif internal class ScriptRef { //******************************************************************* // // Constructors // //******************************************************************* #region Constructors internal ScriptRef (string rule, string sMethod, RuleMethodScript method) { _rule = rule; _sMethod = sMethod; _method = method; } #endregion //******************************************************************* // // Internal Methods // //******************************************************************** #region internal Methods internal void Serialize (StringBlob symbols, StreamMarshaler streamBuffer) { CfgScriptRef script = new CfgScriptRef (); // Get the symbol id for the rule script._idRule = symbols.Find (_rule); script._method = _method; script._idMethod = _idSymbol; System.Diagnostics.Debug.Assert (script._idRule != -1 && script._idMethod != -1); streamBuffer.WriteStream (script); } internal static string OnInitMethod (ScriptRef [] scriptRefs, string rule) { if (scriptRefs != null) { foreach (ScriptRef script in scriptRefs) { if (script._rule == rule && script._method == RuleMethodScript.onInit) { return script._sMethod; } } } return null; } #endregion //******************************************************************* // // Internal Fields // //******************************************************************** #region Internal Fields internal string _rule; internal string _sMethod; internal RuleMethodScript _method; internal int _idSymbol; #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //// Copyright (c) Microsoft Corporation. All rights reserved. // // // // Description: // // History: // 6/1/2004 jeanfp Created //----------------------------------------------------------------------------using System; using System.Diagnostics; using System.Speech.Internal.SrgsParser; namespace System.Speech.Internal.SrgsCompiler { ////// Summary description for ScriptRef. /// // list of rules with scripts #if VSCOMPILE [DebuggerDisplay ("rule=\"{_rule}\" method=\"{_sMethod}\" operation=\"{_method.ToString ()}\"")] #endif internal class ScriptRef { //******************************************************************* // // Constructors // //******************************************************************* #region Constructors internal ScriptRef (string rule, string sMethod, RuleMethodScript method) { _rule = rule; _sMethod = sMethod; _method = method; } #endregion //******************************************************************* // // Internal Methods // //******************************************************************** #region internal Methods internal void Serialize (StringBlob symbols, StreamMarshaler streamBuffer) { CfgScriptRef script = new CfgScriptRef (); // Get the symbol id for the rule script._idRule = symbols.Find (_rule); script._method = _method; script._idMethod = _idSymbol; System.Diagnostics.Debug.Assert (script._idRule != -1 && script._idMethod != -1); streamBuffer.WriteStream (script); } internal static string OnInitMethod (ScriptRef [] scriptRefs, string rule) { if (scriptRefs != null) { foreach (ScriptRef script in scriptRefs) { if (script._rule == rule && script._method == RuleMethodScript.onInit) { return script._sMethod; } } } return null; } #endregion //******************************************************************* // // Internal Fields // //******************************************************************** #region Internal Fields internal string _rule; internal string _sMethod; internal RuleMethodScript _method; internal int _idSymbol; #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
- TypeExtensionConverter.cs
- BitmapSourceSafeMILHandle.cs
- EventToken.cs
- XmlAttributeCollection.cs
- EmissiveMaterial.cs
- ReachUIElementCollectionSerializer.cs
- SchemaNamespaceManager.cs
- XmlSerializableWriter.cs
- BrushMappingModeValidation.cs
- ResourceAssociationSetEnd.cs
- MenuBindingsEditorForm.cs
- FontStyles.cs
- PointAnimationClockResource.cs
- UiaCoreProviderApi.cs
- FunctionImportMapping.cs
- CacheDependency.cs
- TypeConverter.cs
- TransactionScope.cs
- WindowsRebar.cs
- AdvancedBindingPropertyDescriptor.cs
- RegisteredScript.cs
- CatalogPartCollection.cs
- WaitForChangedResult.cs
- ProfileGroupSettingsCollection.cs
- GridProviderWrapper.cs
- RtfToken.cs
- FloatUtil.cs
- FilteredSchemaElementLookUpTable.cs
- IOException.cs
- DrawingAttributes.cs
- SByte.cs
- DateBoldEvent.cs
- SafeRightsManagementQueryHandle.cs
- UnsafeMethods.cs
- PropertyTabAttribute.cs
- NullExtension.cs
- Help.cs
- Mouse.cs
- CallTemplateAction.cs
- ZipQueryOperator.cs
- ContextStaticAttribute.cs
- shaperfactory.cs
- assemblycache.cs
- TextEndOfSegment.cs
- ListSourceHelper.cs
- NotFiniteNumberException.cs
- ISessionStateStore.cs
- ValueSerializer.cs
- VersionPair.cs
- HtmlSelect.cs
- WeakHashtable.cs
- HTMLTagNameToTypeMapper.cs
- BooleanFunctions.cs
- DropSource.cs
- TraceLevelStore.cs
- JobInputBins.cs
- ThreadAttributes.cs
- CommandDesigner.cs
- AspCompat.cs
- TraversalRequest.cs
- SmtpMail.cs
- MultipleViewPattern.cs
- InputLanguageSource.cs
- Rotation3D.cs
- ProofTokenCryptoHandle.cs
- ObjectAnimationBase.cs
- CodeDelegateCreateExpression.cs
- Boolean.cs
- PtsHelper.cs
- DataGridViewTextBoxCell.cs
- XmlMtomWriter.cs
- CqlParserHelpers.cs
- XamlSerializer.cs
- MessageQueueAccessControlEntry.cs
- StickyNoteAnnotations.cs
- ProfileManager.cs
- InstanceStoreQueryResult.cs
- GC.cs
- TemplateBindingExtensionConverter.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- SkinBuilder.cs
- ToolStripPanelCell.cs
- XmlQuerySequence.cs
- CodeAccessSecurityEngine.cs
- GridViewCellAutomationPeer.cs
- TreeNodeCollection.cs
- RepeaterItemCollection.cs
- TextTreeTextNode.cs
- QuinticEase.cs
- DocumentCollection.cs
- Stylesheet.cs
- OrderedDictionary.cs
- DataGridClipboardHelper.cs
- SymbolMethod.cs
- NullableDecimalAverageAggregationOperator.cs
- DataGridViewTextBoxCell.cs
- X509CertificateStore.cs
- SoapExtensionTypeElementCollection.cs
- DCSafeHandle.cs
- FieldDescriptor.cs