You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

569 lines
33 KiB

  1. <!DOCTYPE html>
  2. <!--[if IE]><![endif]-->
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <title>Class CollectionConverter&lt;T, TCollection&gt;
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class CollectionConverter&lt;T, TCollection&gt;
  11. ">
  12. <meta name="generator" content="docfx 2.48.0.0">
  13. <link rel="shortcut icon" href="../favicon.ico">
  14. <link rel="stylesheet" href="../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../styles/docfx.css">
  16. <link rel="stylesheet" href="../styles/main.css">
  17. <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
  18. <meta property="docfx:navrel" content="../toc.html">
  19. <meta property="docfx:tocrel" content="toc.html">
  20. <meta property="docfx:rel" content="../">
  21. <meta property="docfx:newtab" content="true">
  22. </head> <body data-spy="scroll" data-target="#affix" data-offset="120">
  23. <div id="wrapper">
  24. <header>
  25. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  26. <div class="container">
  27. <div class="navbar-header">
  28. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  29. <span class="sr-only">Toggle navigation</span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. <span class="icon-bar"></span>
  33. </button>
  34. <a class="navbar-brand" href="../index.html">
  35. <img id="logo" class="svg" src="../logo.svg" alt="">
  36. </a>
  37. </div>
  38. <div class="collapse navbar-collapse" id="navbar">
  39. <form class="navbar-form navbar-right" role="search" id="search">
  40. <div class="form-group">
  41. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  42. </div>
  43. </form>
  44. </div>
  45. </div>
  46. </nav>
  47. <div class="subnav navbar navbar-default">
  48. <div class="container hide-when-search" id="breadcrumb">
  49. <ul class="breadcrumb">
  50. <li></li>
  51. </ul>
  52. </div>
  53. </div>
  54. </header>
  55. <div class="container body-content">
  56. <div id="search-results">
  57. <div class="search-list"></div>
  58. <div class="sr-items">
  59. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  60. </div>
  61. <ul id="pagination"></ul>
  62. </div>
  63. </div>
  64. <div role="main" class="container body-content hide-when-search">
  65. <div class="sidenav hide-when-search">
  66. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  67. <div class="sidetoggle collapse" id="sidetoggle">
  68. <div id="sidetoc"></div>
  69. </div>
  70. </div>
  71. <div class="article row grid-right">
  72. <div class="col-md-10">
  73. <article class="content wrap" id="_content" data-uid="IPA.Config.Stores.Converters.CollectionConverter`2">
  74. <h1 id="IPA_Config_Stores_Converters_CollectionConverter_2" data-uid="IPA.Config.Stores.Converters.CollectionConverter`2" class="text-break">Class CollectionConverter&lt;T, TCollection&gt;
  75. </h1>
  76. <div class="markdown level0 summary"><p>A base class for all <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection&lt;T&gt;</a> type converters, providing most of the functionality.</p>
  77. </div>
  78. <div class="markdown level0 conceptual"></div>
  79. <div class="inheritance">
  80. <h5>Inheritance</h5>
  81. <div class="level0"><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a></div>
  82. <div class="level1"><a class="xref" href="IPA.Config.Stores.ValueConverter-1.html">ValueConverter</a>&lt;TCollection&gt;</div>
  83. <div class="level2"><span class="xref">CollectionConverter&lt;T, TCollection&gt;</span></div>
  84. <div class="level3"><a class="xref" href="IPA.Config.Stores.Converters.CollectionConverter-3.html">CollectionConverter&lt;T, TCollection, TConverter&gt;</a></div>
  85. <div class="level3"><a class="xref" href="IPA.Config.Stores.Converters.IListConverter-1.html">IListConverter&lt;T&gt;</a></div>
  86. <div class="level3"><a class="xref" href="IPA.Config.Stores.Converters.ISetConverter-1.html">ISetConverter&lt;T&gt;</a></div>
  87. <div class="level3"><a class="xref" href="IPA.Config.Stores.Converters.ListConverter-1.html">ListConverter&lt;T&gt;</a></div>
  88. </div>
  89. <div classs="implements">
  90. <h5>Implements</h5>
  91. <div><a class="xref" href="IPA.Config.Stores.IValueConverter.html">IValueConverter</a></div>
  92. </div>
  93. <div class="inheritedMembers">
  94. <h5>Inherited Members</h5>
  95. <div>
  96. <a class="xref" href="IPA.Config.Stores.ValueConverter-1.html#IPA_Config_Stores_ValueConverter_1_IPA_Config_Stores_IValueConverter_ToValue_System_Object_System_Object_">ValueConverter&lt;TCollection&gt;.IValueConverter.ToValue(Object, Object)</a>
  97. </div>
  98. <div>
  99. <a class="xref" href="IPA.Config.Stores.ValueConverter-1.html#IPA_Config_Stores_ValueConverter_1_IPA_Config_Stores_IValueConverter_FromValue_IPA_Config_Data_Value_System_Object_">ValueConverter&lt;TCollection&gt;.IValueConverter.FromValue(Value, Object)</a>
  100. </div>
  101. <div>
  102. <a class="xref" href="IPA.Config.Stores.ValueConverter-1.html#IPA_Config_Stores_ValueConverter_1_IPA_Config_Stores_IValueConverter_Type">ValueConverter&lt;TCollection&gt;.IValueConverter.Type</a>
  103. </div>
  104. <div>
  105. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.tostring#System_Object_ToString">Object.ToString()</a>
  106. </div>
  107. <div>
  108. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.equals#System_Object_Equals_System_Object_">Object.Equals(Object)</a>
  109. </div>
  110. <div>
  111. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.equals#System_Object_Equals_System_Object_System_Object_">Object.Equals(Object, Object)</a>
  112. </div>
  113. <div>
  114. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.referenceequals#System_Object_ReferenceEquals_System_Object_System_Object_">Object.ReferenceEquals(Object, Object)</a>
  115. </div>
  116. <div>
  117. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.gethashcode#System_Object_GetHashCode">Object.GetHashCode()</a>
  118. </div>
  119. <div>
  120. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.gettype#System_Object_GetType">Object.GetType()</a>
  121. </div>
  122. <div>
  123. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.memberwiseclone#System_Object_MemberwiseClone">Object.MemberwiseClone()</a>
  124. </div>
  125. </div>
  126. <h6><strong>Namespace</strong>: <a class="xref" href="IPA.Config.Stores.Converters.html">IPA.Config.Stores.Converters</a></h6>
  127. <h6><strong>Assembly</strong>: IPA.Loader.dll</h6>
  128. <h5 id="IPA_Config_Stores_Converters_CollectionConverter_2_syntax">Syntax</h5>
  129. <div class="codewrapper">
  130. <pre><code class="lang-csharp hljs">public class CollectionConverter&lt;T, TCollection&gt; : ValueConverter&lt;TCollection&gt;, IValueConverter where TCollection : ICollection&lt;T&gt;</code></pre>
  131. </div>
  132. <h5 class="typeParameters">Type Parameters</h5>
  133. <table class="table table-bordered table-striped table-condensed">
  134. <thead>
  135. <tr>
  136. <th>Name</th>
  137. <th>Description</th>
  138. </tr>
  139. </thead>
  140. <tbody>
  141. <tr>
  142. <td><span class="parametername">T</span></td>
  143. <td><p>the type of the items in the collection</p>
  144. </td>
  145. </tr>
  146. <tr>
  147. <td><span class="parametername">TCollection</span></td>
  148. <td><p>the instantiated type of collection</p>
  149. </td>
  150. </tr>
  151. </tbody>
  152. </table>
  153. <h3 id="constructors">Constructors
  154. </h3>
  155. <span class="small pull-right mobile-hide">
  156. <span class="divider">|</span>
  157. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/4.0.0-beta/docs/override/new?filename=IPA_Config_Stores_Converters_CollectionConverter_2__ctor.md&amp;value=---%0Auid%3A%20IPA.Config.Stores.Converters.CollectionConverter%602.%23ctor%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  158. </span>
  159. <span class="small pull-right mobile-hide">
  160. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/9705692cbf53e5b1f7667f378696cf6ea482054b/IPA.Loader/Config/Stores/CollectionConverter.cs/#L24">View Source</a>
  161. </span>
  162. <a id="IPA_Config_Stores_Converters_CollectionConverter_2__ctor_" data-uid="IPA.Config.Stores.Converters.CollectionConverter`2.#ctor*"></a>
  163. <h4 id="IPA_Config_Stores_Converters_CollectionConverter_2__ctor" data-uid="IPA.Config.Stores.Converters.CollectionConverter`2.#ctor">CollectionConverter()</h4>
  164. <div class="markdown level1 summary"><p>Creates a <a class="xref" href="IPA.Config.Stores.Converters.CollectionConverter-2.html">CollectionConverter&lt;T, TCollection&gt;</a> using the default converter for the
  165. element type. Equivalent to calling <a class="xref" href="IPA.Config.Stores.Converters.CollectionConverter-2.html#IPA_Config_Stores_Converters_CollectionConverter_2__ctor_IPA_Config_Stores_ValueConverter__0__">CollectionConverter(ValueConverter&lt;T&gt;)</a>
  166. with <a class="xref" href="IPA.Config.Stores.Converters.Converter-1.html#IPA_Config_Stores_Converters_Converter_1_Default">Default</a>.</p>
  167. </div>
  168. <div class="markdown level1 conceptual"></div>
  169. <h5 class="decalaration">Declaration</h5>
  170. <div class="codewrapper">
  171. <pre><code class="lang-csharp hljs">public CollectionConverter()</code></pre>
  172. </div>
  173. <h5 id="IPA_Config_Stores_Converters_CollectionConverter_2__ctor_seealso">See Also</h5>
  174. <div class="seealso">
  175. <div><a class="xref" href="IPA.Config.Stores.Converters.CollectionConverter-2.html#IPA_Config_Stores_Converters_CollectionConverter_2__ctor_IPA_Config_Stores_ValueConverter__0__">CollectionConverter(ValueConverter&lt;T&gt;)</a></div>
  176. </div>
  177. <span class="small pull-right mobile-hide">
  178. <span class="divider">|</span>
  179. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/4.0.0-beta/docs/override/new?filename=IPA_Config_Stores_Converters_CollectionConverter_2__ctor_IPA_Config_Stores_ValueConverter__0__.md&amp;value=---%0Auid%3A%20IPA.Config.Stores.Converters.CollectionConverter%602.%23ctor(IPA.Config.Stores.ValueConverter%7B%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  180. </span>
  181. <span class="small pull-right mobile-hide">
  182. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/9705692cbf53e5b1f7667f378696cf6ea482054b/IPA.Loader/Config/Stores/CollectionConverter.cs/#L29">View Source</a>
  183. </span>
  184. <a id="IPA_Config_Stores_Converters_CollectionConverter_2__ctor_" data-uid="IPA.Config.Stores.Converters.CollectionConverter`2.#ctor*"></a>
  185. <h4 id="IPA_Config_Stores_Converters_CollectionConverter_2__ctor_IPA_Config_Stores_ValueConverter__0__" data-uid="IPA.Config.Stores.Converters.CollectionConverter`2.#ctor(IPA.Config.Stores.ValueConverter{`0})">CollectionConverter(ValueConverter&lt;T&gt;)</h4>
  186. <div class="markdown level1 summary"><p>Creates a <a class="xref" href="IPA.Config.Stores.Converters.CollectionConverter-2.html">CollectionConverter&lt;T, TCollection&gt;</a> using the specified underlying converter.</p>
  187. </div>
  188. <div class="markdown level1 conceptual"></div>
  189. <h5 class="decalaration">Declaration</h5>
  190. <div class="codewrapper">
  191. <pre><code class="lang-csharp hljs">public CollectionConverter(ValueConverter&lt;T&gt; underlying)</code></pre>
  192. </div>
  193. <h5 class="parameters">Parameters</h5>
  194. <table class="table table-bordered table-striped table-condensed">
  195. <thead>
  196. <tr>
  197. <th>Type</th>
  198. <th>Name</th>
  199. <th>Description</th>
  200. </tr>
  201. </thead>
  202. <tbody>
  203. <tr>
  204. <td><a class="xref" href="IPA.Config.Stores.ValueConverter-1.html">ValueConverter</a>&lt;T&gt;</td>
  205. <td><span class="parametername">underlying</span></td>
  206. <td><p>the <a class="xref" href="IPA.Config.Stores.ValueConverter-1.html">ValueConverter&lt;T&gt;</a> to use to convert the values</p>
  207. </td>
  208. </tr>
  209. </tbody>
  210. </table>
  211. <h3 id="properties">Properties
  212. </h3>
  213. <span class="small pull-right mobile-hide">
  214. <span class="divider">|</span>
  215. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/4.0.0-beta/docs/override/new?filename=IPA_Config_Stores_Converters_CollectionConverter_2_BaseConverter.md&amp;value=---%0Auid%3A%20IPA.Config.Stores.Converters.CollectionConverter%602.BaseConverter%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  216. </span>
  217. <span class="small pull-right mobile-hide">
  218. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/9705692cbf53e5b1f7667f378696cf6ea482054b/IPA.Loader/Config/Stores/CollectionConverter.cs/#L35">View Source</a>
  219. </span>
  220. <a id="IPA_Config_Stores_Converters_CollectionConverter_2_BaseConverter_" data-uid="IPA.Config.Stores.Converters.CollectionConverter`2.BaseConverter*"></a>
  221. <h4 id="IPA_Config_Stores_Converters_CollectionConverter_2_BaseConverter" data-uid="IPA.Config.Stores.Converters.CollectionConverter`2.BaseConverter">BaseConverter</h4>
  222. <div class="markdown level1 summary"><p>Gets the converter for the collection&apos;s value type.</p>
  223. </div>
  224. <div class="markdown level1 conceptual"></div>
  225. <h5 class="decalaration">Declaration</h5>
  226. <div class="codewrapper">
  227. <pre><code class="lang-csharp hljs">protected ValueConverter&lt;T&gt; BaseConverter { get; }</code></pre>
  228. </div>
  229. <h5 class="propertyValue">Property Value</h5>
  230. <table class="table table-bordered table-striped table-condensed">
  231. <thead>
  232. <tr>
  233. <th>Type</th>
  234. <th>Description</th>
  235. </tr>
  236. </thead>
  237. <tbody>
  238. <tr>
  239. <td><a class="xref" href="IPA.Config.Stores.ValueConverter-1.html">ValueConverter</a>&lt;T&gt;</td>
  240. <td></td>
  241. </tr>
  242. </tbody>
  243. </table>
  244. <h3 id="methods">Methods
  245. </h3>
  246. <span class="small pull-right mobile-hide">
  247. <span class="divider">|</span>
  248. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/4.0.0-beta/docs/override/new?filename=IPA_Config_Stores_Converters_CollectionConverter_2_Create_System_Int32_System_Object_.md&amp;value=---%0Auid%3A%20IPA.Config.Stores.Converters.CollectionConverter%602.Create(System.Int32%2CSystem.Object)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  249. </span>
  250. <span class="small pull-right mobile-hide">
  251. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/9705692cbf53e5b1f7667f378696cf6ea482054b/IPA.Loader/Config/Stores/CollectionConverter.cs/#L44">View Source</a>
  252. </span>
  253. <a id="IPA_Config_Stores_Converters_CollectionConverter_2_Create_" data-uid="IPA.Config.Stores.Converters.CollectionConverter`2.Create*"></a>
  254. <h4 id="IPA_Config_Stores_Converters_CollectionConverter_2_Create_System_Int32_System_Object_" data-uid="IPA.Config.Stores.Converters.CollectionConverter`2.Create(System.Int32,System.Object)">Create(Int32, Object)</h4>
  255. <div class="markdown level1 summary"><p>Creates a collection of type <code data-dev-comment-type="typeparamref" class="typeparamref">TCollection</code> using the <code data-dev-comment-type="paramref" class="paramref">size</code> and
  256. <code data-dev-comment-type="paramref" class="paramref">parent</code>.</p>
  257. </div>
  258. <div class="markdown level1 conceptual"></div>
  259. <h5 class="decalaration">Declaration</h5>
  260. <div class="codewrapper">
  261. <pre><code class="lang-csharp hljs">protected virtual TCollection Create(int size, object parent)</code></pre>
  262. </div>
  263. <h5 class="parameters">Parameters</h5>
  264. <table class="table table-bordered table-striped table-condensed">
  265. <thead>
  266. <tr>
  267. <th>Type</th>
  268. <th>Name</th>
  269. <th>Description</th>
  270. </tr>
  271. </thead>
  272. <tbody>
  273. <tr>
  274. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
  275. <td><span class="parametername">size</span></td>
  276. <td><p>the initial size of the collecion</p>
  277. </td>
  278. </tr>
  279. <tr>
  280. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a></td>
  281. <td><span class="parametername">parent</span></td>
  282. <td><p>the object that will own the new collection</p>
  283. </td>
  284. </tr>
  285. </tbody>
  286. </table>
  287. <h5 class="returns">Returns</h5>
  288. <table class="table table-bordered table-striped table-condensed">
  289. <thead>
  290. <tr>
  291. <th>Type</th>
  292. <th>Description</th>
  293. </tr>
  294. </thead>
  295. <tbody>
  296. <tr>
  297. <td><span class="xref">TCollection</span></td>
  298. <td><p>a new instance of <code data-dev-comment-type="typeparamref" class="typeparamref">TCollection</code></p>
  299. </td>
  300. </tr>
  301. </tbody>
  302. </table>
  303. <h5 id="IPA_Config_Stores_Converters_CollectionConverter_2_Create_System_Int32_System_Object__seealso">See Also</h5>
  304. <div class="seealso">
  305. <div><a class="xref" href="IPA.Config.Stores.ValueConverter-1.html#IPA_Config_Stores_ValueConverter_1_FromValue_IPA_Config_Data_Value_System_Object_">FromValue</a>(<a class="xref" href="IPA.Config.Data.Value.html">Value</a>, <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a>)</div>
  306. </div>
  307. <span class="small pull-right mobile-hide">
  308. <span class="divider">|</span>
  309. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/4.0.0-beta/docs/override/new?filename=IPA_Config_Stores_Converters_CollectionConverter_2_FromValue_IPA_Config_Data_Value_System_Object_.md&amp;value=---%0Auid%3A%20IPA.Config.Stores.Converters.CollectionConverter%602.FromValue(IPA.Config.Data.Value%2CSystem.Object)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  310. </span>
  311. <span class="small pull-right mobile-hide">
  312. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/9705692cbf53e5b1f7667f378696cf6ea482054b/IPA.Loader/Config/Stores/CollectionConverter.cs/#L67">View Source</a>
  313. </span>
  314. <a id="IPA_Config_Stores_Converters_CollectionConverter_2_FromValue_" data-uid="IPA.Config.Stores.Converters.CollectionConverter`2.FromValue*"></a>
  315. <h4 id="IPA_Config_Stores_Converters_CollectionConverter_2_FromValue_IPA_Config_Data_Value_System_Object_" data-uid="IPA.Config.Stores.Converters.CollectionConverter`2.FromValue(IPA.Config.Data.Value,System.Object)">FromValue(Value, Object)</h4>
  316. <div class="markdown level1 summary"><p>Deserializes a <a class="xref" href="IPA.Config.Data.List.html">List</a> in <code data-dev-comment-type="paramref" class="paramref">value</code> into a new <code data-dev-comment-type="typeparamref" class="typeparamref">TCollection</code>
  317. owned by <code data-dev-comment-type="paramref" class="paramref">parent</code>.</p>
  318. </div>
  319. <div class="markdown level1 conceptual"></div>
  320. <h5 class="decalaration">Declaration</h5>
  321. <div class="codewrapper">
  322. <pre><code class="lang-csharp hljs">public override TCollection FromValue(Value value, object parent)</code></pre>
  323. </div>
  324. <h5 class="parameters">Parameters</h5>
  325. <table class="table table-bordered table-striped table-condensed">
  326. <thead>
  327. <tr>
  328. <th>Type</th>
  329. <th>Name</th>
  330. <th>Description</th>
  331. </tr>
  332. </thead>
  333. <tbody>
  334. <tr>
  335. <td><a class="xref" href="IPA.Config.Data.Value.html">Value</a></td>
  336. <td><span class="parametername">value</span></td>
  337. <td><p>the <a class="xref" href="IPA.Config.Data.List.html">List</a> to convert to a <code data-dev-comment-type="typeparamref" class="typeparamref">TCollection</code></p>
  338. </td>
  339. </tr>
  340. <tr>
  341. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a></td>
  342. <td><span class="parametername">parent</span></td>
  343. <td><p>the object that will own the resulting <code data-dev-comment-type="typeparamref" class="typeparamref">TCollection</code></p>
  344. </td>
  345. </tr>
  346. </tbody>
  347. </table>
  348. <h5 class="returns">Returns</h5>
  349. <table class="table table-bordered table-striped table-condensed">
  350. <thead>
  351. <tr>
  352. <th>Type</th>
  353. <th>Description</th>
  354. </tr>
  355. </thead>
  356. <tbody>
  357. <tr>
  358. <td><span class="xref">TCollection</span></td>
  359. <td><p>a new <code data-dev-comment-type="typeparamref" class="typeparamref">TCollection</code> holding the deserialized content of <code data-dev-comment-type="paramref" class="paramref">value</code></p>
  360. </td>
  361. </tr>
  362. </tbody>
  363. </table>
  364. <h5 class="overrides">Overrides</h5>
  365. <div><span class="xref">IPA.Config.Stores.ValueConverter&lt;TCollection&gt;.FromValue(IPA.Config.Data.Value, System.Object)</span></div>
  366. <h5 id="IPA_Config_Stores_Converters_CollectionConverter_2_FromValue_IPA_Config_Data_Value_System_Object__seealso">See Also</h5>
  367. <div class="seealso">
  368. <div><a class="xref" href="IPA.Config.Stores.ValueConverter-1.html#IPA_Config_Stores_ValueConverter_1_FromValue_IPA_Config_Data_Value_System_Object_">FromValue</a>(<a class="xref" href="IPA.Config.Data.Value.html">Value</a>, <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a>)</div>
  369. </div>
  370. <span class="small pull-right mobile-hide">
  371. <span class="divider">|</span>
  372. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/4.0.0-beta/docs/override/new?filename=IPA_Config_Stores_Converters_CollectionConverter_2_PopulateFromValue__1_IPA_Config_Data_List_System_Object_.md&amp;value=---%0Auid%3A%20IPA.Config.Stores.Converters.CollectionConverter%602.PopulateFromValue(%601%2CIPA.Config.Data.List%2CSystem.Object)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  373. </span>
  374. <span class="small pull-right mobile-hide">
  375. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/9705692cbf53e5b1f7667f378696cf6ea482054b/IPA.Loader/Config/Stores/CollectionConverter.cs/#L54">View Source</a>
  376. </span>
  377. <a id="IPA_Config_Stores_Converters_CollectionConverter_2_PopulateFromValue_" data-uid="IPA.Config.Stores.Converters.CollectionConverter`2.PopulateFromValue*"></a>
  378. <h4 id="IPA_Config_Stores_Converters_CollectionConverter_2_PopulateFromValue__1_IPA_Config_Data_List_System_Object_" data-uid="IPA.Config.Stores.Converters.CollectionConverter`2.PopulateFromValue(`1,IPA.Config.Data.List,System.Object)">PopulateFromValue(TCollection, List, Object)</h4>
  379. <div class="markdown level1 summary"><p>Populates the colleciton <code data-dev-comment-type="paramref" class="paramref">col</code> with the deserialized values from <code data-dev-comment-type="paramref" class="paramref">list</code>
  380. with the parent <code data-dev-comment-type="paramref" class="paramref">parent</code>.</p>
  381. </div>
  382. <div class="markdown level1 conceptual"></div>
  383. <h5 class="decalaration">Declaration</h5>
  384. <div class="codewrapper">
  385. <pre><code class="lang-csharp hljs">protected void PopulateFromValue(TCollection col, List list, object parent)</code></pre>
  386. </div>
  387. <h5 class="parameters">Parameters</h5>
  388. <table class="table table-bordered table-striped table-condensed">
  389. <thead>
  390. <tr>
  391. <th>Type</th>
  392. <th>Name</th>
  393. <th>Description</th>
  394. </tr>
  395. </thead>
  396. <tbody>
  397. <tr>
  398. <td><span class="xref">TCollection</span></td>
  399. <td><span class="parametername">col</span></td>
  400. <td><p>the collection to populate</p>
  401. </td>
  402. </tr>
  403. <tr>
  404. <td><a class="xref" href="IPA.Config.Data.List.html">List</a></td>
  405. <td><span class="parametername">list</span></td>
  406. <td><p>the values to populate it with</p>
  407. </td>
  408. </tr>
  409. <tr>
  410. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a></td>
  411. <td><span class="parametername">parent</span></td>
  412. <td><p>the object that will own the new objects</p>
  413. </td>
  414. </tr>
  415. </tbody>
  416. </table>
  417. <h5 id="IPA_Config_Stores_Converters_CollectionConverter_2_PopulateFromValue__1_IPA_Config_Data_List_System_Object__seealso">See Also</h5>
  418. <div class="seealso">
  419. <div><a class="xref" href="IPA.Config.Stores.ValueConverter-1.html#IPA_Config_Stores_ValueConverter_1_FromValue_IPA_Config_Data_Value_System_Object_">FromValue</a>(<a class="xref" href="IPA.Config.Data.Value.html">Value</a>, <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a>)</div>
  420. </div>
  421. <span class="small pull-right mobile-hide">
  422. <span class="divider">|</span>
  423. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/4.0.0-beta/docs/override/new?filename=IPA_Config_Stores_Converters_CollectionConverter_2_ToValue__1_System_Object_.md&amp;value=---%0Auid%3A%20IPA.Config.Stores.Converters.CollectionConverter%602.ToValue(%601%2CSystem.Object)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  424. </span>
  425. <span class="small pull-right mobile-hide">
  426. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/9705692cbf53e5b1f7667f378696cf6ea482054b/IPA.Loader/Config/Stores/CollectionConverter.cs/#L82">View Source</a>
  427. </span>
  428. <a id="IPA_Config_Stores_Converters_CollectionConverter_2_ToValue_" data-uid="IPA.Config.Stores.Converters.CollectionConverter`2.ToValue*"></a>
  429. <h4 id="IPA_Config_Stores_Converters_CollectionConverter_2_ToValue__1_System_Object_" data-uid="IPA.Config.Stores.Converters.CollectionConverter`2.ToValue(`1,System.Object)">ToValue(TCollection, Object)</h4>
  430. <div class="markdown level1 summary"><p>Serializes a <code data-dev-comment-type="typeparamref" class="typeparamref">TCollection</code> into a <a class="xref" href="IPA.Config.Data.List.html">List</a>.</p>
  431. </div>
  432. <div class="markdown level1 conceptual"></div>
  433. <h5 class="decalaration">Declaration</h5>
  434. <div class="codewrapper">
  435. <pre><code class="lang-csharp hljs">public override Value ToValue(TCollection obj, object parent)</code></pre>
  436. </div>
  437. <h5 class="parameters">Parameters</h5>
  438. <table class="table table-bordered table-striped table-condensed">
  439. <thead>
  440. <tr>
  441. <th>Type</th>
  442. <th>Name</th>
  443. <th>Description</th>
  444. </tr>
  445. </thead>
  446. <tbody>
  447. <tr>
  448. <td><span class="xref">TCollection</span></td>
  449. <td><span class="parametername">obj</span></td>
  450. <td><p>the <code data-dev-comment-type="typeparamref" class="typeparamref">TCollection</code> to serialize</p>
  451. </td>
  452. </tr>
  453. <tr>
  454. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a></td>
  455. <td><span class="parametername">parent</span></td>
  456. <td><p>the object owning <code data-dev-comment-type="paramref" class="paramref">obj</code></p>
  457. </td>
  458. </tr>
  459. </tbody>
  460. </table>
  461. <h5 class="returns">Returns</h5>
  462. <table class="table table-bordered table-striped table-condensed">
  463. <thead>
  464. <tr>
  465. <th>Type</th>
  466. <th>Description</th>
  467. </tr>
  468. </thead>
  469. <tbody>
  470. <tr>
  471. <td><a class="xref" href="IPA.Config.Data.Value.html">Value</a></td>
  472. <td><p>the <a class="xref" href="IPA.Config.Data.List.html">List</a> that <code data-dev-comment-type="paramref" class="paramref">obj</code> was serialized into</p>
  473. </td>
  474. </tr>
  475. </tbody>
  476. </table>
  477. <h5 class="overrides">Overrides</h5>
  478. <div><span class="xref">IPA.Config.Stores.ValueConverter&lt;TCollection&gt;.ToValue(TCollection, System.Object)</span></div>
  479. <h5 id="IPA_Config_Stores_Converters_CollectionConverter_2_ToValue__1_System_Object__seealso">See Also</h5>
  480. <div class="seealso">
  481. <div><a class="xref" href="IPA.Config.Stores.ValueConverter-1.html#IPA_Config_Stores_ValueConverter_1_ToValue__0_System_Object_">ToValue</a>(T, <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a>)</div>
  482. </div>
  483. <h3 id="implements">Implements</h3>
  484. <div>
  485. <a class="xref" href="IPA.Config.Stores.IValueConverter.html">IValueConverter</a>
  486. </div>
  487. <h3 id="extensionmethods">Extension Methods</h3>
  488. <div>
  489. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetField_System_Object_System_String_System_Object_">ReflectionUtil.SetField(Object, String, Object)</a>
  490. </div>
  491. <div>
  492. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetField__1___0_System_String_System_Object_">ReflectionUtil.SetField&lt;T&gt;(T, String, Object)</a>
  493. </div>
  494. <div>
  495. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_GetField__1_System_Object_System_String_">ReflectionUtil.GetField&lt;T&gt;(Object, String)</a>
  496. </div>
  497. <div>
  498. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_GetField__2___1_System_String_">ReflectionUtil.GetField&lt;T, U&gt;(U, String)</a>
  499. </div>
  500. <div>
  501. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetProperty_System_Object_System_String_System_Object_">ReflectionUtil.SetProperty(Object, String, Object)</a>
  502. </div>
  503. <div>
  504. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetProperty__1___0_System_String_System_Object_">ReflectionUtil.SetProperty&lt;T&gt;(T, String, Object)</a>
  505. </div>
  506. <div>
  507. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokeMethod_System_Object_System_String_System_Object___">ReflectionUtil.InvokeMethod(Object, String, Object[])</a>
  508. </div>
  509. <div>
  510. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokeMethod__1___0_System_String_System_Object___">ReflectionUtil.InvokeMethod&lt;T&gt;(T, String, Object[])</a>
  511. </div>
  512. <div>
  513. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokeMethod__1_System_Object_System_String_System_Object___">ReflectionUtil.InvokeMethod&lt;T&gt;(Object, String, Object[])</a>
  514. </div>
  515. <div>
  516. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokeMethod__2___1_System_String_System_Object___">ReflectionUtil.InvokeMethod&lt;T, U&gt;(U, String, Object[])</a>
  517. </div>
  518. </article>
  519. </div>
  520. <div class="hidden-sm col-md-2" role="complementary">
  521. <div class="sideaffix">
  522. <div class="contribution">
  523. <ul class="nav">
  524. <li>
  525. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/4.0.0-beta/docs/override/new?filename=IPA_Config_Stores_Converters_CollectionConverter_2.md&amp;value=---%0Auid%3A%20IPA.Config.Stores.Converters.CollectionConverter%602%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
  526. </li>
  527. <li>
  528. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/9705692cbf53e5b1f7667f378696cf6ea482054b/IPA.Loader/Config/Stores/CollectionConverter.cs/#L15" class="contribution-link">View Source</a>
  529. </li>
  530. </ul>
  531. </div>
  532. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  533. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  534. </nav>
  535. </div>
  536. </div>
  537. </div>
  538. </div>
  539. <footer>
  540. <div class="grad-bottom"></div>
  541. <div class="footer">
  542. <div class="container">
  543. <span class="pull-right">
  544. <a href="#top">Back to top</a>
  545. </span>
  546. <span>Generated by <strong>DocFX</strong></span>
  547. </div>
  548. </div>
  549. </footer>
  550. </div>
  551. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  552. <script type="text/javascript" src="../styles/docfx.js"></script>
  553. <script type="text/javascript" src="../styles/main.js"></script>
  554. </body>
  555. </html>