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.

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