Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / 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
- SetterBase.cs
- SafeNativeMethodsOther.cs
- RelationshipFixer.cs
- TableAdapterManagerNameHandler.cs
- InvalidateEvent.cs
- DoubleIndependentAnimationStorage.cs
- ReadOnlyMetadataCollection.cs
- ByteStreamMessageEncoderFactory.cs
- RegisteredExpandoAttribute.cs
- NotImplementedException.cs
- WindowsSolidBrush.cs
- XslTransform.cs
- XPathNavigator.cs
- XpsFixedDocumentReaderWriter.cs
- CompiledELinqQueryState.cs
- IsolatedStorageFile.cs
- VirtualDirectoryMapping.cs
- GeneralTransform3D.cs
- OleDbFactory.cs
- ActivityExecutionContextCollection.cs
- RegisteredArrayDeclaration.cs
- BuildManager.cs
- Rotation3DAnimationBase.cs
- OracleBoolean.cs
- SegmentInfo.cs
- DataListItem.cs
- FilterQuery.cs
- AnnotationStore.cs
- UInt64Converter.cs
- WebPartVerb.cs
- GeometryHitTestParameters.cs
- UInt64Converter.cs
- ArcSegment.cs
- DateTimeParse.cs
- ChannelServices.cs
- BaseConfigurationRecord.cs
- ACE.cs
- CookieHandler.cs
- RtfNavigator.cs
- HtmlInputButton.cs
- ObjectToIdCache.cs
- TiffBitmapDecoder.cs
- IriParsingElement.cs
- InputProcessorProfiles.cs
- SchemaEntity.cs
- NamespaceMapping.cs
- CollectionDataContract.cs
- xamlnodes.cs
- StringBuilder.cs
- SQLDecimal.cs
- ObjectListShowCommandsEventArgs.cs
- FrameworkTextComposition.cs
- XmlSchemaComplexContentExtension.cs
- BindUriHelper.cs
- TextRange.cs
- __ComObject.cs
- RequestSecurityToken.cs
- FixedTextContainer.cs
- XamlBrushSerializer.cs
- TabItemWrapperAutomationPeer.cs
- Restrictions.cs
- XmlComplianceUtil.cs
- SerializationSectionGroup.cs
- Font.cs
- ActivityInstance.cs
- DataGridRowDetailsEventArgs.cs
- CompiledIdentityConstraint.cs
- FolderNameEditor.cs
- TablePatternIdentifiers.cs
- WindowsFormsSynchronizationContext.cs
- Panel.cs
- BamlTreeUpdater.cs
- SafeSecurityHelper.cs
- SqlProviderServices.cs
- CheckStoreFileValidityRequest.cs
- CroppedBitmap.cs
- DataBoundControl.cs
- WebPartManagerInternals.cs
- QilStrConcatenator.cs
- WindowsContainer.cs
- DataGridViewSortCompareEventArgs.cs
- SystemGatewayIPAddressInformation.cs
- SocketException.cs
- DbModificationCommandTree.cs
- AttachedPropertyMethodSelector.cs
- XmlSchemaObject.cs
- RegexGroup.cs
- SqlWebEventProvider.cs
- HostedHttpContext.cs
- FormView.cs
- TextTreeRootNode.cs
- ClockGroup.cs
- DesignerEditorPartChrome.cs
- Thickness.cs
- PartialCachingControl.cs
- Util.cs
- CommandManager.cs
- PartialClassGenerationTaskInternal.cs
- ScriptReference.cs
- CalendarDataBindingHandler.cs