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
- TemplateXamlParser.cs
- ClientBuildManager.cs
- XmlToDatasetMap.cs
- ValuePattern.cs
- SplineQuaternionKeyFrame.cs
- HostSecurityManager.cs
- WebBrowserBase.cs
- IndexedGlyphRun.cs
- NetStream.cs
- LinkButton.cs
- RSAPKCS1SignatureFormatter.cs
- MsmqOutputSessionChannel.cs
- DesignColumnCollection.cs
- RootDesignerSerializerAttribute.cs
- Exceptions.cs
- SupportingTokenAuthenticatorSpecification.cs
- RegistryKey.cs
- ThousandthOfEmRealPoints.cs
- ConnectionManagementElementCollection.cs
- WbemException.cs
- Animatable.cs
- CompilationLock.cs
- TimeStampChecker.cs
- DrawingState.cs
- DataSourceControlBuilder.cs
- MemberAccessException.cs
- IPipelineRuntime.cs
- TextRangeBase.cs
- WebConvert.cs
- TreeNodeCollection.cs
- StylusCollection.cs
- regiisutil.cs
- SQLCharsStorage.cs
- OneWayBindingElement.cs
- ListViewContainer.cs
- RijndaelManaged.cs
- PersianCalendar.cs
- SqlNodeAnnotations.cs
- TextEditorSelection.cs
- CopyAction.cs
- CopyNodeSetAction.cs
- XmlnsDictionary.cs
- FocusManager.cs
- XmlText.cs
- DynamicDataRouteHandler.cs
- AssertFilter.cs
- ProfilePropertySettingsCollection.cs
- ScriptManager.cs
- ConnectionsZone.cs
- ApplicationCommands.cs
- DocumentApplication.cs
- Roles.cs
- BasicBrowserDialog.designer.cs
- ValueTypeFixupInfo.cs
- Win32SafeHandles.cs
- TextContainer.cs
- DynamicUpdateCommand.cs
- DocumentPageHost.cs
- SoapFault.cs
- AccessDataSourceDesigner.cs
- IpcServerChannel.cs
- Debugger.cs
- ResourceLoader.cs
- SqlInfoMessageEvent.cs
- Keywords.cs
- FastEncoder.cs
- SystemDropShadowChrome.cs
- GraphicsContext.cs
- EntityContainerEmitter.cs
- RowBinding.cs
- QueryStatement.cs
- FontDifferentiator.cs
- TextRunCacheImp.cs
- LinkUtilities.cs
- SecuritySessionFilter.cs
- MultiView.cs
- StyleBamlTreeBuilder.cs
- VisualStyleRenderer.cs
- SecurityUtils.cs
- WindowsIPAddress.cs
- dsa.cs
- CachingHintValidation.cs
- ThicknessAnimation.cs
- CharEnumerator.cs
- ListBindingHelper.cs
- TextAction.cs
- SystemPens.cs
- Dictionary.cs
- AudioSignalProblemOccurredEventArgs.cs
- COM2TypeInfoProcessor.cs
- NeutralResourcesLanguageAttribute.cs
- RedirectionProxy.cs
- WpfKnownMember.cs
- PaperSize.cs
- AuthenticationService.cs
- HorizontalAlignConverter.cs
- Mutex.cs
- CalendarItem.cs
- HttpFileCollection.cs
- MarkupCompilePass1.cs