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
- ForEach.cs
- StylusButtonCollection.cs
- InitiatorServiceModelSecurityTokenRequirement.cs
- TransformerInfo.cs
- SecurityContext.cs
- BrowserDefinition.cs
- Int32.cs
- HashCodeCombiner.cs
- RegistryKey.cs
- PrintControllerWithStatusDialog.cs
- BrowsableAttribute.cs
- RoutedEvent.cs
- FormsAuthenticationUserCollection.cs
- SiteMapDataSourceView.cs
- AssemblyBuilderData.cs
- Token.cs
- QueueProcessor.cs
- Math.cs
- SerializableAttribute.cs
- AnnotationResource.cs
- MarkupProperty.cs
- IntranetCredentialPolicy.cs
- XmlSchemaGroupRef.cs
- sitestring.cs
- control.ime.cs
- CheckBoxPopupAdapter.cs
- Keywords.cs
- TableLayoutPanelCellPosition.cs
- QilInvoke.cs
- VolatileEnlistmentState.cs
- EventBuilder.cs
- HelpEvent.cs
- ExpressionBuilderContext.cs
- BoundPropertyEntry.cs
- DesignerDataRelationship.cs
- WebZone.cs
- cryptoapiTransform.cs
- TypedAsyncResult.cs
- UnmanagedMemoryStreamWrapper.cs
- DiagnosticsConfigurationHandler.cs
- Int32KeyFrameCollection.cs
- RequestNavigateEventArgs.cs
- ConfigurationManagerInternal.cs
- CultureSpecificStringDictionary.cs
- ContentValidator.cs
- X509RecipientCertificateServiceElement.cs
- SafeHandle.cs
- GPRECTF.cs
- TdsParserStaticMethods.cs
- ResourceProperty.cs
- MimeReflector.cs
- HwndProxyElementProvider.cs
- OdbcParameterCollection.cs
- EmissiveMaterial.cs
- WebHttpSecurity.cs
- RulePatternOps.cs
- Underline.cs
- CellLabel.cs
- localization.cs
- MetricEntry.cs
- WebServiceHost.cs
- XmlAtomicValue.cs
- XPathEmptyIterator.cs
- ConfigurationSectionGroupCollection.cs
- KeyboardNavigation.cs
- UniqueIdentifierService.cs
- ValidatingReaderNodeData.cs
- Cursors.cs
- SqlDependencyUtils.cs
- AlternateViewCollection.cs
- CodeGenerator.cs
- UnsafeNativeMethodsTablet.cs
- TagNameToTypeMapper.cs
- MailDefinition.cs
- MsmqTransportReceiveParameters.cs
- ResourceExpressionBuilder.cs
- DataTableMapping.cs
- FactoryGenerator.cs
- AssemblyFilter.cs
- CodeTypeMember.cs
- VBIdentifierDesigner.xaml.cs
- DispatcherSynchronizationContext.cs
- CompiledRegexRunner.cs
- RelationshipEndCollection.cs
- CardSpaceSelector.cs
- XmlConvert.cs
- SharedStream.cs
- ControlBuilder.cs
- HttpValueCollection.cs
- ContentValidator.cs
- RoutedUICommand.cs
- ModelTreeManager.cs
- TextBreakpoint.cs
- WebPartExportVerb.cs
- _WinHttpWebProxyDataBuilder.cs
- Vector3DCollection.cs
- LinqDataSourceValidationException.cs
- ControlAdapter.cs
- SafeHandles.cs
- FormsAuthenticationEventArgs.cs