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.

534 lines
30 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.59.3.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 <see cref="!:ICollection&lt;T>"></see> 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"><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a></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.ListConverter-1.html">ListConverter&lt;T&gt;</a></div>
  88. </div>
  89. <div class="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_Nullable_System_Object__System_Object_">ValueConverter&lt;TCollection&gt;.IValueConverter.ToValue(Nullable&lt;Object&gt;, 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. <h6><strong>Namespace</strong>: <a class="xref" href="IPA.Config.Stores.Converters.html">IPA.Config.Stores.Converters</a></h6>
  106. <h6><strong>Assembly</strong>: IPA.Loader.dll</h6>
  107. <h5 id="IPA_Config_Stores_Converters_CollectionConverter_2_syntax">Syntax</h5>
  108. <div class="codewrapper">
  109. <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>
  110. </div>
  111. <h5 class="typeParameters">Type Parameters</h5>
  112. <table class="table table-bordered table-striped table-condensed">
  113. <thead>
  114. <tr>
  115. <th>Name</th>
  116. <th>Description</th>
  117. </tr>
  118. </thead>
  119. <tbody>
  120. <tr>
  121. <td><span class="parametername">T</span></td>
  122. <td><p>the type of the items in the collection</p>
  123. </td>
  124. </tr>
  125. <tr>
  126. <td><span class="parametername">TCollection</span></td>
  127. <td><p>the instantiated type of collection</p>
  128. </td>
  129. </tr>
  130. </tbody>
  131. </table>
  132. <h3 id="constructors">Constructors
  133. </h3>
  134. <span class="small pull-right mobile-hide">
  135. <span class="divider">|</span>
  136. <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>
  137. </span>
  138. <span class="small pull-right mobile-hide">
  139. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Config/Stores/CollectionConverter.cs/#L26">View Source</a>
  140. </span>
  141. <a id="IPA_Config_Stores_Converters_CollectionConverter_2__ctor_" data-uid="IPA.Config.Stores.Converters.CollectionConverter`2.#ctor*"></a>
  142. <h4 id="IPA_Config_Stores_Converters_CollectionConverter_2__ctor" data-uid="IPA.Config.Stores.Converters.CollectionConverter`2.#ctor">CollectionConverter()</h4>
  143. <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
  144. 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>
  145. with <a class="xref" href="IPA.Config.Stores.Converters.Converter-1.html#IPA_Config_Stores_Converters_Converter_1_Default">Default</a>.</p>
  146. </div>
  147. <div class="markdown level1 conceptual"></div>
  148. <h5 class="decalaration">Declaration</h5>
  149. <div class="codewrapper">
  150. <pre><code class="lang-csharp hljs">public CollectionConverter()</code></pre>
  151. </div>
  152. <h5 id="IPA_Config_Stores_Converters_CollectionConverter_2__ctor_seealso">See Also</h5>
  153. <div class="seealso">
  154. <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>
  155. </div>
  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_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>
  159. </span>
  160. <span class="small pull-right mobile-hide">
  161. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Config/Stores/CollectionConverter.cs/#L31">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_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>
  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 specified underlying converter.</p>
  166. </div>
  167. <div class="markdown level1 conceptual"></div>
  168. <h5 class="decalaration">Declaration</h5>
  169. <div class="codewrapper">
  170. <pre><code class="lang-csharp hljs">public CollectionConverter(ValueConverter&lt;T&gt; underlying)</code></pre>
  171. </div>
  172. <h5 class="parameters">Parameters</h5>
  173. <table class="table table-bordered table-striped table-condensed">
  174. <thead>
  175. <tr>
  176. <th>Type</th>
  177. <th>Name</th>
  178. <th>Description</th>
  179. </tr>
  180. </thead>
  181. <tbody>
  182. <tr>
  183. <td><a class="xref" href="IPA.Config.Stores.ValueConverter-1.html">ValueConverter</a>&lt;T&gt;</td>
  184. <td><span class="parametername">underlying</span></td>
  185. <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>
  186. </td>
  187. </tr>
  188. </tbody>
  189. </table>
  190. <h3 id="properties">Properties
  191. </h3>
  192. <span class="small pull-right mobile-hide">
  193. <span class="divider">|</span>
  194. <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>
  195. </span>
  196. <span class="small pull-right mobile-hide">
  197. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Config/Stores/CollectionConverter.cs/#L37">View Source</a>
  198. </span>
  199. <a id="IPA_Config_Stores_Converters_CollectionConverter_2_BaseConverter_" data-uid="IPA.Config.Stores.Converters.CollectionConverter`2.BaseConverter*"></a>
  200. <h4 id="IPA_Config_Stores_Converters_CollectionConverter_2_BaseConverter" data-uid="IPA.Config.Stores.Converters.CollectionConverter`2.BaseConverter">BaseConverter</h4>
  201. <div class="markdown level1 summary"><p>Gets the converter for the collection&apos;s value type.</p>
  202. </div>
  203. <div class="markdown level1 conceptual"></div>
  204. <h5 class="decalaration">Declaration</h5>
  205. <div class="codewrapper">
  206. <pre><code class="lang-csharp hljs">protected ValueConverter&lt;T&gt; BaseConverter { get; }</code></pre>
  207. </div>
  208. <h5 class="propertyValue">Property Value</h5>
  209. <table class="table table-bordered table-striped table-condensed">
  210. <thead>
  211. <tr>
  212. <th>Type</th>
  213. <th>Description</th>
  214. </tr>
  215. </thead>
  216. <tbody>
  217. <tr>
  218. <td><a class="xref" href="IPA.Config.Stores.ValueConverter-1.html">ValueConverter</a>&lt;T&gt;</td>
  219. <td></td>
  220. </tr>
  221. </tbody>
  222. </table>
  223. <h3 id="methods">Methods
  224. </h3>
  225. <span class="small pull-right mobile-hide">
  226. <span class="divider">|</span>
  227. <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>
  228. </span>
  229. <span class="small pull-right mobile-hide">
  230. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Config/Stores/CollectionConverter.cs/#L46">View Source</a>
  231. </span>
  232. <a id="IPA_Config_Stores_Converters_CollectionConverter_2_Create_" data-uid="IPA.Config.Stores.Converters.CollectionConverter`2.Create*"></a>
  233. <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>
  234. <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
  235. <code data-dev-comment-type="paramref" class="paramref">parent</code>.</p>
  236. </div>
  237. <div class="markdown level1 conceptual"></div>
  238. <h5 class="decalaration">Declaration</h5>
  239. <div class="codewrapper">
  240. <pre><code class="lang-csharp hljs">protected virtual TCollection Create(int size, object parent)</code></pre>
  241. </div>
  242. <h5 class="parameters">Parameters</h5>
  243. <table class="table table-bordered table-striped table-condensed">
  244. <thead>
  245. <tr>
  246. <th>Type</th>
  247. <th>Name</th>
  248. <th>Description</th>
  249. </tr>
  250. </thead>
  251. <tbody>
  252. <tr>
  253. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
  254. <td><span class="parametername">size</span></td>
  255. <td><p>the initial size of the collecion</p>
  256. </td>
  257. </tr>
  258. <tr>
  259. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a></td>
  260. <td><span class="parametername">parent</span></td>
  261. <td><p>the object that will own the new collection</p>
  262. </td>
  263. </tr>
  264. </tbody>
  265. </table>
  266. <h5 class="returns">Returns</h5>
  267. <table class="table table-bordered table-striped table-condensed">
  268. <thead>
  269. <tr>
  270. <th>Type</th>
  271. <th>Description</th>
  272. </tr>
  273. </thead>
  274. <tbody>
  275. <tr>
  276. <td><span class="xref">TCollection</span></td>
  277. <td><p>a new instance of <code data-dev-comment-type="typeparamref" class="typeparamref">TCollection</code></p>
  278. </td>
  279. </tr>
  280. </tbody>
  281. </table>
  282. <h5 id="IPA_Config_Stores_Converters_CollectionConverter_2_Create_System_Int32_System_Object__seealso">See Also</h5>
  283. <div class="seealso">
  284. <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>
  285. </div>
  286. <span class="small pull-right mobile-hide">
  287. <span class="divider">|</span>
  288. <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>
  289. </span>
  290. <span class="small pull-right mobile-hide">
  291. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Config/Stores/CollectionConverter.cs/#L70">View Source</a>
  292. </span>
  293. <a id="IPA_Config_Stores_Converters_CollectionConverter_2_FromValue_" data-uid="IPA.Config.Stores.Converters.CollectionConverter`2.FromValue*"></a>
  294. <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>
  295. <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>
  296. owned by <code data-dev-comment-type="paramref" class="paramref">parent</code>.</p>
  297. </div>
  298. <div class="markdown level1 conceptual"></div>
  299. <h5 class="decalaration">Declaration</h5>
  300. <div class="codewrapper">
  301. <pre><code class="lang-csharp hljs">public override TCollection FromValue(Value value, object parent)</code></pre>
  302. </div>
  303. <h5 class="parameters">Parameters</h5>
  304. <table class="table table-bordered table-striped table-condensed">
  305. <thead>
  306. <tr>
  307. <th>Type</th>
  308. <th>Name</th>
  309. <th>Description</th>
  310. </tr>
  311. </thead>
  312. <tbody>
  313. <tr>
  314. <td><a class="xref" href="IPA.Config.Data.Value.html">Value</a></td>
  315. <td><span class="parametername">value</span></td>
  316. <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>
  317. </td>
  318. </tr>
  319. <tr>
  320. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a></td>
  321. <td><span class="parametername">parent</span></td>
  322. <td><p>the object that will own the resulting <code data-dev-comment-type="typeparamref" class="typeparamref">TCollection</code></p>
  323. </td>
  324. </tr>
  325. </tbody>
  326. </table>
  327. <h5 class="returns">Returns</h5>
  328. <table class="table table-bordered table-striped table-condensed">
  329. <thead>
  330. <tr>
  331. <th>Type</th>
  332. <th>Description</th>
  333. </tr>
  334. </thead>
  335. <tbody>
  336. <tr>
  337. <td><span class="xref">TCollection</span></td>
  338. <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>
  339. </td>
  340. </tr>
  341. </tbody>
  342. </table>
  343. <h5 class="overrides">Overrides</h5>
  344. <div><span class="xref">IPA.Config.Stores.ValueConverter&lt;TCollection&gt;.FromValue(IPA.Config.Data.Value, System.Object)</span></div>
  345. <h5 id="IPA_Config_Stores_Converters_CollectionConverter_2_FromValue_IPA_Config_Data_Value_System_Object__seealso">See Also</h5>
  346. <div class="seealso">
  347. <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>
  348. </div>
  349. <span class="small pull-right mobile-hide">
  350. <span class="divider">|</span>
  351. <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>
  352. </span>
  353. <span class="small pull-right mobile-hide">
  354. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Config/Stores/CollectionConverter.cs/#L56">View Source</a>
  355. </span>
  356. <a id="IPA_Config_Stores_Converters_CollectionConverter_2_PopulateFromValue_" data-uid="IPA.Config.Stores.Converters.CollectionConverter`2.PopulateFromValue*"></a>
  357. <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>
  358. <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>
  359. with the parent <code data-dev-comment-type="paramref" class="paramref">parent</code>.</p>
  360. </div>
  361. <div class="markdown level1 conceptual"></div>
  362. <h5 class="decalaration">Declaration</h5>
  363. <div class="codewrapper">
  364. <pre><code class="lang-csharp hljs">protected void PopulateFromValue(TCollection col, List list, object parent)</code></pre>
  365. </div>
  366. <h5 class="parameters">Parameters</h5>
  367. <table class="table table-bordered table-striped table-condensed">
  368. <thead>
  369. <tr>
  370. <th>Type</th>
  371. <th>Name</th>
  372. <th>Description</th>
  373. </tr>
  374. </thead>
  375. <tbody>
  376. <tr>
  377. <td><span class="xref">TCollection</span></td>
  378. <td><span class="parametername">col</span></td>
  379. <td><p>the collection to populate</p>
  380. </td>
  381. </tr>
  382. <tr>
  383. <td><a class="xref" href="IPA.Config.Data.List.html">List</a></td>
  384. <td><span class="parametername">list</span></td>
  385. <td><p>the values to populate it with</p>
  386. </td>
  387. </tr>
  388. <tr>
  389. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a></td>
  390. <td><span class="parametername">parent</span></td>
  391. <td><p>the object that will own the new objects</p>
  392. </td>
  393. </tr>
  394. </tbody>
  395. </table>
  396. <h5 id="IPA_Config_Stores_Converters_CollectionConverter_2_PopulateFromValue__1_IPA_Config_Data_List_System_Object__seealso">See Also</h5>
  397. <div class="seealso">
  398. <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>
  399. </div>
  400. <span class="small pull-right mobile-hide">
  401. <span class="divider">|</span>
  402. <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>
  403. </span>
  404. <span class="small pull-right mobile-hide">
  405. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Config/Stores/CollectionConverter.cs/#L85">View Source</a>
  406. </span>
  407. <a id="IPA_Config_Stores_Converters_CollectionConverter_2_ToValue_" data-uid="IPA.Config.Stores.Converters.CollectionConverter`2.ToValue*"></a>
  408. <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>
  409. <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>
  410. </div>
  411. <div class="markdown level1 conceptual"></div>
  412. <h5 class="decalaration">Declaration</h5>
  413. <div class="codewrapper">
  414. <pre><code class="lang-csharp hljs">public override Value ToValue(TCollection obj, object parent)</code></pre>
  415. </div>
  416. <h5 class="parameters">Parameters</h5>
  417. <table class="table table-bordered table-striped table-condensed">
  418. <thead>
  419. <tr>
  420. <th>Type</th>
  421. <th>Name</th>
  422. <th>Description</th>
  423. </tr>
  424. </thead>
  425. <tbody>
  426. <tr>
  427. <td><span class="xref">TCollection</span></td>
  428. <td><span class="parametername">obj</span></td>
  429. <td><p>the <code data-dev-comment-type="typeparamref" class="typeparamref">TCollection</code> to serialize</p>
  430. </td>
  431. </tr>
  432. <tr>
  433. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a></td>
  434. <td><span class="parametername">parent</span></td>
  435. <td><p>the object owning <code data-dev-comment-type="paramref" class="paramref">obj</code></p>
  436. </td>
  437. </tr>
  438. </tbody>
  439. </table>
  440. <h5 class="returns">Returns</h5>
  441. <table class="table table-bordered table-striped table-condensed">
  442. <thead>
  443. <tr>
  444. <th>Type</th>
  445. <th>Description</th>
  446. </tr>
  447. </thead>
  448. <tbody>
  449. <tr>
  450. <td><a class="xref" href="IPA.Config.Data.Value.html">Value</a></td>
  451. <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>
  452. </td>
  453. </tr>
  454. </tbody>
  455. </table>
  456. <h5 class="overrides">Overrides</h5>
  457. <div><span class="xref">IPA.Config.Stores.ValueConverter&lt;TCollection&gt;.ToValue(TCollection, System.Object)</span></div>
  458. <h5 id="IPA_Config_Stores_Converters_CollectionConverter_2_ToValue__1_System_Object__seealso">See Also</h5>
  459. <div class="seealso">
  460. <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>
  461. </div>
  462. <h3 id="implements">Implements</h3>
  463. <div>
  464. <a class="xref" href="IPA.Config.Stores.IValueConverter.html">IValueConverter</a>
  465. </div>
  466. <h3 id="extensionmethods">Extension Methods</h3>
  467. <div>
  468. <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>
  469. </div>
  470. <div>
  471. <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>
  472. </div>
  473. <div>
  474. <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>
  475. </div>
  476. <div>
  477. <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>
  478. </div>
  479. <div>
  480. <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>
  481. </div>
  482. </article>
  483. </div>
  484. <div class="hidden-sm col-md-2" role="complementary">
  485. <div class="sideaffix">
  486. <div class="contribution">
  487. <ul class="nav">
  488. <li>
  489. <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>
  490. </li>
  491. <li>
  492. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Config/Stores/CollectionConverter.cs/#L17" class="contribution-link">View Source</a>
  493. </li>
  494. </ul>
  495. </div>
  496. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  497. <h5>In This Article</h5>
  498. <div></div>
  499. </nav>
  500. </div>
  501. </div>
  502. </div>
  503. </div>
  504. <footer>
  505. <div class="grad-bottom"></div>
  506. <div class="footer">
  507. <div class="container">
  508. <span class="pull-right">
  509. <a href="#top">Back to top</a>
  510. </span>
  511. <span>Generated by <strong>DocFX</strong></span>
  512. </div>
  513. </div>
  514. </footer>
  515. </div>
  516. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  517. <script type="text/javascript" src="../styles/docfx.js"></script>
  518. <script type="text/javascript" src="../styles/main.js"></script>
  519. </body>
  520. </html>