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.

556 lines
31 KiB

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