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
- UserControlParser.cs
- TraceSection.cs
- ContentPathSegment.cs
- BaseDataBoundControl.cs
- ThreadPool.cs
- Image.cs
- PageEventArgs.cs
- MenuItemAutomationPeer.cs
- HashSetEqualityComparer.cs
- WebPartAddingEventArgs.cs
- DataGridViewCell.cs
- HtmlTableCellCollection.cs
- _ListenerAsyncResult.cs
- LocationSectionRecord.cs
- CapabilitiesPattern.cs
- FocusChangedEventArgs.cs
- SchemaSetCompiler.cs
- TextOutput.cs
- SelfIssuedAuthProofToken.cs
- RegistrySecurity.cs
- UpdatePanelTriggerCollection.cs
- InternalCache.cs
- TreeNode.cs
- CompoundFileDeflateTransform.cs
- WorkflowLayouts.cs
- NamespaceQuery.cs
- RowSpanVector.cs
- DataMisalignedException.cs
- PowerEase.cs
- HotSpot.cs
- SspiNegotiationTokenAuthenticator.cs
- _NestedMultipleAsyncResult.cs
- RSAProtectedConfigurationProvider.cs
- ToolboxComponentsCreatedEventArgs.cs
- PopupControlService.cs
- ActiveDesignSurfaceEvent.cs
- BitSet.cs
- PresentationAppDomainManager.cs
- ConstructorBuilder.cs
- WindowsPen.cs
- DataGridViewEditingControlShowingEventArgs.cs
- StringBuilder.cs
- View.cs
- EventMemberCodeDomSerializer.cs
- DynamicPropertyHolder.cs
- TrustManager.cs
- ManifestBasedResourceGroveler.cs
- Size3DConverter.cs
- CryptoStream.cs
- DivideByZeroException.cs
- ISO2022Encoding.cs
- DataGridColumnHeaderCollection.cs
- TraceUtility.cs
- SerialReceived.cs
- CommandArguments.cs
- EncryptedType.cs
- IncrementalCompileAnalyzer.cs
- BuildDependencySet.cs
- PerformanceCounterNameAttribute.cs
- HebrewCalendar.cs
- BaseDataBoundControl.cs
- EntityTransaction.cs
- CollectionBuilder.cs
- ProtectedConfigurationSection.cs
- SettingsProviderCollection.cs
- PointAnimationUsingPath.cs
- PrimitiveRenderer.cs
- RowToFieldTransformer.cs
- SqlGenericUtil.cs
- VisualBrush.cs
- IfElseDesigner.xaml.cs
- CodeStatement.cs
- EmbossBitmapEffect.cs
- SystemIPGlobalProperties.cs
- NativeRightsManagementAPIsStructures.cs
- Color.cs
- NativeMethods.cs
- JsonStringDataContract.cs
- DbDataReader.cs
- ResourceContainer.cs
- DataObject.cs
- KeyConstraint.cs
- PropertyEmitterBase.cs
- ObjectRef.cs
- ArraySubsetEnumerator.cs
- RowToParametersTransformer.cs
- ItemsPanelTemplate.cs
- ConfigUtil.cs
- XslNumber.cs
- XmlCharacterData.cs
- SqlProfileProvider.cs
- RequestedSignatureDialog.cs
- cache.cs
- altserialization.cs
- QueryOperatorEnumerator.cs
- Cursor.cs
- TableAdapterManagerNameHandler.cs
- PackWebRequestFactory.cs
- CopyCodeAction.cs
- Configuration.cs