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.

523 lines
24 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 EnumerableExtensions
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class EnumerableExtensions
  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.Utilities.EnumerableExtensions">
  74. <h1 id="IPA_Utilities_EnumerableExtensions" data-uid="IPA.Utilities.EnumerableExtensions" class="text-break">Class EnumerableExtensions
  75. </h1>
  76. <div class="markdown level0 summary"><p>Extensions for <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable&lt;T&gt;</a> that don&apos;t currently exist in <code>System.Linq</code>.</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"><span class="xref">EnumerableExtensions</span></div>
  83. </div>
  84. <div class="inheritedMembers">
  85. <h5>Inherited Members</h5>
  86. <div>
  87. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.tostring#System_Object_ToString">Object.ToString()</a>
  88. </div>
  89. <div>
  90. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.equals#System_Object_Equals_System_Object_">Object.Equals(Object)</a>
  91. </div>
  92. <div>
  93. <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>
  94. </div>
  95. <div>
  96. <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>
  97. </div>
  98. <div>
  99. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.gethashcode#System_Object_GetHashCode">Object.GetHashCode()</a>
  100. </div>
  101. <div>
  102. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.gettype#System_Object_GetType">Object.GetType()</a>
  103. </div>
  104. <div>
  105. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.memberwiseclone#System_Object_MemberwiseClone">Object.MemberwiseClone()</a>
  106. </div>
  107. </div>
  108. <h6><strong>Namespace</strong>: <a class="xref" href="IPA.Utilities.html">IPA.Utilities</a></h6>
  109. <h6><strong>Assembly</strong>: IPA.Loader.dll</h6>
  110. <h5 id="IPA_Utilities_EnumerableExtensions_syntax">Syntax</h5>
  111. <div class="codewrapper">
  112. <pre><code class="lang-csharp hljs">public static class EnumerableExtensions</code></pre>
  113. </div>
  114. <h3 id="methods">Methods
  115. </h3>
  116. <span class="small pull-right mobile-hide">
  117. <span class="divider">|</span>
  118. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/4.0.0-beta/docs/override/new?filename=IPA_Utilities_EnumerableExtensions_Append__1_System_Collections_Generic_IEnumerable___0____0_.md&amp;value=---%0Auid%3A%20IPA.Utilities.EnumerableExtensions.Append%60%601(System.Collections.Generic.IEnumerable%7B%60%600%7D%2C%60%600)%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>
  119. </span>
  120. <span class="small pull-right mobile-hide">
  121. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/8e05f807de1392b35b682971ba00f5488d27314f/IPA.Loader/Utilities/EnumerableExtensions.cs/#L52">View Source</a>
  122. </span>
  123. <a id="IPA_Utilities_EnumerableExtensions_Append_" data-uid="IPA.Utilities.EnumerableExtensions.Append*"></a>
  124. <h4 id="IPA_Utilities_EnumerableExtensions_Append__1_System_Collections_Generic_IEnumerable___0____0_" data-uid="IPA.Utilities.EnumerableExtensions.Append``1(System.Collections.Generic.IEnumerable{``0},``0)">Append&lt;T&gt;(IEnumerable&lt;T&gt;, T)</h4>
  125. <div class="markdown level1 summary"><p>Adds a value to the end of the sequence.</p>
  126. </div>
  127. <div class="markdown level1 conceptual"></div>
  128. <h5 class="decalaration">Declaration</h5>
  129. <div class="codewrapper">
  130. <pre><code class="lang-csharp hljs">public static IEnumerable&lt;T&gt; Append&lt;T&gt;(this IEnumerable&lt;T&gt; seq, T app)</code></pre>
  131. </div>
  132. <h5 class="parameters">Parameters</h5>
  133. <table class="table table-bordered table-striped table-condensed">
  134. <thead>
  135. <tr>
  136. <th>Type</th>
  137. <th>Name</th>
  138. <th>Description</th>
  139. </tr>
  140. </thead>
  141. <tbody>
  142. <tr>
  143. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;T&gt;</td>
  144. <td><span class="parametername">seq</span></td>
  145. <td><p>a sequence of values</p>
  146. </td>
  147. </tr>
  148. <tr>
  149. <td><span class="xref">T</span></td>
  150. <td><span class="parametername">app</span></td>
  151. <td><p>the value to append to <code data-dev-comment-type="paramref" class="paramref">seq</code></p>
  152. </td>
  153. </tr>
  154. </tbody>
  155. </table>
  156. <h5 class="returns">Returns</h5>
  157. <table class="table table-bordered table-striped table-condensed">
  158. <thead>
  159. <tr>
  160. <th>Type</th>
  161. <th>Description</th>
  162. </tr>
  163. </thead>
  164. <tbody>
  165. <tr>
  166. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;T&gt;</td>
  167. <td><p>a new sequence ending with <code data-dev-comment-type="paramref" class="paramref">app</code></p>
  168. </td>
  169. </tr>
  170. </tbody>
  171. </table>
  172. <h5 class="typeParameters">Type Parameters</h5>
  173. <table class="table table-bordered table-striped table-condensed">
  174. <thead>
  175. <tr>
  176. <th>Name</th>
  177. <th>Description</th>
  178. </tr>
  179. </thead>
  180. <tbody>
  181. <tr>
  182. <td><span class="parametername">T</span></td>
  183. <td><p>the type of the elements of <code data-dev-comment-type="paramref" class="paramref">seq</code></p>
  184. </td>
  185. </tr>
  186. </tbody>
  187. </table>
  188. <span class="small pull-right mobile-hide">
  189. <span class="divider">|</span>
  190. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/4.0.0-beta/docs/override/new?filename=IPA_Utilities_EnumerableExtensions_NonNull__1_System_Collections_Generic_IEnumerable___0__.md&amp;value=---%0Auid%3A%20IPA.Utilities.EnumerableExtensions.NonNull%60%601(System.Collections.Generic.IEnumerable%7B%60%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>
  191. </span>
  192. <span class="small pull-right mobile-hide">
  193. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/8e05f807de1392b35b682971ba00f5488d27314f/IPA.Loader/Utilities/EnumerableExtensions.cs/#L81">View Source</a>
  194. </span>
  195. <a id="IPA_Utilities_EnumerableExtensions_NonNull_" data-uid="IPA.Utilities.EnumerableExtensions.NonNull*"></a>
  196. <h4 id="IPA_Utilities_EnumerableExtensions_NonNull__1_System_Collections_Generic_IEnumerable___0__" data-uid="IPA.Utilities.EnumerableExtensions.NonNull``1(System.Collections.Generic.IEnumerable{``0})">NonNull&lt;T&gt;(IEnumerable&lt;T&gt;)</h4>
  197. <div class="markdown level1 summary"><p>LINQ extension method that filters <span class="xref">null</span> elements out of an enumeration.</p>
  198. </div>
  199. <div class="markdown level1 conceptual"></div>
  200. <h5 class="decalaration">Declaration</h5>
  201. <div class="codewrapper">
  202. <pre><code class="lang-csharp hljs">public static IEnumerable&lt;T&gt; NonNull&lt;T&gt;(this IEnumerable&lt;T&gt; self)
  203. where T : class</code></pre>
  204. </div>
  205. <h5 class="parameters">Parameters</h5>
  206. <table class="table table-bordered table-striped table-condensed">
  207. <thead>
  208. <tr>
  209. <th>Type</th>
  210. <th>Name</th>
  211. <th>Description</th>
  212. </tr>
  213. </thead>
  214. <tbody>
  215. <tr>
  216. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;T&gt;</td>
  217. <td><span class="parametername">self</span></td>
  218. <td><p>the enumeration to filter</p>
  219. </td>
  220. </tr>
  221. </tbody>
  222. </table>
  223. <h5 class="returns">Returns</h5>
  224. <table class="table table-bordered table-striped table-condensed">
  225. <thead>
  226. <tr>
  227. <th>Type</th>
  228. <th>Description</th>
  229. </tr>
  230. </thead>
  231. <tbody>
  232. <tr>
  233. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;T&gt;</td>
  234. <td><p>a filtered enumerable</p>
  235. </td>
  236. </tr>
  237. </tbody>
  238. </table>
  239. <h5 class="typeParameters">Type Parameters</h5>
  240. <table class="table table-bordered table-striped table-condensed">
  241. <thead>
  242. <tr>
  243. <th>Name</th>
  244. <th>Description</th>
  245. </tr>
  246. </thead>
  247. <tbody>
  248. <tr>
  249. <td><span class="parametername">T</span></td>
  250. <td><p>the type of the enumeration</p>
  251. </td>
  252. </tr>
  253. </tbody>
  254. </table>
  255. <span class="small pull-right mobile-hide">
  256. <span class="divider">|</span>
  257. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/4.0.0-beta/docs/override/new?filename=IPA_Utilities_EnumerableExtensions_NonNull__1_System_Collections_Generic_IEnumerable_System_Nullable___0___.md&amp;value=---%0Auid%3A%20IPA.Utilities.EnumerableExtensions.NonNull%60%601(System.Collections.Generic.IEnumerable%7BSystem.Nullable%7B%60%600%7D%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>
  258. </span>
  259. <span class="small pull-right mobile-hide">
  260. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/8e05f807de1392b35b682971ba00f5488d27314f/IPA.Loader/Utilities/EnumerableExtensions.cs/#L101">View Source</a>
  261. </span>
  262. <a id="IPA_Utilities_EnumerableExtensions_NonNull_" data-uid="IPA.Utilities.EnumerableExtensions.NonNull*"></a>
  263. <h4 id="IPA_Utilities_EnumerableExtensions_NonNull__1_System_Collections_Generic_IEnumerable_System_Nullable___0___" data-uid="IPA.Utilities.EnumerableExtensions.NonNull``1(System.Collections.Generic.IEnumerable{System.Nullable{``0}})">NonNull&lt;T&gt;(IEnumerable&lt;Nullable&lt;T&gt;&gt;)</h4>
  264. <div class="markdown level1 summary"><p>LINQ extension method that filters <span class="xref">null</span> elements from an enumeration of nullable types.</p>
  265. </div>
  266. <div class="markdown level1 conceptual"></div>
  267. <h5 class="decalaration">Declaration</h5>
  268. <div class="codewrapper">
  269. <pre><code class="lang-csharp hljs">public static IEnumerable&lt;T&gt; NonNull&lt;T&gt;(this IEnumerable&lt;T?&gt; self)
  270. where T : struct</code></pre>
  271. </div>
  272. <h5 class="parameters">Parameters</h5>
  273. <table class="table table-bordered table-striped table-condensed">
  274. <thead>
  275. <tr>
  276. <th>Type</th>
  277. <th>Name</th>
  278. <th>Description</th>
  279. </tr>
  280. </thead>
  281. <tbody>
  282. <tr>
  283. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="https://docs.microsoft.com/dotnet/api/system.nullable-1">Nullable</a>&lt;T&gt;&gt;</td>
  284. <td><span class="parametername">self</span></td>
  285. <td><p>the enumeration to filter</p>
  286. </td>
  287. </tr>
  288. </tbody>
  289. </table>
  290. <h5 class="returns">Returns</h5>
  291. <table class="table table-bordered table-striped table-condensed">
  292. <thead>
  293. <tr>
  294. <th>Type</th>
  295. <th>Description</th>
  296. </tr>
  297. </thead>
  298. <tbody>
  299. <tr>
  300. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;T&gt;</td>
  301. <td><p>a filtered enumerable</p>
  302. </td>
  303. </tr>
  304. </tbody>
  305. </table>
  306. <h5 class="typeParameters">Type Parameters</h5>
  307. <table class="table table-bordered table-striped table-condensed">
  308. <thead>
  309. <tr>
  310. <th>Name</th>
  311. <th>Description</th>
  312. </tr>
  313. </thead>
  314. <tbody>
  315. <tr>
  316. <td><span class="parametername">T</span></td>
  317. <td><p>the underlying type of the nullable enumeration</p>
  318. </td>
  319. </tr>
  320. </tbody>
  321. </table>
  322. <span class="small pull-right mobile-hide">
  323. <span class="divider">|</span>
  324. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/4.0.0-beta/docs/override/new?filename=IPA_Utilities_EnumerableExtensions_NonNull__2_System_Collections_Generic_IEnumerable___0__System_Func___0___1__.md&amp;value=---%0Auid%3A%20IPA.Utilities.EnumerableExtensions.NonNull%60%602(System.Collections.Generic.IEnumerable%7B%60%600%7D%2CSystem.Func%7B%60%600%2C%60%601%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>
  325. </span>
  326. <span class="small pull-right mobile-hide">
  327. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/8e05f807de1392b35b682971ba00f5488d27314f/IPA.Loader/Utilities/EnumerableExtensions.cs/#L92">View Source</a>
  328. </span>
  329. <a id="IPA_Utilities_EnumerableExtensions_NonNull_" data-uid="IPA.Utilities.EnumerableExtensions.NonNull*"></a>
  330. <h4 id="IPA_Utilities_EnumerableExtensions_NonNull__2_System_Collections_Generic_IEnumerable___0__System_Func___0___1__" data-uid="IPA.Utilities.EnumerableExtensions.NonNull``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1})">NonNull&lt;T, U&gt;(IEnumerable&lt;T&gt;, Func&lt;T, U&gt;)</h4>
  331. <div class="markdown level1 summary"><p>LINQ extension method that filters <span class="xref">null</span> elements out of an enumeration based on a converter.</p>
  332. </div>
  333. <div class="markdown level1 conceptual"></div>
  334. <h5 class="decalaration">Declaration</h5>
  335. <div class="codewrapper">
  336. <pre><code class="lang-csharp hljs">public static IEnumerable&lt;T&gt; NonNull&lt;T, U&gt;(this IEnumerable&lt;T&gt; self, Func&lt;T, U&gt; pred)
  337. where U : class</code></pre>
  338. </div>
  339. <h5 class="parameters">Parameters</h5>
  340. <table class="table table-bordered table-striped table-condensed">
  341. <thead>
  342. <tr>
  343. <th>Type</th>
  344. <th>Name</th>
  345. <th>Description</th>
  346. </tr>
  347. </thead>
  348. <tbody>
  349. <tr>
  350. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;T&gt;</td>
  351. <td><span class="parametername">self</span></td>
  352. <td><p>the enumeration to filter</p>
  353. </td>
  354. </tr>
  355. <tr>
  356. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;T, U&gt;</td>
  357. <td><span class="parametername">pred</span></td>
  358. <td><p>the predicate to select for filtering</p>
  359. </td>
  360. </tr>
  361. </tbody>
  362. </table>
  363. <h5 class="returns">Returns</h5>
  364. <table class="table table-bordered table-striped table-condensed">
  365. <thead>
  366. <tr>
  367. <th>Type</th>
  368. <th>Description</th>
  369. </tr>
  370. </thead>
  371. <tbody>
  372. <tr>
  373. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;T&gt;</td>
  374. <td><p>a filtered enumerable</p>
  375. </td>
  376. </tr>
  377. </tbody>
  378. </table>
  379. <h5 class="typeParameters">Type Parameters</h5>
  380. <table class="table table-bordered table-striped table-condensed">
  381. <thead>
  382. <tr>
  383. <th>Name</th>
  384. <th>Description</th>
  385. </tr>
  386. </thead>
  387. <tbody>
  388. <tr>
  389. <td><span class="parametername">T</span></td>
  390. <td><p>the type of the enumeration</p>
  391. </td>
  392. </tr>
  393. <tr>
  394. <td><span class="parametername">U</span></td>
  395. <td><p>the type to compare to null</p>
  396. </td>
  397. </tr>
  398. </tbody>
  399. </table>
  400. <span class="small pull-right mobile-hide">
  401. <span class="divider">|</span>
  402. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/4.0.0-beta/docs/override/new?filename=IPA_Utilities_EnumerableExtensions_Prepend__1_System_Collections_Generic_IEnumerable___0____0_.md&amp;value=---%0Auid%3A%20IPA.Utilities.EnumerableExtensions.Prepend%60%601(System.Collections.Generic.IEnumerable%7B%60%600%7D%2C%60%600)%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/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/8e05f807de1392b35b682971ba00f5488d27314f/IPA.Loader/Utilities/EnumerableExtensions.cs/#L22">View Source</a>
  406. </span>
  407. <a id="IPA_Utilities_EnumerableExtensions_Prepend_" data-uid="IPA.Utilities.EnumerableExtensions.Prepend*"></a>
  408. <h4 id="IPA_Utilities_EnumerableExtensions_Prepend__1_System_Collections_Generic_IEnumerable___0____0_" data-uid="IPA.Utilities.EnumerableExtensions.Prepend``1(System.Collections.Generic.IEnumerable{``0},``0)">Prepend&lt;T&gt;(IEnumerable&lt;T&gt;, T)</h4>
  409. <div class="markdown level1 summary"><p>Adds a value to the beginning of the sequence.</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 static IEnumerable&lt;T&gt; Prepend&lt;T&gt;(this IEnumerable&lt;T&gt; seq, T prep)</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><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;T&gt;</td>
  428. <td><span class="parametername">seq</span></td>
  429. <td><p>a sequence of values</p>
  430. </td>
  431. </tr>
  432. <tr>
  433. <td><span class="xref">T</span></td>
  434. <td><span class="parametername">prep</span></td>
  435. <td><p>the value to prepend to <code data-dev-comment-type="paramref" class="paramref">seq</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="https://docs.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;T&gt;</td>
  451. <td><p>a new sequence beginning with <code data-dev-comment-type="paramref" class="paramref">prep</code></p>
  452. </td>
  453. </tr>
  454. </tbody>
  455. </table>
  456. <h5 class="typeParameters">Type Parameters</h5>
  457. <table class="table table-bordered table-striped table-condensed">
  458. <thead>
  459. <tr>
  460. <th>Name</th>
  461. <th>Description</th>
  462. </tr>
  463. </thead>
  464. <tbody>
  465. <tr>
  466. <td><span class="parametername">T</span></td>
  467. <td><p>the type of the elements of <code data-dev-comment-type="paramref" class="paramref">seq</code></p>
  468. </td>
  469. </tr>
  470. </tbody>
  471. </table>
  472. </article>
  473. </div>
  474. <div class="hidden-sm col-md-2" role="complementary">
  475. <div class="sideaffix">
  476. <div class="contribution">
  477. <ul class="nav">
  478. <li>
  479. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/4.0.0-beta/docs/override/new?filename=IPA_Utilities_EnumerableExtensions.md&amp;value=---%0Auid%3A%20IPA.Utilities.EnumerableExtensions%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>
  480. </li>
  481. <li>
  482. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/8e05f807de1392b35b682971ba00f5488d27314f/IPA.Loader/Utilities/EnumerableExtensions.cs/#L13" class="contribution-link">View Source</a>
  483. </li>
  484. </ul>
  485. </div>
  486. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  487. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  488. </nav>
  489. </div>
  490. </div>
  491. </div>
  492. </div>
  493. <footer>
  494. <div class="grad-bottom"></div>
  495. <div class="footer">
  496. <div class="container">
  497. <span class="pull-right">
  498. <a href="#top">Back to top</a>
  499. </span>
  500. <span>Generated by <strong>DocFX</strong></span>
  501. </div>
  502. </div>
  503. </footer>
  504. </div>
  505. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  506. <script type="text/javascript" src="../styles/docfx.js"></script>
  507. <script type="text/javascript" src="../styles/main.js"></script>
  508. </body>
  509. </html>