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
- EdmSchemaAttribute.cs
- Hex.cs
- EndPoint.cs
- XmlArrayItemAttribute.cs
- SafeRegistryHandle.cs
- ConstraintManager.cs
- VerificationException.cs
- PrtCap_Public_Simple.cs
- SQlBooleanStorage.cs
- RegexCompiler.cs
- DataSourceGeneratorException.cs
- ViewSimplifier.cs
- ConditionalWeakTable.cs
- HttpCachePolicy.cs
- SqlExpressionNullability.cs
- TrustLevel.cs
- StrokeDescriptor.cs
- GestureRecognitionResult.cs
- OptimalBreakSession.cs
- MembershipPasswordException.cs
- FlowSwitch.cs
- TextBoxLine.cs
- TextServicesDisplayAttribute.cs
- QuaternionKeyFrameCollection.cs
- ProcessModelInfo.cs
- remotingproxy.cs
- CapabilitiesPattern.cs
- KeyGesture.cs
- IndexOutOfRangeException.cs
- EdmToObjectNamespaceMap.cs
- SortedSetDebugView.cs
- XmlArrayItemAttributes.cs
- PageBuildProvider.cs
- MediaContext.cs
- XmlQueryOutput.cs
- basevalidator.cs
- Transform3DGroup.cs
- NavigationCommands.cs
- SQLRoleProvider.cs
- Schema.cs
- XmlSchemaSimpleContentExtension.cs
- UInt64.cs
- Vector3DCollection.cs
- ExpressionConverter.cs
- FramingChannels.cs
- SchemaImporterExtensionElement.cs
- CriticalFinalizerObject.cs
- HtmlImage.cs
- NativeMethods.cs
- path.cs
- ArgumentsParser.cs
- Visitors.cs
- RefreshEventArgs.cs
- OdbcStatementHandle.cs
- WebPartVerb.cs
- XslException.cs
- QueueSurrogate.cs
- BoundConstants.cs
- ResXFileRef.cs
- _IPv6Address.cs
- tibetanshape.cs
- TextFormatterImp.cs
- MobileControlPersister.cs
- SoapException.cs
- PlatformCulture.cs
- MatchingStyle.cs
- XmlStringTable.cs
- TypeListConverter.cs
- ConnectionStringEditor.cs
- Accessible.cs
- MultiTrigger.cs
- ArrangedElement.cs
- DummyDataSource.cs
- ScrollItemPattern.cs
- ClientApiGenerator.cs
- TimeoutValidationAttribute.cs
- ReadOnlyPropertyMetadata.cs
- XmlSchemaExternal.cs
- ScriptResourceAttribute.cs
- ServiceHostingEnvironment.cs
- ObjectAssociationEndMapping.cs
- DetailsViewPageEventArgs.cs
- SHA384.cs
- NetTcpSection.cs
- GregorianCalendar.cs
- ExecutionEngineException.cs
- xmlfixedPageInfo.cs
- TextEffect.cs
- BamlWriter.cs
- SimpleRecyclingCache.cs
- BamlBinaryReader.cs
- Token.cs
- OpenTypeCommon.cs
- PageAsyncTaskManager.cs
- ActivityDesignerHelper.cs
- InvalidFilterCriteriaException.cs
- DynamicDataRouteHandler.cs
- DES.cs
- MLangCodePageEncoding.cs
- MediaElement.cs