Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / 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
- Token.cs
- Msmq4SubqueuePoisonHandler.cs
- NamedObject.cs
- ObjectIDGenerator.cs
- ContextConfiguration.cs
- HandleCollector.cs
- SaveWorkflowCommand.cs
- ObjectListFieldsPage.cs
- CrossAppDomainChannel.cs
- SearchForVirtualItemEventArgs.cs
- StringFormat.cs
- StateElementCollection.cs
- ClientRuntimeConfig.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- CompilerHelpers.cs
- AsyncCompletedEventArgs.cs
- DefaultValueAttribute.cs
- precedingquery.cs
- WebPartTransformerCollection.cs
- EventWaitHandle.cs
- Validator.cs
- FamilyTypefaceCollection.cs
- TypeContext.cs
- Setter.cs
- GenericEnumConverter.cs
- PropertyItemInternal.cs
- HttpServerVarsCollection.cs
- TextRangeProviderWrapper.cs
- DbProviderSpecificTypePropertyAttribute.cs
- IndicFontClient.cs
- Style.cs
- ConfigXmlComment.cs
- ToolStripDropDownClosingEventArgs.cs
- FrameworkContentElementAutomationPeer.cs
- PersistenceException.cs
- DataTable.cs
- AssemblyBuilder.cs
- DbgUtil.cs
- PageAsyncTaskManager.cs
- DirectoryInfo.cs
- AttachedPropertyBrowsableAttribute.cs
- DurableInstancingOptions.cs
- CryptographicAttribute.cs
- UriScheme.cs
- HttpModuleCollection.cs
- MarkerProperties.cs
- Math.cs
- BookmarkList.cs
- MulticastOption.cs
- ToolboxItem.cs
- MonikerBuilder.cs
- Int32RectConverter.cs
- SerialReceived.cs
- MenuItemAutomationPeer.cs
- NumberFunctions.cs
- ChineseLunisolarCalendar.cs
- SqlConnection.cs
- QilBinary.cs
- NullRuntimeConfig.cs
- ImageInfo.cs
- BidirectionalDictionary.cs
- SecurityCriticalDataForSet.cs
- ObjectStorage.cs
- IdentityModelDictionary.cs
- DataGridViewControlCollection.cs
- Pts.cs
- StylusPointPropertyInfoDefaults.cs
- WebServiceMethodData.cs
- XPathScanner.cs
- Expression.cs
- _HTTPDateParse.cs
- DataStreamFromComStream.cs
- HttpClientCertificate.cs
- SerializationSectionGroup.cs
- URLBuilder.cs
- ClientUtils.cs
- MimeMultiPart.cs
- Scheduler.cs
- EventItfInfo.cs
- DES.cs
- PageFunction.cs
- DataViewManagerListItemTypeDescriptor.cs
- SchemaImporterExtensionsSection.cs
- rsa.cs
- ELinqQueryState.cs
- ProgressBar.cs
- ApplicationFileCodeDomTreeGenerator.cs
- Emitter.cs
- HttpConfigurationContext.cs
- ProfileManager.cs
- Line.cs
- WebHttpDispatchOperationSelector.cs
- Soap12ServerProtocol.cs
- AdornerLayer.cs
- CheckBox.cs
- DesignUtil.cs
- shaperfactory.cs
- Vector3DAnimationUsingKeyFrames.cs
- BindToObject.cs
- PrtCap_Public_Simple.cs