mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-26 06:27:19 +01:00
Deploy code docs to GitHub Pages for workflow run 3273
Commit: 074d1d0e4b
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.5"/>
|
||||
<meta name="generator" content="Doxygen 1.9.8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>tgstation-server: src/Tgstation.Server.Host/Models/ModelExtensions.cs Source File</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -30,7 +30,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.5 -->
|
||||
<!-- Generated by Doxygen 1.9.8 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
||||
@@ -47,6 +47,11 @@ $(function() {
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function() { init_codefold(0); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
@@ -85,8 +90,10 @@ $(function() {
|
||||
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span> </div>
|
||||
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_models.html">Tgstation.Server.Host.Models</a></div>
|
||||
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span>{</div>
|
||||
<div class="foldopen" id="foldopen00012" data-start="{" data-end="};">
|
||||
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_model_extensions.html"> 12</a></span> <span class="keyword">static</span> <span class="keyword">class </span><a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_model_extensions.html">ModelExtensions</a></div>
|
||||
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> {</div>
|
||||
<div class="foldopen" id="foldopen00023" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_model_extensions.html#a7a5a8a45d04a5569979b8bfcc598fc90"> 23</a></span> <span class="keyword">public</span> <span class="keyword">static</span> TProperty <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_model_extensions.html#a7a5a8a45d04a5569979b8bfcc598fc90">Require<TModel, TProperty></a>(<span class="keyword">this</span> TModel model, Expression<Func<TModel, TProperty?>> accessor)</div>
|
||||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> where TModel : <a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_entity_id.html">EntityId</a></div>
|
||||
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> where TProperty : <span class="keyword">struct</span></div>
|
||||
@@ -95,7 +102,7 @@ $(function() {
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> ArgumentNullException.ThrowIfNull(accessor);</div>
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
|
||||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> var memberSelectorExpression = (MemberExpression)accessor.Body;</div>
|
||||
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> var property = (PropertyInfo)memberSelectorExpression.Member;</div>
|
||||
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> var <span class="keyword">property</span> = (PropertyInfo)memberSelectorExpression.Member;</div>
|
||||
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
|
||||
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> var nullableValue = (TProperty?)property.GetValue(model);</div>
|
||||
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> <span class="keywordflow">if</span> (!nullableValue.HasValue)</div>
|
||||
@@ -103,17 +110,19 @@ $(function() {
|
||||
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> </div>
|
||||
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <span class="keywordflow">return</span> nullableValue.Value;</div>
|
||||
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span>}</div>
|
||||
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_entity_id_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_entity_id.html">Tgstation.Server.Api.Models.EntityId</a></div><div class="ttdoc">Common base of entities with IDs.</div><div class="ttdef"><b>Definition:</b> <a href="_entity_id_8cs_source.html#l00006">EntityId.cs:7</a></div></div>
|
||||
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_models_1_1_model_extensions_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_model_extensions.html">Tgstation.Server.Host.Models.ModelExtensions</a></div><div class="ttdoc">Extensions for Models.</div><div class="ttdef"><b>Definition:</b> <a href="_model_extensions_8cs_source.html#l00012">ModelExtensions.cs:13</a></div></div>
|
||||
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_models_1_1_model_extensions_html_a7a5a8a45d04a5569979b8bfcc598fc90"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_model_extensions.html#a7a5a8a45d04a5569979b8bfcc598fc90">Tgstation.Server.Host.Models.ModelExtensions.Require< TModel, TProperty ></a></div><div class="ttdeci">static TProperty Require< TModel, TProperty >(this TModel model, Expression< Func< TModel, TProperty?> > accessor)</div><div class="ttdoc">Require a given Nullable<T> property of a given model be non-null.</div><div class="ttdef"><b>Definition:</b> <a href="_model_extensions_8cs_source.html#l00023">ModelExtensions.cs:23</a></div></div>
|
||||
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_api_1_1_models_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_api_1_1_models.html">Tgstation.Server.Api.Models</a></div><div class="ttdef"><b>Definition:</b> <a href="_tgstation_8_server_8_api_2_models_2_chat_channel_8cs_source.html#l00005">ChatChannel.cs:6</a></div></div>
|
||||
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_models_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_models.html">Tgstation.Server.Host.Models</a></div><div class="ttdef"><b>Definition:</b> <a href="_chat_bot_8cs_source.html#l00008">ChatBot.cs:9</a></div></div>
|
||||
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_entity_id_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_entity_id.html">Tgstation.Server.Api.Models.EntityId</a></div><div class="ttdoc">Common base of entities with IDs.</div><div class="ttdef"><b>Definition</b> <a href="_entity_id_8cs_source.html#l00006">EntityId.cs:7</a></div></div>
|
||||
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_models_1_1_model_extensions_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_model_extensions.html">Tgstation.Server.Host.Models.ModelExtensions</a></div><div class="ttdoc">Extensions for Models.</div><div class="ttdef"><b>Definition</b> <a href="_model_extensions_8cs_source.html#l00012">ModelExtensions.cs:13</a></div></div>
|
||||
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_models_1_1_model_extensions_html_a7a5a8a45d04a5569979b8bfcc598fc90"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_model_extensions.html#a7a5a8a45d04a5569979b8bfcc598fc90">Tgstation.Server.Host.Models.ModelExtensions.Require< TModel, TProperty ></a></div><div class="ttdeci">static TProperty Require< TModel, TProperty >(this TModel model, Expression< Func< TModel, TProperty?> > accessor)</div><div class="ttdoc">Require a given Nullable<T> property of a given model be non-null.</div><div class="ttdef"><b>Definition</b> <a href="_model_extensions_8cs_source.html#l00023">ModelExtensions.cs:23</a></div></div>
|
||||
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_api_1_1_models_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_api_1_1_models.html">Tgstation.Server.Api.Models</a></div><div class="ttdef"><b>Definition</b> <a href="_tgstation_8_server_8_api_2_models_2_chat_channel_8cs_source.html#l00005">ChatChannel.cs:6</a></div></div>
|
||||
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_models_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_models.html">Tgstation.Server.Host.Models</a></div><div class="ttdef"><b>Definition</b> <a href="_chat_bot_8cs_source.html#l00008">ChatBot.cs:9</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
|
||||
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user