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
- ZipIOCentralDirectoryDigitalSignature.cs
- Executor.cs
- VisualProxy.cs
- GeometryGroup.cs
- TypedElement.cs
- OutputScope.cs
- QualificationDataAttribute.cs
- Script.cs
- ModelTypeConverter.cs
- WindowClosedEventArgs.cs
- BaseTreeIterator.cs
- DocumentReferenceCollection.cs
- IOException.cs
- WebPartConnectionsCancelVerb.cs
- ProfileParameter.cs
- Renderer.cs
- XmlReaderSettings.cs
- HttpPostedFileWrapper.cs
- Underline.cs
- DataGridItemCollection.cs
- BaseHashHelper.cs
- UpDownBase.cs
- Trace.cs
- PriorityChain.cs
- DesignerTextWriter.cs
- XmlLanguage.cs
- RelatedEnd.cs
- ExcCanonicalXml.cs
- COM2ExtendedUITypeEditor.cs
- PeerEndPoint.cs
- OutputCacheProfile.cs
- XpsSerializerWriter.cs
- ForeignConstraint.cs
- HiddenField.cs
- WorkflowViewManager.cs
- SqlNamer.cs
- RepeatBehavior.cs
- FaultImportOptions.cs
- DataGridCaption.cs
- AlignmentYValidation.cs
- RuleRefElement.cs
- RequestQueue.cs
- TextParagraphProperties.cs
- Duration.cs
- activationcontext.cs
- WrappedIUnknown.cs
- FunctionImportMapping.cs
- LoginCancelEventArgs.cs
- TableLayoutStyleCollection.cs
- ActivityExecutionContextCollection.cs
- AssemblySettingAttributes.cs
- _SSPISessionCache.cs
- XmlElement.cs
- _MultipleConnectAsync.cs
- ProcessModule.cs
- OutArgumentConverter.cs
- TableHeaderCell.cs
- FormsAuthenticationTicket.cs
- TabItemWrapperAutomationPeer.cs
- BlurEffect.cs
- HostingPreferredMapPath.cs
- InnerItemCollectionView.cs
- EdmToObjectNamespaceMap.cs
- SortedDictionary.cs
- XmlNodeChangedEventArgs.cs
- Socket.cs
- Pts.cs
- CodePropertyReferenceExpression.cs
- PopOutPanel.cs
- ProxyGenerator.cs
- BrowserCapabilitiesCodeGenerator.cs
- UpWmlMobileTextWriter.cs
- CallbackTimeoutsBehavior.cs
- ResourceReader.cs
- PeerApplication.cs
- GroupItem.cs
- CodeMemberMethod.cs
- QueryContinueDragEvent.cs
- SettingsPropertyCollection.cs
- X509PeerCertificateAuthenticationElement.cs
- SerializationHelper.cs
- StylusPointPropertyInfo.cs
- IsolatedStorage.cs
- ValidatorCompatibilityHelper.cs
- EventLogPermission.cs
- StateMachine.cs
- ComplexLine.cs
- TableSectionStyle.cs
- DiscoveryReference.cs
- LogExtent.cs
- ObjectListDesigner.cs
- RectConverter.cs
- MultiView.cs
- BindingList.cs
- ApplicationTrust.cs
- QilCloneVisitor.cs
- SynchronizationScope.cs
- BulletedListEventArgs.cs
- CommandField.cs
- PackageRelationship.cs