Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / 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
- TaskScheduler.cs
- Visual3DCollection.cs
- AmbientValueAttribute.cs
- DataContractSerializerElement.cs
- CacheDependency.cs
- EventListenerClientSide.cs
- DashStyle.cs
- PathFigure.cs
- TextTreeTextElementNode.cs
- BitmapEffectGroup.cs
- SqlCommandBuilder.cs
- XmlSchemaAny.cs
- RenderingBiasValidation.cs
- LogReservationCollection.cs
- ParamArrayAttribute.cs
- PropertyEmitterBase.cs
- Quad.cs
- Message.cs
- OdbcStatementHandle.cs
- DataGridViewCellMouseEventArgs.cs
- Brushes.cs
- XmlRawWriterWrapper.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- MasterPageParser.cs
- CssTextWriter.cs
- DataBindEngine.cs
- FaultDesigner.cs
- XsltArgumentList.cs
- Compress.cs
- DataColumnCollection.cs
- ConfigXmlCDataSection.cs
- securitycriticaldataClass.cs
- _ListenerResponseStream.cs
- COM2PropertyPageUITypeConverter.cs
- ModelPropertyCollectionImpl.cs
- SafeNativeMethods.cs
- LocatorPart.cs
- TransformConverter.cs
- ParameterModifier.cs
- ClientFormsIdentity.cs
- __TransparentProxy.cs
- Logging.cs
- GB18030Encoding.cs
- StatusBarPanel.cs
- PropertyMapper.cs
- BoolExpression.cs
- ProfileServiceManager.cs
- NonParentingControl.cs
- StaticContext.cs
- RoutingBehavior.cs
- ServiceChannelProxy.cs
- ConfigXmlWhitespace.cs
- PathGeometry.cs
- DesignerSerializationVisibilityAttribute.cs
- EpmTargetPathSegment.cs
- WebPartPersonalization.cs
- SecurityContext.cs
- BCLDebug.cs
- SecurityElement.cs
- OracleCommand.cs
- HideDisabledControlAdapter.cs
- FlowNode.cs
- ServiceInfo.cs
- MsmqHostedTransportManager.cs
- SqlSelectClauseBuilder.cs
- WSUtilitySpecificationVersion.cs
- ExpressionVisitor.cs
- OracleColumn.cs
- KerberosTokenFactoryCredential.cs
- EntityFunctions.cs
- BindingContext.cs
- WhiteSpaceTrimStringConverter.cs
- AppDomainShutdownMonitor.cs
- SoapAttributeOverrides.cs
- PointAnimationClockResource.cs
- EventLog.cs
- IOThreadTimer.cs
- BitmapMetadataBlob.cs
- Pkcs7Recipient.cs
- ShaderEffect.cs
- _SSPIWrapper.cs
- WorkflowInstance.cs
- EmptyTextWriter.cs
- UnsafeNativeMethods.cs
- PrintingPermission.cs
- DataView.cs
- PageFunction.cs
- MatrixValueSerializer.cs
- AccessViolationException.cs
- ConfigurationValues.cs
- MsmqIntegrationElement.cs
- UpdateException.cs
- TableHeaderCell.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- Bold.cs
- TypeLibConverter.cs
- Parameter.cs
- RevocationPoint.cs
- GridViewDeleteEventArgs.cs
- IPEndPoint.cs