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
- AllMembershipCondition.cs
- MissingManifestResourceException.cs
- ImportedPolicyConversionContext.cs
- DocumentGridPage.cs
- LocationSectionRecord.cs
- FixedSOMFixedBlock.cs
- GlobalizationAssembly.cs
- BinHexDecoder.cs
- XamlRtfConverter.cs
- TouchDevice.cs
- Literal.cs
- WebPartConnectionsCloseVerb.cs
- AuthenticationException.cs
- SizeChangedEventArgs.cs
- SafeTokenHandle.cs
- HttpProtocolReflector.cs
- ImageFormat.cs
- SqlDataSourceStatusEventArgs.cs
- ScriptDescriptor.cs
- Label.cs
- PaperSource.cs
- SQLString.cs
- RectIndependentAnimationStorage.cs
- PlanCompilerUtil.cs
- DescendantQuery.cs
- JobPageOrder.cs
- KeyValuePair.cs
- XmlSerializerVersionAttribute.cs
- DictionaryBase.cs
- DataServiceProcessingPipelineEventArgs.cs
- UnSafeCharBuffer.cs
- BamlBinaryReader.cs
- DBSchemaTable.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- RegexCaptureCollection.cs
- ZipFileInfoCollection.cs
- DataGridViewDataConnection.cs
- HttpListenerResponse.cs
- StringCollection.cs
- ErrorStyle.cs
- ImmutableObjectAttribute.cs
- SelectionChangedEventArgs.cs
- BmpBitmapDecoder.cs
- ComponentEditorForm.cs
- XmlDomTextWriter.cs
- ConfigLoader.cs
- Matrix3DConverter.cs
- X509Utils.cs
- WebPartCollection.cs
- InvokeWebServiceDesigner.cs
- NativeWindow.cs
- UnsafeNativeMethods.cs
- BitmapEffectRenderDataResource.cs
- TransportListener.cs
- TwoPhaseCommitProxy.cs
- TemplateBaseAction.cs
- EncoderExceptionFallback.cs
- OutputScopeManager.cs
- CompositeFontFamily.cs
- TryCatch.cs
- TranslateTransform3D.cs
- ThreadExceptionEvent.cs
- CompositeDesignerAccessibleObject.cs
- ParseChildrenAsPropertiesAttribute.cs
- SqlIdentifier.cs
- CodeSnippetCompileUnit.cs
- WorkflowViewService.cs
- RootProjectionNode.cs
- CallSiteBinder.cs
- ProcessHostFactoryHelper.cs
- BoundColumn.cs
- DbConnectionHelper.cs
- Point3DAnimationBase.cs
- DomNameTable.cs
- XPathSelfQuery.cs
- LocalizableAttribute.cs
- BitmapPalette.cs
- PropertyNames.cs
- ISCIIEncoding.cs
- _SSPISessionCache.cs
- ControlCollection.cs
- MultipartContentParser.cs
- AppSettingsExpressionBuilder.cs
- AspCompat.cs
- ToolStripRenderEventArgs.cs
- MenuStrip.cs
- FillBehavior.cs
- SpellerHighlightLayer.cs
- PolyLineSegment.cs
- TemplateField.cs
- MemberDescriptor.cs
- WsdlBuildProvider.cs
- SoapCommonClasses.cs
- XmlStreamNodeWriter.cs
- TableLayoutColumnStyleCollection.cs
- SerializerWriterEventHandlers.cs
- ScriptingWebServicesSectionGroup.cs
- TableLayoutPanelCellPosition.cs
- TogglePattern.cs
- URLAttribute.cs