Code:
/ DotNET / DotNET / 8.0 / untmp / 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 [....] 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ComponentCommands.cs
- TextAutomationPeer.cs
- ManualResetEvent.cs
- XamlPointCollectionSerializer.cs
- XmlSchemaSequence.cs
- AssemblyAssociatedContentFileAttribute.cs
- WebColorConverter.cs
- DbConnectionPoolIdentity.cs
- TextEncodedRawTextWriter.cs
- GeneralTransform3DCollection.cs
- WizardPanel.cs
- EditingCoordinator.cs
- ServiceDescription.cs
- Convert.cs
- EntityDataSourceSelectingEventArgs.cs
- Qualifier.cs
- GeneralTransform3DCollection.cs
- SqlDataSourceSelectingEventArgs.cs
- ToolStripSeparator.cs
- PersonalizationEntry.cs
- XmlnsCompatibleWithAttribute.cs
- CodeAssignStatement.cs
- DataRecordInfo.cs
- ByteStorage.cs
- BindingNavigatorDesigner.cs
- MetadataItemCollectionFactory.cs
- OdbcErrorCollection.cs
- EmptyElement.cs
- TabletCollection.cs
- DataGridViewControlCollection.cs
- _RequestCacheProtocol.cs
- EmptyStringExpandableObjectConverter.cs
- PostBackOptions.cs
- WebPartHeaderCloseVerb.cs
- ProfileGroupSettingsCollection.cs
- Drawing.cs
- HMACRIPEMD160.cs
- RoleGroup.cs
- TimeZone.cs
- TableRowGroupCollection.cs
- UICuesEvent.cs
- MetaDataInfo.cs
- EndpointAddressAugust2004.cs
- ContentValidator.cs
- FileDialog_Vista_Interop.cs
- AuthenticationServiceManager.cs
- CacheOutputQuery.cs
- ColorTranslator.cs
- EventMappingSettingsCollection.cs
- CustomAttributeBuilder.cs
- RSAOAEPKeyExchangeFormatter.cs
- EventData.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- IdentitySection.cs
- DesignerInterfaces.cs
- PropertyCondition.cs
- GridSplitterAutomationPeer.cs
- Model3DGroup.cs
- SafeMemoryMappedViewHandle.cs
- ParallelSeparator.xaml.cs
- DataSysAttribute.cs
- Soap.cs
- ColumnHeaderConverter.cs
- CodeEntryPointMethod.cs
- Debug.cs
- CombinedTcpChannel.cs
- XPathSingletonIterator.cs
- PermissionSet.cs
- SelectionBorderGlyph.cs
- PenLineCapValidation.cs
- SkinBuilder.cs
- DataGridViewControlCollection.cs
- TreeBuilder.cs
- DecimalAnimationBase.cs
- BatchServiceHost.cs
- TemplateControl.cs
- FixedHyperLink.cs
- MatchingStyle.cs
- CodeStatement.cs
- UnsafeNativeMethods.cs
- webproxy.cs
- UpdateDelegates.Generated.cs
- XmlSchemaAttributeGroup.cs
- GradientStopCollection.cs
- SmiMetaData.cs
- Point3DKeyFrameCollection.cs
- SqlResolver.cs
- GetLedgerRequest.cs
- PeerNameResolver.cs
- PrintEvent.cs
- ConversionContext.cs
- CreateUserWizardStep.cs
- ItemsChangedEventArgs.cs
- VisualStyleRenderer.cs
- ContextMenuStripActionList.cs
- Util.cs
- ExpandedWrapper.cs
- QueryableDataSourceEditData.cs
- PenContext.cs
- ResourceReader.cs