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
- DbConnectionHelper.cs
- XdrBuilder.cs
- MetadataItemEmitter.cs
- WinFormsUtils.cs
- InputLanguage.cs
- ArrayListCollectionBase.cs
- OdbcConnection.cs
- UpdateTranslator.cs
- SubtreeProcessor.cs
- HitTestResult.cs
- ParentUndoUnit.cs
- RelationshipSet.cs
- SerTrace.cs
- recordstate.cs
- Normalization.cs
- ReadOnlyDictionary.cs
- WebRequestModulesSection.cs
- XmlWrappingReader.cs
- CompilerGlobalScopeAttribute.cs
- Journaling.cs
- RoutedEvent.cs
- FaultCode.cs
- DefinitionBase.cs
- TextViewBase.cs
- returneventsaver.cs
- BaseValidatorDesigner.cs
- IncrementalReadDecoders.cs
- DetailsViewUpdatedEventArgs.cs
- MultilineStringConverter.cs
- ObjectMaterializedEventArgs.cs
- LinqDataSource.cs
- SerialPort.cs
- TableAutomationPeer.cs
- CurrentChangingEventArgs.cs
- DataTableNewRowEvent.cs
- ReadOnlyDataSource.cs
- StylusPointProperties.cs
- RegexEditorDialog.cs
- CheckBox.cs
- RelationshipWrapper.cs
- Window.cs
- BrowserCapabilitiesFactory.cs
- Interlocked.cs
- DataGridViewElement.cs
- SqlServer2KCompatibilityAnnotation.cs
- PolicyValidator.cs
- DesignerTransactionCloseEvent.cs
- SrgsSubset.cs
- ItemContainerPattern.cs
- SafeSecurityHandles.cs
- CommandConverter.cs
- Tokenizer.cs
- RNGCryptoServiceProvider.cs
- KeyConverter.cs
- CommandValueSerializer.cs
- RNGCryptoServiceProvider.cs
- EventKeyword.cs
- ProcessProtocolHandler.cs
- BooleanConverter.cs
- ExtensionsSection.cs
- SplitterEvent.cs
- EntityProviderServices.cs
- UInt16.cs
- securestring.cs
- RoleServiceManager.cs
- ObjectDataSourceFilteringEventArgs.cs
- BmpBitmapEncoder.cs
- ShaperBuffers.cs
- WebServiceResponseDesigner.cs
- SurrogateEncoder.cs
- FixUp.cs
- CalloutQueueItem.cs
- EntityDataSourceWizardForm.cs
- PlatformCulture.cs
- DrawingBrush.cs
- DataControlFieldCollection.cs
- DebugViewWriter.cs
- DesigntimeLicenseContext.cs
- CapiSafeHandles.cs
- Int32CollectionConverter.cs
- ArgumentFixer.cs
- LazyTextWriterCreator.cs
- _LazyAsyncResult.cs
- OpenFileDialog.cs
- StylusPointProperty.cs
- ViewManager.cs
- OLEDB_Util.cs
- IApplicationTrustManager.cs
- AvTrace.cs
- WriteTimeStream.cs
- CultureTableRecord.cs
- ScriptingProfileServiceSection.cs
- ReplyAdapterChannelListener.cs
- RoutedCommand.cs
- NotificationContext.cs
- ControlPager.cs
- ControlValuePropertyAttribute.cs
- XamlReader.cs
- FormsAuthenticationUserCollection.cs
- EntityContainerEmitter.cs