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.

533 lines
24 KiB

8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 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 Ref&lt;T&gt;
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class Ref&lt;T&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.Utilities.Ref`1">
  75. <h1 id="IPA_Utilities_Ref_1" data-uid="IPA.Utilities.Ref`1" class="text-break">Class Ref&lt;T&gt;
  76. </h1>
  77. <div class="markdown level0 summary"><p>A class to store a reference for passing to methods which cannot take ref parameters.</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://learn.microsoft.com/dotnet/api/system.object">Object</a></div>
  83. <div class="level1"><span class="xref">Ref&lt;T&gt;</span></div>
  84. </div>
  85. <div class="implements">
  86. <h5>Implements</h5>
  87. <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icomparable-1">IComparable</a>&lt;T&gt;</div>
  88. <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icomparable-1">IComparable</a>&lt;<a class="xref" href="IPA.Utilities.Ref-1.html">Ref</a>&lt;T&gt;&gt;</div>
  89. </div>
  90. <div class="inheritedMembers">
  91. <h5>Inherited Members</h5>
  92. <div>
  93. <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.tostring#system-object-tostring">Object.ToString()</a>
  94. </div>
  95. <div>
  96. <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">Object.Equals(Object)</a>
  97. </div>
  98. <div>
  99. <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">Object.Equals(Object, Object)</a>
  100. </div>
  101. <div>
  102. <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals#system-object-referenceequals(system-object-system-object)">Object.ReferenceEquals(Object, Object)</a>
  103. </div>
  104. <div>
  105. <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode#system-object-gethashcode">Object.GetHashCode()</a>
  106. </div>
  107. <div>
  108. <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gettype#system-object-gettype">Object.GetType()</a>
  109. </div>
  110. <div>
  111. <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone#system-object-memberwiseclone">Object.MemberwiseClone()</a>
  112. </div>
  113. </div>
  114. <h6><strong>Namespace</strong>: <a class="xref" href="IPA.Utilities.html">IPA.Utilities</a></h6>
  115. <h6><strong>Assembly</strong>: IPA.Loader.dll</h6>
  116. <h5 id="IPA_Utilities_Ref_1_syntax">Syntax</h5>
  117. <div class="codewrapper">
  118. <pre><code class="lang-csharp hljs">public class Ref&lt;T&gt; : IComparable&lt;T&gt;, IComparable&lt;Ref&lt;T&gt;&gt;</code></pre>
  119. </div>
  120. <h5 class="typeParameters">Type Parameters</h5>
  121. <table class="table table-bordered table-striped table-condensed">
  122. <thead>
  123. <tr>
  124. <th>Name</th>
  125. <th>Description</th>
  126. </tr>
  127. </thead>
  128. <tbody>
  129. <tr>
  130. <td><span class="parametername">T</span></td>
  131. <td><p>the type of the value</p>
  132. </td>
  133. </tr>
  134. </tbody>
  135. </table>
  136. <h3 id="constructors">Constructors
  137. </h3>
  138. <span class="small pull-right mobile-hide">
  139. <span class="divider">|</span>
  140. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_Ref_1__ctor__0_.md&amp;value=---%0Auid%3A%20IPA.Utilities.Ref%601.%23ctor(%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>
  141. </span>
  142. <span class="small pull-right mobile-hide">
  143. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/01a05403ef4edd9646be6b698e7da30c741965e5/IPA.Loader/Utilities/Ref.cs/#L66">View Source</a>
  144. </span>
  145. <a id="IPA_Utilities_Ref_1__ctor_" data-uid="IPA.Utilities.Ref`1.#ctor*"></a>
  146. <h4 id="IPA_Utilities_Ref_1__ctor__0_" data-uid="IPA.Utilities.Ref`1.#ctor(`0)">Ref(T)</h4>
  147. <div class="markdown level1 summary"><p>Constructor.</p>
  148. </div>
  149. <div class="markdown level1 conceptual"></div>
  150. <h5 class="decalaration">Declaration</h5>
  151. <div class="codewrapper">
  152. <pre><code class="lang-csharp hljs">public Ref(T reference)</code></pre>
  153. </div>
  154. <h5 class="parameters">Parameters</h5>
  155. <table class="table table-bordered table-striped table-condensed">
  156. <thead>
  157. <tr>
  158. <th>Type</th>
  159. <th>Name</th>
  160. <th>Description</th>
  161. </tr>
  162. </thead>
  163. <tbody>
  164. <tr>
  165. <td><span class="xref">T</span></td>
  166. <td><span class="parametername">reference</span></td>
  167. <td><p>the initial value of the reference</p>
  168. </td>
  169. </tr>
  170. </tbody>
  171. </table>
  172. <h3 id="properties">Properties
  173. </h3>
  174. <span class="small pull-right mobile-hide">
  175. <span class="divider">|</span>
  176. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_Ref_1_Error.md&amp;value=---%0Auid%3A%20IPA.Utilities.Ref%601.Error%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>
  177. </span>
  178. <span class="small pull-right mobile-hide">
  179. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/01a05403ef4edd9646be6b698e7da30c741965e5/IPA.Loader/Utilities/Ref.cs/#L50">View Source</a>
  180. </span>
  181. <a id="IPA_Utilities_Ref_1_Error_" data-uid="IPA.Utilities.Ref`1.Error*"></a>
  182. <h4 id="IPA_Utilities_Ref_1_Error" data-uid="IPA.Utilities.Ref`1.Error">Error</h4>
  183. <div class="markdown level1 summary"><p>An exception that was generated while creating the value.</p>
  184. </div>
  185. <div class="markdown level1 conceptual"></div>
  186. <h5 class="decalaration">Declaration</h5>
  187. <div class="codewrapper">
  188. <pre><code class="lang-csharp hljs">public Exception Error { get; set; }</code></pre>
  189. </div>
  190. <h5 class="propertyValue">Property Value</h5>
  191. <table class="table table-bordered table-striped table-condensed">
  192. <thead>
  193. <tr>
  194. <th>Type</th>
  195. <th>Description</th>
  196. </tr>
  197. </thead>
  198. <tbody>
  199. <tr>
  200. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.exception">Exception</a></td>
  201. <td><p>the error held in this <a class="xref" href="IPA.Utilities.Ref-1.html">Ref&lt;T&gt;</a></p>
  202. </td>
  203. </tr>
  204. </tbody>
  205. </table>
  206. <span class="small pull-right mobile-hide">
  207. <span class="divider">|</span>
  208. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_Ref_1_Value.md&amp;value=---%0Auid%3A%20IPA.Utilities.Ref%601.Value%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>
  209. </span>
  210. <span class="small pull-right mobile-hide">
  211. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/01a05403ef4edd9646be6b698e7da30c741965e5/IPA.Loader/Utilities/Ref.cs/#L35">View Source</a>
  212. </span>
  213. <a id="IPA_Utilities_Ref_1_Value_" data-uid="IPA.Utilities.Ref`1.Value*"></a>
  214. <h4 id="IPA_Utilities_Ref_1_Value" data-uid="IPA.Utilities.Ref`1.Value">Value</h4>
  215. <div class="markdown level1 summary"><p>The value of the reference</p>
  216. </div>
  217. <div class="markdown level1 conceptual"></div>
  218. <h5 class="decalaration">Declaration</h5>
  219. <div class="codewrapper">
  220. <pre><code class="lang-csharp hljs">public T Value { get; set; }</code></pre>
  221. </div>
  222. <h5 class="propertyValue">Property Value</h5>
  223. <table class="table table-bordered table-striped table-condensed">
  224. <thead>
  225. <tr>
  226. <th>Type</th>
  227. <th>Description</th>
  228. </tr>
  229. </thead>
  230. <tbody>
  231. <tr>
  232. <td><span class="xref">T</span></td>
  233. <td><p>the value wrapped by this <a class="xref" href="IPA.Utilities.Ref-1.html">Ref&lt;T&gt;</a></p>
  234. </td>
  235. </tr>
  236. </tbody>
  237. </table>
  238. <h3 id="methods">Methods
  239. </h3>
  240. <span class="small pull-right mobile-hide">
  241. <span class="divider">|</span>
  242. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_Ref_1_CompareTo__0_.md&amp;value=---%0Auid%3A%20IPA.Utilities.Ref%601.CompareTo(%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>
  243. </span>
  244. <span class="small pull-right mobile-hide">
  245. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/01a05403ef4edd9646be6b698e7da30c741965e5/IPA.Loader/Utilities/Ref.cs/#L104">View Source</a>
  246. </span>
  247. <a id="IPA_Utilities_Ref_1_CompareTo_" data-uid="IPA.Utilities.Ref`1.CompareTo*"></a>
  248. <h4 id="IPA_Utilities_Ref_1_CompareTo__0_" data-uid="IPA.Utilities.Ref`1.CompareTo(`0)">CompareTo(T)</h4>
  249. <div class="markdown level1 summary"><p>Compares the wrapped object to the other object.</p>
  250. </div>
  251. <div class="markdown level1 conceptual"></div>
  252. <h5 class="decalaration">Declaration</h5>
  253. <div class="codewrapper">
  254. <pre><code class="lang-csharp hljs">public int CompareTo(T other)</code></pre>
  255. </div>
  256. <h5 class="parameters">Parameters</h5>
  257. <table class="table table-bordered table-striped table-condensed">
  258. <thead>
  259. <tr>
  260. <th>Type</th>
  261. <th>Name</th>
  262. <th>Description</th>
  263. </tr>
  264. </thead>
  265. <tbody>
  266. <tr>
  267. <td><span class="xref">T</span></td>
  268. <td><span class="parametername">other</span></td>
  269. <td><p>the object to compare to</p>
  270. </td>
  271. </tr>
  272. </tbody>
  273. </table>
  274. <h5 class="returns">Returns</h5>
  275. <table class="table table-bordered table-striped table-condensed">
  276. <thead>
  277. <tr>
  278. <th>Type</th>
  279. <th>Description</th>
  280. </tr>
  281. </thead>
  282. <tbody>
  283. <tr>
  284. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">Int32</a></td>
  285. <td><p>the value of the comparison</p>
  286. </td>
  287. </tr>
  288. </tbody>
  289. </table>
  290. <span class="small pull-right mobile-hide">
  291. <span class="divider">|</span>
  292. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_Ref_1_CompareTo_IPA_Utilities_Ref__0__.md&amp;value=---%0Auid%3A%20IPA.Utilities.Ref%601.CompareTo(IPA.Utilities.Ref%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>
  293. </span>
  294. <span class="small pull-right mobile-hide">
  295. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/01a05403ef4edd9646be6b698e7da30c741965e5/IPA.Loader/Utilities/Ref.cs/#L116">View Source</a>
  296. </span>
  297. <a id="IPA_Utilities_Ref_1_CompareTo_" data-uid="IPA.Utilities.Ref`1.CompareTo*"></a>
  298. <h4 id="IPA_Utilities_Ref_1_CompareTo_IPA_Utilities_Ref__0__" data-uid="IPA.Utilities.Ref`1.CompareTo(IPA.Utilities.Ref{`0})">CompareTo(Ref&lt;T&gt;)</h4>
  299. <div class="markdown level1 summary"><p>Compares the wrapped object to the other wrapped object.</p>
  300. </div>
  301. <div class="markdown level1 conceptual"></div>
  302. <h5 class="decalaration">Declaration</h5>
  303. <div class="codewrapper">
  304. <pre><code class="lang-csharp hljs">public int CompareTo(Ref&lt;T&gt; other)</code></pre>
  305. </div>
  306. <h5 class="parameters">Parameters</h5>
  307. <table class="table table-bordered table-striped table-condensed">
  308. <thead>
  309. <tr>
  310. <th>Type</th>
  311. <th>Name</th>
  312. <th>Description</th>
  313. </tr>
  314. </thead>
  315. <tbody>
  316. <tr>
  317. <td><a class="xref" href="IPA.Utilities.Ref-1.html">Ref</a>&lt;T&gt;</td>
  318. <td><span class="parametername">other</span></td>
  319. <td><p>the wrapped object to compare to</p>
  320. </td>
  321. </tr>
  322. </tbody>
  323. </table>
  324. <h5 class="returns">Returns</h5>
  325. <table class="table table-bordered table-striped table-condensed">
  326. <thead>
  327. <tr>
  328. <th>Type</th>
  329. <th>Description</th>
  330. </tr>
  331. </thead>
  332. <tbody>
  333. <tr>
  334. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">Int32</a></td>
  335. <td><p>the value of the comparison</p>
  336. </td>
  337. </tr>
  338. </tbody>
  339. </table>
  340. <span class="small pull-right mobile-hide">
  341. <span class="divider">|</span>
  342. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_Ref_1_Verify.md&amp;value=---%0Auid%3A%20IPA.Utilities.Ref%601.Verify%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>
  343. </span>
  344. <span class="small pull-right mobile-hide">
  345. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/01a05403ef4edd9646be6b698e7da30c741965e5/IPA.Loader/Utilities/Ref.cs/#L94">View Source</a>
  346. </span>
  347. <a id="IPA_Utilities_Ref_1_Verify_" data-uid="IPA.Utilities.Ref`1.Verify*"></a>
  348. <h4 id="IPA_Utilities_Ref_1_Verify" data-uid="IPA.Utilities.Ref`1.Verify">Verify()</h4>
  349. <div class="markdown level1 summary"><p>Throws error if one was set.</p>
  350. </div>
  351. <div class="markdown level1 conceptual"></div>
  352. <h5 class="decalaration">Declaration</h5>
  353. <div class="codewrapper">
  354. <pre><code class="lang-csharp hljs">public void Verify()</code></pre>
  355. </div>
  356. <h3 id="operators">Operators
  357. </h3>
  358. <span class="small pull-right mobile-hide">
  359. <span class="divider">|</span>
  360. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_Ref_1_op_Implicit__0__IPA_Utilities_Ref__0_.md&amp;value=---%0Auid%3A%20IPA.Utilities.Ref%601.op_Implicit(%600)~IPA.Utilities.Ref%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>
  361. </span>
  362. <span class="small pull-right mobile-hide">
  363. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/01a05403ef4edd9646be6b698e7da30c741965e5/IPA.Loader/Utilities/Ref.cs/#L86">View Source</a>
  364. </span>
  365. <a id="IPA_Utilities_Ref_1_op_Implicit_" data-uid="IPA.Utilities.Ref`1.op_Implicit*"></a>
  366. <h4 id="IPA_Utilities_Ref_1_op_Implicit__0__IPA_Utilities_Ref__0_" data-uid="IPA.Utilities.Ref`1.op_Implicit(`0)~IPA.Utilities.Ref{`0}">Implicit(T to Ref&lt;T&gt;)</h4>
  367. <div class="markdown level1 summary"><p>Converts a value T to a reference to that object. Will overwrite the reference in the left hand expression if there is one.</p>
  368. </div>
  369. <div class="markdown level1 conceptual"></div>
  370. <h5 class="decalaration">Declaration</h5>
  371. <div class="codewrapper">
  372. <pre><code class="lang-csharp hljs">public static implicit operator Ref&lt;T&gt;(T toConvert)</code></pre>
  373. </div>
  374. <h5 class="parameters">Parameters</h5>
  375. <table class="table table-bordered table-striped table-condensed">
  376. <thead>
  377. <tr>
  378. <th>Type</th>
  379. <th>Name</th>
  380. <th>Description</th>
  381. </tr>
  382. </thead>
  383. <tbody>
  384. <tr>
  385. <td><span class="xref">T</span></td>
  386. <td><span class="parametername">toConvert</span></td>
  387. <td><p>the value to wrap in the Ref</p>
  388. </td>
  389. </tr>
  390. </tbody>
  391. </table>
  392. <h5 class="returns">Returns</h5>
  393. <table class="table table-bordered table-striped table-condensed">
  394. <thead>
  395. <tr>
  396. <th>Type</th>
  397. <th>Description</th>
  398. </tr>
  399. </thead>
  400. <tbody>
  401. <tr>
  402. <td><a class="xref" href="IPA.Utilities.Ref-1.html">Ref</a>&lt;T&gt;</td>
  403. <td><p>the Ref wrapping the value</p>
  404. </td>
  405. </tr>
  406. </tbody>
  407. </table>
  408. <span class="small pull-right mobile-hide">
  409. <span class="divider">|</span>
  410. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_Ref_1_op_Implicit_IPA_Utilities_Ref__0____0.md&amp;value=---%0Auid%3A%20IPA.Utilities.Ref%601.op_Implicit(IPA.Utilities.Ref%7B%600%7D)~%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>
  411. </span>
  412. <span class="small pull-right mobile-hide">
  413. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/01a05403ef4edd9646be6b698e7da30c741965e5/IPA.Loader/Utilities/Ref.cs/#L76">View Source</a>
  414. </span>
  415. <a id="IPA_Utilities_Ref_1_op_Implicit_" data-uid="IPA.Utilities.Ref`1.op_Implicit*"></a>
  416. <h4 id="IPA_Utilities_Ref_1_op_Implicit_IPA_Utilities_Ref__0____0" data-uid="IPA.Utilities.Ref`1.op_Implicit(IPA.Utilities.Ref{`0})~`0">Implicit(Ref&lt;T&gt; to T)</h4>
  417. <div class="markdown level1 summary"><p>Converts to referenced type, returning the stored reference.</p>
  418. </div>
  419. <div class="markdown level1 conceptual"></div>
  420. <h5 class="decalaration">Declaration</h5>
  421. <div class="codewrapper">
  422. <pre><code class="lang-csharp hljs">public static implicit operator T(Ref&lt;T&gt; self)</code></pre>
  423. </div>
  424. <h5 class="parameters">Parameters</h5>
  425. <table class="table table-bordered table-striped table-condensed">
  426. <thead>
  427. <tr>
  428. <th>Type</th>
  429. <th>Name</th>
  430. <th>Description</th>
  431. </tr>
  432. </thead>
  433. <tbody>
  434. <tr>
  435. <td><a class="xref" href="IPA.Utilities.Ref-1.html">Ref</a>&lt;T&gt;</td>
  436. <td><span class="parametername">self</span></td>
  437. <td><p>the object to be de-referenced</p>
  438. </td>
  439. </tr>
  440. </tbody>
  441. </table>
  442. <h5 class="returns">Returns</h5>
  443. <table class="table table-bordered table-striped table-condensed">
  444. <thead>
  445. <tr>
  446. <th>Type</th>
  447. <th>Description</th>
  448. </tr>
  449. </thead>
  450. <tbody>
  451. <tr>
  452. <td><span class="xref">T</span></td>
  453. <td><p>the value referenced by the object</p>
  454. </td>
  455. </tr>
  456. </tbody>
  457. </table>
  458. <h3 id="implements">Implements</h3>
  459. <div>
  460. <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icomparable-1">System.IComparable&lt;T&gt;</a>
  461. </div>
  462. <div>
  463. <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icomparable-1">System.IComparable&lt;T&gt;</a>
  464. </div>
  465. <h3 id="extensionmethods">Extension Methods</h3>
  466. <div>
  467. <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>
  468. </div>
  469. <div>
  470. <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>
  471. </div>
  472. <div>
  473. <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>
  474. </div>
  475. <div>
  476. <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>
  477. </div>
  478. <div>
  479. <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>
  480. </div>
  481. </article>
  482. </div>
  483. <div class="hidden-sm col-md-2" role="complementary">
  484. <div class="sideaffix">
  485. <div class="contribution">
  486. <ul class="nav">
  487. <li>
  488. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_Ref_1.md&amp;value=---%0Auid%3A%20IPA.Utilities.Ref%601%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>
  489. </li>
  490. <li>
  491. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/01a05403ef4edd9646be6b698e7da30c741965e5/IPA.Loader/Utilities/Ref.cs/#L28" class="contribution-link">View Source</a>
  492. </li>
  493. </ul>
  494. </div>
  495. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  496. <h5>In This Article</h5>
  497. <div></div>
  498. </nav>
  499. </div>
  500. </div>
  501. </div>
  502. </div>
  503. <footer>
  504. <div class="grad-bottom"></div>
  505. <div class="footer">
  506. <div class="container">
  507. <span class="pull-right">
  508. <a href="#top">Back to top</a>
  509. </span>
  510. <span>Generated by <strong>DocFX</strong></span>
  511. </div>
  512. </div>
  513. </footer>
  514. </div>
  515. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  516. <script type="text/javascript" src="../styles/docfx.js"></script>
  517. <script type="text/javascript" src="../styles/main.js"></script>
  518. </body>
  519. </html>