<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://skizzerz.net/DiceRoller/index.php?action=history&amp;feed=atom&amp;title=Dice%2FFunctionCallback</id>
	<title>Dice/FunctionCallback - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://skizzerz.net/DiceRoller/index.php?action=history&amp;feed=atom&amp;title=Dice%2FFunctionCallback"/>
	<link rel="alternate" type="text/html" href="https://skizzerz.net/DiceRoller/index.php?title=Dice/FunctionCallback&amp;action=history"/>
	<updated>2026-05-03T02:35:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>https://skizzerz.net/DiceRoller/index.php?title=Dice/FunctionCallback&amp;diff=350&amp;oldid=prev</id>
		<title>Skizzerz at 20:29, 12 April 2017</title>
		<link rel="alternate" type="text/html" href="https://skizzerz.net/DiceRoller/index.php?title=Dice/FunctionCallback&amp;diff=350&amp;oldid=prev"/>
		<updated>2017-04-12T20:29:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 20:29, 12 April 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l17&quot; &gt;Line 17:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 17:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Remarks ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Remarks ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The FunctionCallback delegate is used alongside the [[Dice/DiceFunctionAttribute|DiceFunctionAttribute]] and [[Dice/FunctionRegistry/RegisterType|FunctionRegistry.RegisterType]], or with [[Dice/FunctionRegistry/RegisterFunction|FunctionRegistry.RegisterFunction]]. The delegate can gain insight into the context of the function call by examining the passed-in ''context'' object, and it must also modify the ''context'' object's Value &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and Values&lt;/del&gt;. If no delegate in the chain modifies the context's Value &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;or &lt;/del&gt;Values, an &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;exception &lt;/del&gt;is &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;thrown&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The FunctionCallback delegate is used alongside the [[Dice/DiceFunctionAttribute|DiceFunctionAttribute]] and [[Dice/FunctionRegistry/RegisterType|FunctionRegistry.RegisterType]], or with [[Dice/FunctionRegistry/RegisterFunction|FunctionRegistry.RegisterFunction]]. The delegate can gain insight into the context of the function call by examining the passed-in ''context'' object, and it must also modify the ''context'' object's Value. If no delegate in the chain modifies the context's Value&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, an InvalidOperationException is thrown.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;The context's Values should also be modified, but if left {{cs|null}}, then {{cs|context.Expression.&lt;/ins&gt;Values&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;}} is used instead. Should ''that'' be {{cs|null}}&lt;/ins&gt;, an &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;empty list &lt;/ins&gt;is &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;returned&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key skizzerz_dice:diff::1.12:old-345:rev-350 --&gt;
&lt;/table&gt;</summary>
		<author><name>Skizzerz</name></author>
		
	</entry>
	<entry>
		<id>https://skizzerz.net/DiceRoller/index.php?title=Dice/FunctionCallback&amp;diff=345&amp;oldid=prev</id>
		<title>Skizzerz: Created page with &quot;{{APIdoc|FunctionCallback Delegate}} Encapsulates a method which executes function logic.  {{ns}}  == Syntax == &lt;syntaxhighlight lang=&quot;C#&quot;&gt; public delegate void FunctionCallba...&quot;</title>
		<link rel="alternate" type="text/html" href="https://skizzerz.net/DiceRoller/index.php?title=Dice/FunctionCallback&amp;diff=345&amp;oldid=prev"/>
		<updated>2017-04-12T20:22:37Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{APIdoc|FunctionCallback Delegate}} Encapsulates a method which executes function logic.  {{ns}}  == Syntax == &amp;lt;syntaxhighlight lang=&amp;quot;C#&amp;quot;&amp;gt; public delegate void FunctionCallba...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{APIdoc|FunctionCallback Delegate}}&lt;br /&gt;
Encapsulates a method which executes function logic.&lt;br /&gt;
&lt;br /&gt;
{{ns}}&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;C#&amp;quot;&amp;gt;&lt;br /&gt;
public delegate void FunctionCallback(&lt;br /&gt;
    FunctionContext context&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
; ''context''&lt;br /&gt;
: Type: [[Dice/FunctionContext|Dice.FunctionContext]]&lt;br /&gt;
: Function context, to be filled in by the delegate.&lt;br /&gt;
&lt;br /&gt;
== Remarks ==&lt;br /&gt;
The FunctionCallback delegate is used alongside the [[Dice/DiceFunctionAttribute|DiceFunctionAttribute]] and [[Dice/FunctionRegistry/RegisterType|FunctionRegistry.RegisterType]], or with [[Dice/FunctionRegistry/RegisterFunction|FunctionRegistry.RegisterFunction]]. The delegate can gain insight into the context of the function call by examining the passed-in ''context'' object, and it must also modify the ''context'' object's Value and Values. If no delegate in the chain modifies the context's Value or Values, an exception is thrown.&lt;/div&gt;</summary>
		<author><name>Skizzerz</name></author>
		
	</entry>
</feed>