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.

380 lines
17 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 Extensions
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class Extensions
  11. ">
  12. <meta name="generator" content="docfx 2.43.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 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="Net3_Proxy.Extensions">
  74. <h1 id="Net3_Proxy_Extensions" data-uid="Net3_Proxy.Extensions" class="text-break">Class Extensions
  75. </h1>
  76. <div class="markdown level0 summary"></div>
  77. <div class="markdown level0 conceptual"></div>
  78. <div class="inheritance">
  79. <h5>Inheritance</h5>
  80. <div class="level0"><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a></div>
  81. <div class="level1"><span class="xref">Extensions</span></div>
  82. </div>
  83. <div class="inheritedMembers">
  84. <h5>Inherited Members</h5>
  85. <div>
  86. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.tostring#System_Object_ToString">Object.ToString()</a>
  87. </div>
  88. <div>
  89. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.equals#System_Object_Equals_System_Object_">Object.Equals(Object)</a>
  90. </div>
  91. <div>
  92. <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>
  93. </div>
  94. <div>
  95. <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>
  96. </div>
  97. <div>
  98. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.gethashcode#System_Object_GetHashCode">Object.GetHashCode()</a>
  99. </div>
  100. <div>
  101. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.gettype#System_Object_GetType">Object.GetType()</a>
  102. </div>
  103. <div>
  104. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.memberwiseclone#System_Object_MemberwiseClone">Object.MemberwiseClone()</a>
  105. </div>
  106. </div>
  107. <h6><strong>Namespace</strong>: <a class="xref" href="Net3_Proxy.html">Net3_Proxy</a></h6>
  108. <h6><strong>Assembly</strong>: Net3-Proxy.dll</h6>
  109. <h5 id="Net3_Proxy_Extensions_syntax">Syntax</h5>
  110. <div class="codewrapper">
  111. <pre><code class="lang-csharp hljs">public static class Extensions</code></pre>
  112. </div>
  113. <h3 id="methods">Methods
  114. </h3>
  115. <span class="small pull-right mobile-hide">
  116. <span class="divider">|</span>
  117. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=Net3_Proxy_Extensions_Clear_System_Text_StringBuilder_.md&amp;value=---%0Auid%3A%20Net3_Proxy.Extensions.Clear(System.Text.StringBuilder)%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>
  118. </span>
  119. <span class="small pull-right mobile-hide">
  120. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/b7fac8944daba8c332dfe532fa853766168f6892/Net3-Proxy/Extensions.cs/#L25">View Source</a>
  121. </span>
  122. <a id="Net3_Proxy_Extensions_Clear_" data-uid="Net3_Proxy.Extensions.Clear*"></a>
  123. <h4 id="Net3_Proxy_Extensions_Clear_System_Text_StringBuilder_" data-uid="Net3_Proxy.Extensions.Clear(System.Text.StringBuilder)">Clear(StringBuilder)</h4>
  124. <div class="markdown level1 summary"></div>
  125. <div class="markdown level1 conceptual"></div>
  126. <h5 class="decalaration">Declaration</h5>
  127. <div class="codewrapper">
  128. <pre><code class="lang-csharp hljs">public static StringBuilder Clear(this StringBuilder sb)</code></pre>
  129. </div>
  130. <h5 class="parameters">Parameters</h5>
  131. <table class="table table-bordered table-striped table-condensed">
  132. <thead>
  133. <tr>
  134. <th>Type</th>
  135. <th>Name</th>
  136. <th>Description</th>
  137. </tr>
  138. </thead>
  139. <tbody>
  140. <tr>
  141. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.text.stringbuilder">StringBuilder</a></td>
  142. <td><span class="parametername">sb</span></td>
  143. <td></td>
  144. </tr>
  145. </tbody>
  146. </table>
  147. <h5 class="returns">Returns</h5>
  148. <table class="table table-bordered table-striped table-condensed">
  149. <thead>
  150. <tr>
  151. <th>Type</th>
  152. <th>Description</th>
  153. </tr>
  154. </thead>
  155. <tbody>
  156. <tr>
  157. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.text.stringbuilder">StringBuilder</a></td>
  158. <td></td>
  159. </tr>
  160. </tbody>
  161. </table>
  162. <span class="small pull-right mobile-hide">
  163. <span class="divider">|</span>
  164. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=Net3_Proxy_Extensions_GetCustomAttribute_System_Reflection_MemberInfo_System_Type_.md&amp;value=---%0Auid%3A%20Net3_Proxy.Extensions.GetCustomAttribute(System.Reflection.MemberInfo%2CSystem.Type)%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>
  165. </span>
  166. <span class="small pull-right mobile-hide">
  167. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/b7fac8944daba8c332dfe532fa853766168f6892/Net3-Proxy/Extensions.cs/#L19">View Source</a>
  168. </span>
  169. <a id="Net3_Proxy_Extensions_GetCustomAttribute_" data-uid="Net3_Proxy.Extensions.GetCustomAttribute*"></a>
  170. <h4 id="Net3_Proxy_Extensions_GetCustomAttribute_System_Reflection_MemberInfo_System_Type_" data-uid="Net3_Proxy.Extensions.GetCustomAttribute(System.Reflection.MemberInfo,System.Type)">GetCustomAttribute(MemberInfo, Type)</h4>
  171. <div class="markdown level1 summary"></div>
  172. <div class="markdown level1 conceptual"></div>
  173. <h5 class="decalaration">Declaration</h5>
  174. <div class="codewrapper">
  175. <pre><code class="lang-csharp hljs">public static Attribute GetCustomAttribute(this MemberInfo element, Type attributeType)</code></pre>
  176. </div>
  177. <h5 class="parameters">Parameters</h5>
  178. <table class="table table-bordered table-striped table-condensed">
  179. <thead>
  180. <tr>
  181. <th>Type</th>
  182. <th>Name</th>
  183. <th>Description</th>
  184. </tr>
  185. </thead>
  186. <tbody>
  187. <tr>
  188. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.reflection.memberinfo">MemberInfo</a></td>
  189. <td><span class="parametername">element</span></td>
  190. <td></td>
  191. </tr>
  192. <tr>
  193. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.type">Type</a></td>
  194. <td><span class="parametername">attributeType</span></td>
  195. <td></td>
  196. </tr>
  197. </tbody>
  198. </table>
  199. <h5 class="returns">Returns</h5>
  200. <table class="table table-bordered table-striped table-condensed">
  201. <thead>
  202. <tr>
  203. <th>Type</th>
  204. <th>Description</th>
  205. </tr>
  206. </thead>
  207. <tbody>
  208. <tr>
  209. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.attribute">Attribute</a></td>
  210. <td></td>
  211. </tr>
  212. </tbody>
  213. </table>
  214. <span class="small pull-right mobile-hide">
  215. <span class="divider">|</span>
  216. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=Net3_Proxy_Extensions_GetCustomAttribute_System_Reflection_ParameterInfo_System_Type_.md&amp;value=---%0Auid%3A%20Net3_Proxy.Extensions.GetCustomAttribute(System.Reflection.ParameterInfo%2CSystem.Type)%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/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/b7fac8944daba8c332dfe532fa853766168f6892/Net3-Proxy/Extensions.cs/#L22">View Source</a>
  220. </span>
  221. <a id="Net3_Proxy_Extensions_GetCustomAttribute_" data-uid="Net3_Proxy.Extensions.GetCustomAttribute*"></a>
  222. <h4 id="Net3_Proxy_Extensions_GetCustomAttribute_System_Reflection_ParameterInfo_System_Type_" data-uid="Net3_Proxy.Extensions.GetCustomAttribute(System.Reflection.ParameterInfo,System.Type)">GetCustomAttribute(ParameterInfo, Type)</h4>
  223. <div class="markdown level1 summary"></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">public static Attribute GetCustomAttribute(this ParameterInfo element, Type attributeType)</code></pre>
  228. </div>
  229. <h5 class="parameters">Parameters</h5>
  230. <table class="table table-bordered table-striped table-condensed">
  231. <thead>
  232. <tr>
  233. <th>Type</th>
  234. <th>Name</th>
  235. <th>Description</th>
  236. </tr>
  237. </thead>
  238. <tbody>
  239. <tr>
  240. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.reflection.parameterinfo">ParameterInfo</a></td>
  241. <td><span class="parametername">element</span></td>
  242. <td></td>
  243. </tr>
  244. <tr>
  245. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.type">Type</a></td>
  246. <td><span class="parametername">attributeType</span></td>
  247. <td></td>
  248. </tr>
  249. </tbody>
  250. </table>
  251. <h5 class="returns">Returns</h5>
  252. <table class="table table-bordered table-striped table-condensed">
  253. <thead>
  254. <tr>
  255. <th>Type</th>
  256. <th>Description</th>
  257. </tr>
  258. </thead>
  259. <tbody>
  260. <tr>
  261. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.attribute">Attribute</a></td>
  262. <td></td>
  263. </tr>
  264. </tbody>
  265. </table>
  266. <span class="small pull-right mobile-hide">
  267. <span class="divider">|</span>
  268. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=Net3_Proxy_Extensions_GetCustomAttribute__1_System_Reflection_ParameterInfo_.md&amp;value=---%0Auid%3A%20Net3_Proxy.Extensions.GetCustomAttribute%60%601(System.Reflection.ParameterInfo)%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>
  269. </span>
  270. <span class="small pull-right mobile-hide">
  271. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/b7fac8944daba8c332dfe532fa853766168f6892/Net3-Proxy/Extensions.cs/#L16">View Source</a>
  272. </span>
  273. <a id="Net3_Proxy_Extensions_GetCustomAttribute_" data-uid="Net3_Proxy.Extensions.GetCustomAttribute*"></a>
  274. <h4 id="Net3_Proxy_Extensions_GetCustomAttribute__1_System_Reflection_ParameterInfo_" data-uid="Net3_Proxy.Extensions.GetCustomAttribute``1(System.Reflection.ParameterInfo)">GetCustomAttribute&lt;T&gt;(ParameterInfo)</h4>
  275. <div class="markdown level1 summary"></div>
  276. <div class="markdown level1 conceptual"></div>
  277. <h5 class="decalaration">Declaration</h5>
  278. <div class="codewrapper">
  279. <pre><code class="lang-csharp hljs">public static T GetCustomAttribute&lt;T&gt;(this ParameterInfo element)
  280. where T : Attribute</code></pre>
  281. </div>
  282. <h5 class="parameters">Parameters</h5>
  283. <table class="table table-bordered table-striped table-condensed">
  284. <thead>
  285. <tr>
  286. <th>Type</th>
  287. <th>Name</th>
  288. <th>Description</th>
  289. </tr>
  290. </thead>
  291. <tbody>
  292. <tr>
  293. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.reflection.parameterinfo">ParameterInfo</a></td>
  294. <td><span class="parametername">element</span></td>
  295. <td></td>
  296. </tr>
  297. </tbody>
  298. </table>
  299. <h5 class="returns">Returns</h5>
  300. <table class="table table-bordered table-striped table-condensed">
  301. <thead>
  302. <tr>
  303. <th>Type</th>
  304. <th>Description</th>
  305. </tr>
  306. </thead>
  307. <tbody>
  308. <tr>
  309. <td><span class="xref">T</span></td>
  310. <td></td>
  311. </tr>
  312. </tbody>
  313. </table>
  314. <h5 class="typeParameters">Type Parameters</h5>
  315. <table class="table table-bordered table-striped table-condensed">
  316. <thead>
  317. <tr>
  318. <th>Name</th>
  319. <th>Description</th>
  320. </tr>
  321. </thead>
  322. <tbody>
  323. <tr>
  324. <td><span class="parametername">T</span></td>
  325. <td></td>
  326. </tr>
  327. </tbody>
  328. </table>
  329. </article>
  330. </div>
  331. <div class="hidden-sm col-md-2" role="complementary">
  332. <div class="sideaffix">
  333. <div class="contribution">
  334. <ul class="nav">
  335. <li>
  336. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=Net3_Proxy_Extensions.md&amp;value=---%0Auid%3A%20Net3_Proxy.Extensions%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>
  337. </li>
  338. <li>
  339. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/b7fac8944daba8c332dfe532fa853766168f6892/Net3-Proxy/Extensions.cs/#L14" class="contribution-link">View Source</a>
  340. </li>
  341. </ul>
  342. </div>
  343. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  344. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  345. </nav>
  346. </div>
  347. </div>
  348. </div>
  349. </div>
  350. <footer>
  351. <div class="grad-bottom"></div>
  352. <div class="footer">
  353. <div class="container">
  354. <span class="pull-right">
  355. <a href="#top">Back to top</a>
  356. </span>
  357. <span>Generated by <strong>DocFX</strong></span>
  358. </div>
  359. </div>
  360. </footer>
  361. </div>
  362. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  363. <script type="text/javascript" src="../styles/docfx.js"></script>
  364. <script type="text/javascript" src="../styles/main.js"></script>
  365. </body>
  366. </html>