Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Execute()

override void System.Xml.Xsl.XsltOld.MessageAction.Execute ( Processor processor,
ActionFrame frame )
inlinepackage

Definition at line 32 of file MessageAction.cs.

33 {
34 switch (frame.State)
35 {
36 case 0:
37 {
38 TextOnlyOutput output = new TextOnlyOutput(processor, new StringWriter(CultureInfo.InvariantCulture));
39 processor.PushOutput(output);
40 processor.PushActionFrame(frame);
41 frame.State = 1;
42 break;
43 }
44 case 1:
45 {
46 TextOnlyOutput textOnlyOutput = processor.PopOutput() as TextOnlyOutput;
47 if (_Terminate)
48 {
49 throw XsltException.Create(System.SR.Xslt_Terminate, textOnlyOutput.Writer.ToString());
50 }
51 frame.Finished();
52 break;
53 }
54 }
55 }
static CultureInfo InvariantCulture
static string Xslt_Terminate
Definition SR.cs:2132
Definition SR.cs:7

References System.Xml.Xsl.XsltOld.MessageAction._Terminate, System.Xml.Xsl.XsltException.Create(), System.Xml.Dictionary, System.Xml.Xsl.XsltOld.ActionFrame.Finished(), System.Globalization.CultureInfo.InvariantCulture, System.Xml.Xsl.XsltOld.ActionFrame.State, and System.SR.Xslt_Terminate.