Archived
deploy webservice static-file routing for docsite folder URLs, per-instance step-cache db, and constant-height panel title bars.
This commit is contained in:
@@ -140,6 +140,16 @@ Interface IToPresentDto
|
||||
|
||||
|
||||
|
||||
<h2 id="Hi_Common_IToPresentDto_remarks">Remarks</h2>
|
||||
<div class="markdown level0 remarks"><p>Implementations must not return anonymous types: release assemblies are obfuscated
|
||||
with only the public API kept, so an anonymous type gets renamed and loses its
|
||||
constructor parameter names, which makes <code>System.Text.Json</code> throw
|
||||
<code>NotSupportedException</code> when serializing it. Return a
|
||||
<code>Dictionary<string, object></code> instead — its keys are emitted verbatim as
|
||||
the JSON property names. Key by <code>nameof</code> of the mirrored member where one
|
||||
exists (<code>nameof</code> compiles to a string literal, so obfuscation cannot touch
|
||||
it); use a literal for marker keys such as <code>“Type”</code>.</p>
|
||||
</div>
|
||||
|
||||
|
||||
<h2 class="section" id="methods">Methods
|
||||
|
||||
Reference in New Issue
Block a user