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
- Page.cs
- ElementUtil.cs
- XmlSchemaAttributeGroup.cs
- ScriptReferenceBase.cs
- HwndSubclass.cs
- PermissionSet.cs
- QuerySafeNavigator.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- altserialization.cs
- CodeThrowExceptionStatement.cs
- TextFormatterContext.cs
- ScrollChrome.cs
- Transform3D.cs
- WizardStepCollectionEditor.cs
- SafeTimerHandle.cs
- WindowsTokenRoleProvider.cs
- TagMapCollection.cs
- EventArgs.cs
- XPathPatternParser.cs
- StylesEditorDialog.cs
- TimeStampChecker.cs
- SiteMapNodeItemEventArgs.cs
- ContentFileHelper.cs
- CaseStatementSlot.cs
- NavigatingCancelEventArgs.cs
- LabelEditEvent.cs
- MemberAccessException.cs
- InertiaRotationBehavior.cs
- EmptyStringExpandableObjectConverter.cs
- DynamicDataManager.cs
- ThumbAutomationPeer.cs
- Dictionary.cs
- OleDbStruct.cs
- QuaternionRotation3D.cs
- RowUpdatedEventArgs.cs
- StructuredCompositeActivityDesigner.cs
- ScriptReferenceBase.cs
- HttpFileCollectionWrapper.cs
- GridPattern.cs
- SoapConverter.cs
- AccessedThroughPropertyAttribute.cs
- MasterPage.cs
- EmissiveMaterial.cs
- SimpleTypesSurrogate.cs
- GenericTypeParameterBuilder.cs
- WindowsListViewScroll.cs
- ServicesUtilities.cs
- ExtractedStateEntry.cs
- ConfigXmlText.cs
- PropertyStore.cs
- TextSerializer.cs
- DynamicDataManager.cs
- DeflateInput.cs
- SupportsEventValidationAttribute.cs
- MailWebEventProvider.cs
- EventLogInternal.cs
- EntityClassGenerator.cs
- InheritanceAttribute.cs
- HttpCookiesSection.cs
- SqlBuffer.cs
- DataGridViewCheckBoxColumn.cs
- StyleSelector.cs
- WebBrowserNavigatedEventHandler.cs
- RtfNavigator.cs
- CodeNamespaceImportCollection.cs
- DataTrigger.cs
- TiffBitmapDecoder.cs
- ChangePassword.cs
- wgx_sdk_version.cs
- DPCustomTypeDescriptor.cs
- PerformanceCounterManager.cs
- X509IssuerSerialKeyIdentifierClause.cs
- X509SecurityToken.cs
- SqlCaseSimplifier.cs
- GeneralTransform3DTo2DTo3D.cs
- UnsafeNativeMethodsPenimc.cs
- SQLSingleStorage.cs
- DataGridViewColumnCollectionDialog.cs
- GroupBox.cs
- RankException.cs
- DataTableMappingCollection.cs
- CodeSnippetTypeMember.cs
- ContextStack.cs
- Byte.cs
- ItemList.cs
- StateValidator.cs
- MessageQueuePermissionEntryCollection.cs
- ServiceNameElementCollection.cs
- UIElementCollection.cs
- DeviceSpecific.cs
- Oid.cs
- ValueUtilsSmi.cs
- XpsColorContext.cs
- MenuStrip.cs
- Context.cs
- UriExt.cs
- BCLDebug.cs
- TabPage.cs
- FormsIdentity.cs
- ReplyChannelAcceptor.cs