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.

923 lines
52 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 AlmostVersion
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class AlmostVersion
  11. ">
  12. <meta name="generator" content="docfx 2.45.1.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.AlmostVersion">
  74. <h1 id="IPA_Utilities_AlmostVersion" data-uid="IPA.Utilities.AlmostVersion" class="text-break">Class AlmostVersion
  75. </h1>
  76. <div class="markdown level0 summary"><p>A type that wraps <see cref="!:SemVer.Version"></see> so that the string of the version is stored when the string is
  77. not a valid <see cref="!:SemVer.Version"></see>.</p>
  78. </div>
  79. <div class="markdown level0 conceptual"></div>
  80. <div class="inheritance">
  81. <h5>Inheritance</h5>
  82. <div class="level0"><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a></div>
  83. <div class="level1"><span class="xref">AlmostVersion</span></div>
  84. </div>
  85. <div classs="implements">
  86. <h5>Implements</h5>
  87. <div><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.icomparable-1">IComparable</a>&lt;<a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a>&gt;</div>
  88. <div><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.icomparable-1">IComparable</a>&lt;<span class="xref">SemVer.Version</span>&gt;</div>
  89. </div>
  90. <div class="inheritedMembers">
  91. <h5>Inherited Members</h5>
  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.gettype#System_Object_GetType">Object.GetType()</a>
  100. </div>
  101. <div>
  102. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.memberwiseclone#System_Object_MemberwiseClone">Object.MemberwiseClone()</a>
  103. </div>
  104. </div>
  105. <h6><strong>Namespace</strong>: <a class="xref" href="IPA.Utilities.html">IPA.Utilities</a></h6>
  106. <h6><strong>Assembly</strong>: IPA.Loader.dll</h6>
  107. <h5 id="IPA_Utilities_AlmostVersion_syntax">Syntax</h5>
  108. <div class="codewrapper">
  109. <pre><code class="lang-csharp hljs">public class AlmostVersion : IComparable&lt;AlmostVersion&gt;, IComparable&lt;SemVer.Version&gt;</code></pre>
  110. </div>
  111. <h3 id="constructors">Constructors
  112. </h3>
  113. <span class="small pull-right mobile-hide">
  114. <span class="divider">|</span>
  115. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_AlmostVersion__ctor_SemVer_Version_.md&amp;value=---%0Auid%3A%20IPA.Utilities.AlmostVersion.%23ctor(SemVer.Version)%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>
  116. </span>
  117. <span class="small pull-right mobile-hide">
  118. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/ce02c869b8d3e6db117305e09ff275b36b7c0065/IPA.Loader/Utilities/AlmostVersion.cs/#L42">View Source</a>
  119. </span>
  120. <a id="IPA_Utilities_AlmostVersion__ctor_" data-uid="IPA.Utilities.AlmostVersion.#ctor*"></a>
  121. <h4 id="IPA_Utilities_AlmostVersion__ctor_SemVer_Version_" data-uid="IPA.Utilities.AlmostVersion.#ctor(SemVer.Version)">AlmostVersion(SemVer.Version)</h4>
  122. <div class="markdown level1 summary"><p>Creates an <a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a> from the <see cref="!:SemVer.Version"></see> provided in <code data-dev-comment-type="paramref" class="paramref">ver</code>.</p>
  123. </div>
  124. <div class="markdown level1 conceptual"></div>
  125. <h5 class="decalaration">Declaration</h5>
  126. <div class="codewrapper">
  127. <pre><code class="lang-csharp hljs">public AlmostVersion(SemVer.Version ver)</code></pre>
  128. </div>
  129. <h5 class="parameters">Parameters</h5>
  130. <table class="table table-bordered table-striped table-condensed">
  131. <thead>
  132. <tr>
  133. <th>Type</th>
  134. <th>Name</th>
  135. <th>Description</th>
  136. </tr>
  137. </thead>
  138. <tbody>
  139. <tr>
  140. <td><span class="xref">SemVer.Version</span></td>
  141. <td><span class="parametername">ver</span></td>
  142. <td><p>the <see cref="!:SemVer.Version"></see> to store</p>
  143. </td>
  144. </tr>
  145. </tbody>
  146. </table>
  147. <span class="small pull-right mobile-hide">
  148. <span class="divider">|</span>
  149. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_AlmostVersion__ctor_System_String_.md&amp;value=---%0Auid%3A%20IPA.Utilities.AlmostVersion.%23ctor(System.String)%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>
  150. </span>
  151. <span class="small pull-right mobile-hide">
  152. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/ce02c869b8d3e6db117305e09ff275b36b7c0065/IPA.Loader/Utilities/AlmostVersion.cs/#L32">View Source</a>
  153. </span>
  154. <a id="IPA_Utilities_AlmostVersion__ctor_" data-uid="IPA.Utilities.AlmostVersion.#ctor*"></a>
  155. <h4 id="IPA_Utilities_AlmostVersion__ctor_System_String_" data-uid="IPA.Utilities.AlmostVersion.#ctor(System.String)">AlmostVersion(String)</h4>
  156. <div class="markdown level1 summary"><p>Creates a new <a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a> with the version string provided in <code data-dev-comment-type="paramref" class="paramref">vertext</code>.</p>
  157. </div>
  158. <div class="markdown level1 conceptual"></div>
  159. <h5 class="decalaration">Declaration</h5>
  160. <div class="codewrapper">
  161. <pre><code class="lang-csharp hljs">public AlmostVersion(string vertext)</code></pre>
  162. </div>
  163. <h5 class="parameters">Parameters</h5>
  164. <table class="table table-bordered table-striped table-condensed">
  165. <thead>
  166. <tr>
  167. <th>Type</th>
  168. <th>Name</th>
  169. <th>Description</th>
  170. </tr>
  171. </thead>
  172. <tbody>
  173. <tr>
  174. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  175. <td><span class="parametername">vertext</span></td>
  176. <td><p>the version string to store</p>
  177. </td>
  178. </tr>
  179. </tbody>
  180. </table>
  181. <span class="small pull-right mobile-hide">
  182. <span class="divider">|</span>
  183. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_AlmostVersion__ctor_System_String_IPA_Utilities_AlmostVersion_.md&amp;value=---%0Auid%3A%20IPA.Utilities.AlmostVersion.%23ctor(System.String%2CIPA.Utilities.AlmostVersion)%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>
  184. </span>
  185. <span class="small pull-right mobile-hide">
  186. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/ce02c869b8d3e6db117305e09ff275b36b7c0065/IPA.Loader/Utilities/AlmostVersion.cs/#L66">View Source</a>
  187. </span>
  188. <a id="IPA_Utilities_AlmostVersion__ctor_" data-uid="IPA.Utilities.AlmostVersion.#ctor*"></a>
  189. <h4 id="IPA_Utilities_AlmostVersion__ctor_System_String_IPA_Utilities_AlmostVersion_" data-uid="IPA.Utilities.AlmostVersion.#ctor(System.String,IPA.Utilities.AlmostVersion)">AlmostVersion(String, AlmostVersion)</h4>
  190. <div class="markdown level1 summary"><p>Creates a new <a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a> from the version string in <code data-dev-comment-type="paramref" class="paramref">vertext</code> stored the
  191. same way as the <a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a> passed in <code data-dev-comment-type="paramref" class="paramref">copyMode</code>.</p>
  192. </div>
  193. <div class="markdown level1 conceptual"></div>
  194. <h5 class="decalaration">Declaration</h5>
  195. <div class="codewrapper">
  196. <pre><code class="lang-csharp hljs">public AlmostVersion(string vertext, AlmostVersion copyMode)</code></pre>
  197. </div>
  198. <h5 class="parameters">Parameters</h5>
  199. <table class="table table-bordered table-striped table-condensed">
  200. <thead>
  201. <tr>
  202. <th>Type</th>
  203. <th>Name</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.string">String</a></td>
  210. <td><span class="parametername">vertext</span></td>
  211. <td><p>the text to parse as an <a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a></p>
  212. </td>
  213. </tr>
  214. <tr>
  215. <td><a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a></td>
  216. <td><span class="parametername">copyMode</span></td>
  217. <td><p>an <a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a> to copy the storage mode of</p>
  218. </td>
  219. </tr>
  220. </tbody>
  221. </table>
  222. <span class="small pull-right mobile-hide">
  223. <span class="divider">|</span>
  224. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_AlmostVersion__ctor_System_String_IPA_Utilities_AlmostVersion_StoredAs_.md&amp;value=---%0Auid%3A%20IPA.Utilities.AlmostVersion.%23ctor(System.String%2CIPA.Utilities.AlmostVersion.StoredAs)%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>
  225. </span>
  226. <span class="small pull-right mobile-hide">
  227. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/ce02c869b8d3e6db117305e09ff275b36b7c0065/IPA.Loader/Utilities/AlmostVersion.cs/#L54">View Source</a>
  228. </span>
  229. <a id="IPA_Utilities_AlmostVersion__ctor_" data-uid="IPA.Utilities.AlmostVersion.#ctor*"></a>
  230. <h4 id="IPA_Utilities_AlmostVersion__ctor_System_String_IPA_Utilities_AlmostVersion_StoredAs_" data-uid="IPA.Utilities.AlmostVersion.#ctor(System.String,IPA.Utilities.AlmostVersion.StoredAs)">AlmostVersion(String, AlmostVersion.StoredAs)</h4>
  231. <div class="markdown level1 summary"><p>Creates an <a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a> from the version string in <code data-dev-comment-type="paramref" class="paramref">vertext</code> stored using
  232. the storage mode specified in <code data-dev-comment-type="paramref" class="paramref">mode</code>.</p>
  233. </div>
  234. <div class="markdown level1 conceptual"></div>
  235. <h5 class="decalaration">Declaration</h5>
  236. <div class="codewrapper">
  237. <pre><code class="lang-csharp hljs">public AlmostVersion(string vertext, AlmostVersion.StoredAs mode)</code></pre>
  238. </div>
  239. <h5 class="parameters">Parameters</h5>
  240. <table class="table table-bordered table-striped table-condensed">
  241. <thead>
  242. <tr>
  243. <th>Type</th>
  244. <th>Name</th>
  245. <th>Description</th>
  246. </tr>
  247. </thead>
  248. <tbody>
  249. <tr>
  250. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  251. <td><span class="parametername">vertext</span></td>
  252. <td><p>the text to parse as an <a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a></p>
  253. </td>
  254. </tr>
  255. <tr>
  256. <td><a class="xref" href="IPA.Utilities.AlmostVersion.StoredAs.html">AlmostVersion.StoredAs</a></td>
  257. <td><span class="parametername">mode</span></td>
  258. <td><p>the storage mode to store the version in</p>
  259. </td>
  260. </tr>
  261. </tbody>
  262. </table>
  263. <h3 id="properties">Properties
  264. </h3>
  265. <span class="small pull-right mobile-hide">
  266. <span class="divider">|</span>
  267. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_AlmostVersion_SemverValue.md&amp;value=---%0Auid%3A%20IPA.Utilities.AlmostVersion.SemverValue%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>
  268. </span>
  269. <span class="small pull-right mobile-hide">
  270. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/ce02c869b8d3e6db117305e09ff275b36b7c0065/IPA.Loader/Utilities/AlmostVersion.cs/#L106">View Source</a>
  271. </span>
  272. <a id="IPA_Utilities_AlmostVersion_SemverValue_" data-uid="IPA.Utilities.AlmostVersion.SemverValue*"></a>
  273. <h4 id="IPA_Utilities_AlmostVersion_SemverValue" data-uid="IPA.Utilities.AlmostVersion.SemverValue">SemverValue</h4>
  274. <div class="markdown level1 summary"><p>The value of the <a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a> if it was stored as a <see cref="!:SemVer.Version"></see>.</p>
  275. </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 SemVer.Version SemverValue { get; }</code></pre>
  280. </div>
  281. <h5 class="propertyValue">Property Value</h5>
  282. <table class="table table-bordered table-striped table-condensed">
  283. <thead>
  284. <tr>
  285. <th>Type</th>
  286. <th>Description</th>
  287. </tr>
  288. </thead>
  289. <tbody>
  290. <tr>
  291. <td><span class="xref">SemVer.Version</span></td>
  292. <td><p>the stored value as a <see cref="!:SemVer.Version"></see>, or <span class="xref">null</span> if not stored as a version.</p>
  293. </td>
  294. </tr>
  295. </tbody>
  296. </table>
  297. <span class="small pull-right mobile-hide">
  298. <span class="divider">|</span>
  299. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_AlmostVersion_StorageMode.md&amp;value=---%0Auid%3A%20IPA.Utilities.AlmostVersion.StorageMode%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>
  300. </span>
  301. <span class="small pull-right mobile-hide">
  302. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/ce02c869b8d3e6db117305e09ff275b36b7c0065/IPA.Loader/Utilities/AlmostVersion.cs/#L112">View Source</a>
  303. </span>
  304. <a id="IPA_Utilities_AlmostVersion_StorageMode_" data-uid="IPA.Utilities.AlmostVersion.StorageMode*"></a>
  305. <h4 id="IPA_Utilities_AlmostVersion_StorageMode" data-uid="IPA.Utilities.AlmostVersion.StorageMode">StorageMode</h4>
  306. <div class="markdown level1 summary"><p>The way the value is stored, whether it be as a <see cref="!:SemVer.Version"></see> or a <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a>.</p>
  307. </div>
  308. <div class="markdown level1 conceptual"></div>
  309. <h5 class="decalaration">Declaration</h5>
  310. <div class="codewrapper">
  311. <pre><code class="lang-csharp hljs">public AlmostVersion.StoredAs StorageMode { get; }</code></pre>
  312. </div>
  313. <h5 class="propertyValue">Property Value</h5>
  314. <table class="table table-bordered table-striped table-condensed">
  315. <thead>
  316. <tr>
  317. <th>Type</th>
  318. <th>Description</th>
  319. </tr>
  320. </thead>
  321. <tbody>
  322. <tr>
  323. <td><a class="xref" href="IPA.Utilities.AlmostVersion.StoredAs.html">AlmostVersion.StoredAs</a></td>
  324. <td><p>the storage mode used to store this value</p>
  325. </td>
  326. </tr>
  327. </tbody>
  328. </table>
  329. <span class="small pull-right mobile-hide">
  330. <span class="divider">|</span>
  331. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_AlmostVersion_StringValue.md&amp;value=---%0Auid%3A%20IPA.Utilities.AlmostVersion.StringValue%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>
  332. </span>
  333. <span class="small pull-right mobile-hide">
  334. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/ce02c869b8d3e6db117305e09ff275b36b7c0065/IPA.Loader/Utilities/AlmostVersion.cs/#L100">View Source</a>
  335. </span>
  336. <a id="IPA_Utilities_AlmostVersion_StringValue_" data-uid="IPA.Utilities.AlmostVersion.StringValue*"></a>
  337. <h4 id="IPA_Utilities_AlmostVersion_StringValue" data-uid="IPA.Utilities.AlmostVersion.StringValue">StringValue</h4>
  338. <div class="markdown level1 summary"><p>The value of the <a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a> if it was stored as a <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a>.</p>
  339. </div>
  340. <div class="markdown level1 conceptual"></div>
  341. <h5 class="decalaration">Declaration</h5>
  342. <div class="codewrapper">
  343. <pre><code class="lang-csharp hljs">public string StringValue { get; }</code></pre>
  344. </div>
  345. <h5 class="propertyValue">Property Value</h5>
  346. <table class="table table-bordered table-striped table-condensed">
  347. <thead>
  348. <tr>
  349. <th>Type</th>
  350. <th>Description</th>
  351. </tr>
  352. </thead>
  353. <tbody>
  354. <tr>
  355. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  356. <td><p>the stored value as a <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a>, or <span class="xref">null</span> if not stored as a string.</p>
  357. </td>
  358. </tr>
  359. </tbody>
  360. </table>
  361. <h3 id="methods">Methods
  362. </h3>
  363. <span class="small pull-right mobile-hide">
  364. <span class="divider">|</span>
  365. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_AlmostVersion_CompareTo_IPA_Utilities_AlmostVersion_.md&amp;value=---%0Auid%3A%20IPA.Utilities.AlmostVersion.CompareTo(IPA.Utilities.AlmostVersion)%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>
  366. </span>
  367. <span class="small pull-right mobile-hide">
  368. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/ce02c869b8d3e6db117305e09ff275b36b7c0065/IPA.Loader/Utilities/AlmostVersion.cs/#L134">View Source</a>
  369. </span>
  370. <a id="IPA_Utilities_AlmostVersion_CompareTo_" data-uid="IPA.Utilities.AlmostVersion.CompareTo*"></a>
  371. <h4 id="IPA_Utilities_AlmostVersion_CompareTo_IPA_Utilities_AlmostVersion_" data-uid="IPA.Utilities.AlmostVersion.CompareTo(IPA.Utilities.AlmostVersion)">CompareTo(AlmostVersion)</h4>
  372. <div class="markdown level1 summary"><p>Compares <span class="xref">langword_csharp_this</span> to the <a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a> in <code data-dev-comment-type="paramref" class="paramref">other</code> using <see cref="!:Version.CompareTo(Version)"></see>
  373. or <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string.compareto#System_String_CompareTo_System_String_">CompareTo(String)</a>, depending on the current store.</p>
  374. </div>
  375. <div class="markdown level1 conceptual"></div>
  376. <h5 class="decalaration">Declaration</h5>
  377. <div class="codewrapper">
  378. <pre><code class="lang-csharp hljs">public int CompareTo(AlmostVersion other)</code></pre>
  379. </div>
  380. <h5 class="parameters">Parameters</h5>
  381. <table class="table table-bordered table-striped table-condensed">
  382. <thead>
  383. <tr>
  384. <th>Type</th>
  385. <th>Name</th>
  386. <th>Description</th>
  387. </tr>
  388. </thead>
  389. <tbody>
  390. <tr>
  391. <td><a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a></td>
  392. <td><span class="parametername">other</span></td>
  393. <td><p>the <a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a> to compare to</p>
  394. </td>
  395. </tr>
  396. </tbody>
  397. </table>
  398. <h5 class="returns">Returns</h5>
  399. <table class="table table-bordered table-striped table-condensed">
  400. <thead>
  401. <tr>
  402. <th>Type</th>
  403. <th>Description</th>
  404. </tr>
  405. </thead>
  406. <tbody>
  407. <tr>
  408. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
  409. <td><p>less than 0 if <code data-dev-comment-type="paramref" class="paramref">other</code> is considered bigger than <span class="xref">langword_csharp_this</span>, 0 if equal, and greater than zero if smaller</p>
  410. </td>
  411. </tr>
  412. </tbody>
  413. </table>
  414. <h5 id="IPA_Utilities_AlmostVersion_CompareTo_IPA_Utilities_AlmostVersion__remarks">Remarks</h5>
  415. <div class="markdown level1 remarks"><p>The storage methods of the two objects must be the same, or this will throw an <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.invalidoperationexception">InvalidOperationException</a>.</p>
  416. </div>
  417. <h5 id="IPA_Utilities_AlmostVersion_CompareTo_IPA_Utilities_AlmostVersion__seealso">See Also</h5>
  418. <div class="seealso">
  419. <div><a class="xref" href="IPA.Utilities.AlmostVersion.html#IPA_Utilities_AlmostVersion_CompareTo_SemVer_Version_">CompareTo(SemVer.Version)</a></div>
  420. </div>
  421. <span class="small pull-right mobile-hide">
  422. <span class="divider">|</span>
  423. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_AlmostVersion_CompareTo_SemVer_Version_.md&amp;value=---%0Auid%3A%20IPA.Utilities.AlmostVersion.CompareTo(SemVer.Version)%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>
  424. </span>
  425. <span class="small pull-right mobile-hide">
  426. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/ce02c869b8d3e6db117305e09ff275b36b7c0065/IPA.Loader/Utilities/AlmostVersion.cs/#L156">View Source</a>
  427. </span>
  428. <a id="IPA_Utilities_AlmostVersion_CompareTo_" data-uid="IPA.Utilities.AlmostVersion.CompareTo*"></a>
  429. <h4 id="IPA_Utilities_AlmostVersion_CompareTo_SemVer_Version_" data-uid="IPA.Utilities.AlmostVersion.CompareTo(SemVer.Version)">CompareTo(SemVer.Version)</h4>
  430. <div class="markdown level1 summary"><p>Compares <span class="xref">langword_csharp_this</span> to the <see cref="!:SemVer.Version"></see> in <code data-dev-comment-type="paramref" class="paramref">other</code> using <see cref="!:Version.CompareTo(Version)"></see>.</p>
  431. </div>
  432. <div class="markdown level1 conceptual"></div>
  433. <h5 class="decalaration">Declaration</h5>
  434. <div class="codewrapper">
  435. <pre><code class="lang-csharp hljs">public int CompareTo(SemVer.Version other)</code></pre>
  436. </div>
  437. <h5 class="parameters">Parameters</h5>
  438. <table class="table table-bordered table-striped table-condensed">
  439. <thead>
  440. <tr>
  441. <th>Type</th>
  442. <th>Name</th>
  443. <th>Description</th>
  444. </tr>
  445. </thead>
  446. <tbody>
  447. <tr>
  448. <td><span class="xref">SemVer.Version</span></td>
  449. <td><span class="parametername">other</span></td>
  450. <td><p>the <see cref="!:SemVer.Version"></see> to compare to</p>
  451. </td>
  452. </tr>
  453. </tbody>
  454. </table>
  455. <h5 class="returns">Returns</h5>
  456. <table class="table table-bordered table-striped table-condensed">
  457. <thead>
  458. <tr>
  459. <th>Type</th>
  460. <th>Description</th>
  461. </tr>
  462. </thead>
  463. <tbody>
  464. <tr>
  465. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
  466. <td><p>less than 0 if <code data-dev-comment-type="paramref" class="paramref">other</code> is considered bigger than <span class="xref">langword_csharp_this</span>, 0 if equal, and greater than zero if smaller</p>
  467. </td>
  468. </tr>
  469. </tbody>
  470. </table>
  471. <h5 id="IPA_Utilities_AlmostVersion_CompareTo_SemVer_Version__remarks">Remarks</h5>
  472. <div class="markdown level1 remarks"><p>The storage method of <span class="xref">langword_csharp_this</span> must be <a class="xref" href="IPA.Utilities.AlmostVersion.StoredAs.html#IPA_Utilities_AlmostVersion_StoredAs_SemVer">SemVer</a>, else an <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.invalidoperationexception">InvalidOperationException</a> will
  473. be thrown.</p>
  474. </div>
  475. <h5 id="IPA_Utilities_AlmostVersion_CompareTo_SemVer_Version__seealso">See Also</h5>
  476. <div class="seealso">
  477. <div><a class="xref" href="IPA.Utilities.AlmostVersion.html#IPA_Utilities_AlmostVersion_CompareTo_IPA_Utilities_AlmostVersion_">CompareTo(AlmostVersion)</a></div>
  478. </div>
  479. <span class="small pull-right mobile-hide">
  480. <span class="divider">|</span>
  481. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_AlmostVersion_Equals_System_Object_.md&amp;value=---%0Auid%3A%20IPA.Utilities.AlmostVersion.Equals(System.Object)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  482. </span>
  483. <span class="small pull-right mobile-hide">
  484. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/ce02c869b8d3e6db117305e09ff275b36b7c0065/IPA.Loader/Utilities/AlmostVersion.cs/#L173">View Source</a>
  485. </span>
  486. <a id="IPA_Utilities_AlmostVersion_Equals_" data-uid="IPA.Utilities.AlmostVersion.Equals*"></a>
  487. <h4 id="IPA_Utilities_AlmostVersion_Equals_System_Object_" data-uid="IPA.Utilities.AlmostVersion.Equals(System.Object)">Equals(Object)</h4>
  488. <div class="markdown level1 summary"><p>Performs a strict equality check between <span class="xref">langword_csharp_this</span> and <code data-dev-comment-type="paramref" class="paramref">obj</code>.</p>
  489. </div>
  490. <div class="markdown level1 conceptual"></div>
  491. <h5 class="decalaration">Declaration</h5>
  492. <div class="codewrapper">
  493. <pre><code class="lang-csharp hljs">public override bool Equals(object obj)</code></pre>
  494. </div>
  495. <h5 class="parameters">Parameters</h5>
  496. <table class="table table-bordered table-striped table-condensed">
  497. <thead>
  498. <tr>
  499. <th>Type</th>
  500. <th>Name</th>
  501. <th>Description</th>
  502. </tr>
  503. </thead>
  504. <tbody>
  505. <tr>
  506. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a></td>
  507. <td><span class="parametername">obj</span></td>
  508. <td><p>the object to compare to</p>
  509. </td>
  510. </tr>
  511. </tbody>
  512. </table>
  513. <h5 class="returns">Returns</h5>
  514. <table class="table table-bordered table-striped table-condensed">
  515. <thead>
  516. <tr>
  517. <th>Type</th>
  518. <th>Description</th>
  519. </tr>
  520. </thead>
  521. <tbody>
  522. <tr>
  523. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  524. <td><p><span class="xref">true</span> if they are equal, <span class="xref">false</span> otherwise</p>
  525. </td>
  526. </tr>
  527. </tbody>
  528. </table>
  529. <h5 class="overrides">Overrides</h5>
  530. <div><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.equals#System_Object_Equals_System_Object_">Object.Equals(Object)</a></div>
  531. <h5 id="IPA_Utilities_AlmostVersion_Equals_System_Object__remarks">Remarks</h5>
  532. <div class="markdown level1 remarks"><p>This may return <span class="xref">false</span> where <a class="xref" href="IPA.Utilities.AlmostVersion.html#IPA_Utilities_AlmostVersion_op_Equality_IPA_Utilities_AlmostVersion_IPA_Utilities_AlmostVersion_">Equality(AlmostVersion, AlmostVersion)</a> returns <span class="xref">true</span></p>
  533. </div>
  534. <h5 id="IPA_Utilities_AlmostVersion_Equals_System_Object__seealso">See Also</h5>
  535. <div class="seealso">
  536. <div><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.equals#System_Object_Equals_System_Object_">Equals</a>(<a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a>)</div>
  537. </div>
  538. <span class="small pull-right mobile-hide">
  539. <span class="divider">|</span>
  540. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_AlmostVersion_GetHashCode.md&amp;value=---%0Auid%3A%20IPA.Utilities.AlmostVersion.GetHashCode%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>
  541. </span>
  542. <span class="small pull-right mobile-hide">
  543. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/ce02c869b8d3e6db117305e09ff275b36b7c0065/IPA.Loader/Utilities/AlmostVersion.cs/#L186">View Source</a>
  544. </span>
  545. <a id="IPA_Utilities_AlmostVersion_GetHashCode_" data-uid="IPA.Utilities.AlmostVersion.GetHashCode*"></a>
  546. <h4 id="IPA_Utilities_AlmostVersion_GetHashCode" data-uid="IPA.Utilities.AlmostVersion.GetHashCode">GetHashCode()</h4>
  547. <div class="markdown level1 summary"><p>Default generated hash code function generated by VS.</p>
  548. </div>
  549. <div class="markdown level1 conceptual"></div>
  550. <h5 class="decalaration">Declaration</h5>
  551. <div class="codewrapper">
  552. <pre><code class="lang-csharp hljs">public override int GetHashCode()</code></pre>
  553. </div>
  554. <h5 class="returns">Returns</h5>
  555. <table class="table table-bordered table-striped table-condensed">
  556. <thead>
  557. <tr>
  558. <th>Type</th>
  559. <th>Description</th>
  560. </tr>
  561. </thead>
  562. <tbody>
  563. <tr>
  564. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
  565. <td><p>a value unique to each object, except those that are considered equal by <a class="xref" href="IPA.Utilities.AlmostVersion.html#IPA_Utilities_AlmostVersion_Equals_System_Object_">Equals(Object)</a></p>
  566. </td>
  567. </tr>
  568. </tbody>
  569. </table>
  570. <h5 class="overrides">Overrides</h5>
  571. <div><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.gethashcode#System_Object_GetHashCode">Object.GetHashCode()</a></div>
  572. <h5 id="IPA_Utilities_AlmostVersion_GetHashCode_seealso">See Also</h5>
  573. <div class="seealso">
  574. <div><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.gethashcode#System_Object_GetHashCode">GetHashCode</a>()</div>
  575. </div>
  576. <span class="small pull-right mobile-hide">
  577. <span class="divider">|</span>
  578. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_AlmostVersion_ToString.md&amp;value=---%0Auid%3A%20IPA.Utilities.AlmostVersion.ToString%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>
  579. </span>
  580. <span class="small pull-right mobile-hide">
  581. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/ce02c869b8d3e6db117305e09ff275b36b7c0065/IPA.Loader/Utilities/AlmostVersion.cs/#L121">View Source</a>
  582. </span>
  583. <a id="IPA_Utilities_AlmostVersion_ToString_" data-uid="IPA.Utilities.AlmostVersion.ToString*"></a>
  584. <h4 id="IPA_Utilities_AlmostVersion_ToString" data-uid="IPA.Utilities.AlmostVersion.ToString">ToString()</h4>
  585. <div class="markdown level1 summary"><p>Gets a string representation of the current version. If the value is stored as a string, this returns it. If it is
  586. stored as a <see cref="!:SemVer.Version"></see>, it is equivalent to calling <see cref="!:Version.ToString"></see>.</p>
  587. </div>
  588. <div class="markdown level1 conceptual"></div>
  589. <h5 class="decalaration">Declaration</h5>
  590. <div class="codewrapper">
  591. <pre><code class="lang-csharp hljs">public override string ToString()</code></pre>
  592. </div>
  593. <h5 class="returns">Returns</h5>
  594. <table class="table table-bordered table-striped table-condensed">
  595. <thead>
  596. <tr>
  597. <th>Type</th>
  598. <th>Description</th>
  599. </tr>
  600. </thead>
  601. <tbody>
  602. <tr>
  603. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  604. <td><p>a string representation of the current version</p>
  605. </td>
  606. </tr>
  607. </tbody>
  608. </table>
  609. <h5 class="overrides">Overrides</h5>
  610. <div><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.tostring#System_Object_ToString">Object.ToString()</a></div>
  611. <h5 id="IPA_Utilities_AlmostVersion_ToString_seealso">See Also</h5>
  612. <div class="seealso">
  613. <div><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.tostring#System_Object_ToString">ToString</a>()</div>
  614. </div>
  615. <h3 id="operators">Operators
  616. </h3>
  617. <span class="small pull-right mobile-hide">
  618. <span class="divider">|</span>
  619. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_AlmostVersion_op_Equality_IPA_Utilities_AlmostVersion_IPA_Utilities_AlmostVersion_.md&amp;value=---%0Auid%3A%20IPA.Utilities.AlmostVersion.op_Equality(IPA.Utilities.AlmostVersion%2CIPA.Utilities.AlmostVersion)%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>
  620. </span>
  621. <span class="small pull-right mobile-hide">
  622. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/ce02c869b8d3e6db117305e09ff275b36b7c0065/IPA.Loader/Utilities/AlmostVersion.cs/#L207">View Source</a>
  623. </span>
  624. <a id="IPA_Utilities_AlmostVersion_op_Equality_" data-uid="IPA.Utilities.AlmostVersion.op_Equality*"></a>
  625. <h4 id="IPA_Utilities_AlmostVersion_op_Equality_IPA_Utilities_AlmostVersion_IPA_Utilities_AlmostVersion_" data-uid="IPA.Utilities.AlmostVersion.op_Equality(IPA.Utilities.AlmostVersion,IPA.Utilities.AlmostVersion)">Equality(AlmostVersion, AlmostVersion)</h4>
  626. <div class="markdown level1 summary"><p>Compares two versions, only taking into account the numeric part of the version if they are stored as <see cref="!:SemVer.Version"></see><span class="xref">sealed</span>,
  627. or strict equality if they are stored as <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a>s.</p>
  628. </div>
  629. <div class="markdown level1 conceptual"></div>
  630. <h5 class="decalaration">Declaration</h5>
  631. <div class="codewrapper">
  632. <pre><code class="lang-csharp hljs">public static bool operator ==(AlmostVersion l, AlmostVersion r)</code></pre>
  633. </div>
  634. <h5 class="parameters">Parameters</h5>
  635. <table class="table table-bordered table-striped table-condensed">
  636. <thead>
  637. <tr>
  638. <th>Type</th>
  639. <th>Name</th>
  640. <th>Description</th>
  641. </tr>
  642. </thead>
  643. <tbody>
  644. <tr>
  645. <td><a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a></td>
  646. <td><span class="parametername">l</span></td>
  647. <td><p>the first value to compare</p>
  648. </td>
  649. </tr>
  650. <tr>
  651. <td><a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a></td>
  652. <td><span class="parametername">r</span></td>
  653. <td><p>the second value to compare</p>
  654. </td>
  655. </tr>
  656. </tbody>
  657. </table>
  658. <h5 class="returns">Returns</h5>
  659. <table class="table table-bordered table-striped table-condensed">
  660. <thead>
  661. <tr>
  662. <th>Type</th>
  663. <th>Description</th>
  664. </tr>
  665. </thead>
  666. <tbody>
  667. <tr>
  668. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  669. <td><p><span class="xref">true</span> if they are mostly equal, <span class="xref">false</span> otherwise</p>
  670. </td>
  671. </tr>
  672. </tbody>
  673. </table>
  674. <h5 id="IPA_Utilities_AlmostVersion_op_Equality_IPA_Utilities_AlmostVersion_IPA_Utilities_AlmostVersion__remarks">Remarks</h5>
  675. <div class="markdown level1 remarks"><p>This is a looser equality than <a class="xref" href="IPA.Utilities.AlmostVersion.html#IPA_Utilities_AlmostVersion_Equals_System_Object_">Equals(Object)</a>, meaning that this may return <span class="xref">true</span> where <a class="xref" href="IPA.Utilities.AlmostVersion.html#IPA_Utilities_AlmostVersion_Equals_System_Object_">Equals(Object)</a>
  676. does not.</p>
  677. </div>
  678. <h5 id="IPA_Utilities_AlmostVersion_op_Equality_IPA_Utilities_AlmostVersion_IPA_Utilities_AlmostVersion__seealso">See Also</h5>
  679. <div class="seealso">
  680. <div><a class="xref" href="IPA.Utilities.AlmostVersion.html#IPA_Utilities_AlmostVersion_Equals_System_Object_">Equals(Object)</a></div>
  681. </div>
  682. <span class="small pull-right mobile-hide">
  683. <span class="divider">|</span>
  684. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_AlmostVersion_op_Implicit_IPA_Utilities_AlmostVersion__SemVer_Version.md&amp;value=---%0Auid%3A%20IPA.Utilities.AlmostVersion.op_Implicit(IPA.Utilities.AlmostVersion)~SemVer.Version%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>
  685. </span>
  686. <span class="small pull-right mobile-hide">
  687. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/ce02c869b8d3e6db117305e09ff275b36b7c0065/IPA.Loader/Utilities/AlmostVersion.cs/#L242">View Source</a>
  688. </span>
  689. <a id="IPA_Utilities_AlmostVersion_op_Implicit_" data-uid="IPA.Utilities.AlmostVersion.op_Implicit*"></a>
  690. <h4 id="IPA_Utilities_AlmostVersion_op_Implicit_IPA_Utilities_AlmostVersion__SemVer_Version" data-uid="IPA.Utilities.AlmostVersion.op_Implicit(IPA.Utilities.AlmostVersion)~SemVer.Version">Implicit(AlmostVersion to SemVer.Version)</h4>
  691. <div class="markdown level1 summary"><p>Implicitly converts an <a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a> to <see cref="!:SemVer.Version"></see>, if applicable, using <a class="xref" href="IPA.Utilities.AlmostVersion.html#IPA_Utilities_AlmostVersion_SemverValue">SemverValue</a>.
  692. If not applicable, returns <span class="xref">null</span></p>
  693. </div>
  694. <div class="markdown level1 conceptual"></div>
  695. <h5 class="decalaration">Declaration</h5>
  696. <div class="codewrapper">
  697. <pre><code class="lang-csharp hljs">public static implicit operator SemVer.Version(AlmostVersion av)</code></pre>
  698. </div>
  699. <h5 class="parameters">Parameters</h5>
  700. <table class="table table-bordered table-striped table-condensed">
  701. <thead>
  702. <tr>
  703. <th>Type</th>
  704. <th>Name</th>
  705. <th>Description</th>
  706. </tr>
  707. </thead>
  708. <tbody>
  709. <tr>
  710. <td><a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a></td>
  711. <td><span class="parametername">av</span></td>
  712. <td><p>the <a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a> to convert to a <see cref="!:SemVer.Version"></see></p>
  713. </td>
  714. </tr>
  715. </tbody>
  716. </table>
  717. <h5 class="returns">Returns</h5>
  718. <table class="table table-bordered table-striped table-condensed">
  719. <thead>
  720. <tr>
  721. <th>Type</th>
  722. <th>Description</th>
  723. </tr>
  724. </thead>
  725. <tbody>
  726. <tr>
  727. <td><span class="xref">SemVer.Version</span></td>
  728. <td></td>
  729. </tr>
  730. </tbody>
  731. </table>
  732. <h5 id="IPA_Utilities_AlmostVersion_op_Implicit_IPA_Utilities_AlmostVersion__SemVer_Version_seealso">See Also</h5>
  733. <div class="seealso">
  734. <div><a class="xref" href="IPA.Utilities.AlmostVersion.html#IPA_Utilities_AlmostVersion_SemverValue">SemverValue</a></div>
  735. </div>
  736. <span class="small pull-right mobile-hide">
  737. <span class="divider">|</span>
  738. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_AlmostVersion_op_Implicit_SemVer_Version__IPA_Utilities_AlmostVersion.md&amp;value=---%0Auid%3A%20IPA.Utilities.AlmostVersion.op_Implicit(SemVer.Version)~IPA.Utilities.AlmostVersion%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>
  739. </span>
  740. <span class="small pull-right mobile-hide">
  741. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/ce02c869b8d3e6db117305e09ff275b36b7c0065/IPA.Loader/Utilities/AlmostVersion.cs/#L233">View Source</a>
  742. </span>
  743. <a id="IPA_Utilities_AlmostVersion_op_Implicit_" data-uid="IPA.Utilities.AlmostVersion.op_Implicit*"></a>
  744. <h4 id="IPA_Utilities_AlmostVersion_op_Implicit_SemVer_Version__IPA_Utilities_AlmostVersion" data-uid="IPA.Utilities.AlmostVersion.op_Implicit(SemVer.Version)~IPA.Utilities.AlmostVersion">Implicit(SemVer.Version to AlmostVersion)</h4>
  745. <div class="markdown level1 summary"><p>Implicitly converts a <see cref="!:SemVer.Version"></see> to <a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a> using <a class="xref" href="IPA.Utilities.AlmostVersion.html#IPA_Utilities_AlmostVersion__ctor_SemVer_Version_">AlmostVersion(SemVer.Version)</a>.</p>
  746. </div>
  747. <div class="markdown level1 conceptual"></div>
  748. <h5 class="decalaration">Declaration</h5>
  749. <div class="codewrapper">
  750. <pre><code class="lang-csharp hljs">public static implicit operator AlmostVersion(SemVer.Version ver)</code></pre>
  751. </div>
  752. <h5 class="parameters">Parameters</h5>
  753. <table class="table table-bordered table-striped table-condensed">
  754. <thead>
  755. <tr>
  756. <th>Type</th>
  757. <th>Name</th>
  758. <th>Description</th>
  759. </tr>
  760. </thead>
  761. <tbody>
  762. <tr>
  763. <td><span class="xref">SemVer.Version</span></td>
  764. <td><span class="parametername">ver</span></td>
  765. <td><p>the <see cref="!:SemVer.Version"></see> to convert</p>
  766. </td>
  767. </tr>
  768. </tbody>
  769. </table>
  770. <h5 class="returns">Returns</h5>
  771. <table class="table table-bordered table-striped table-condensed">
  772. <thead>
  773. <tr>
  774. <th>Type</th>
  775. <th>Description</th>
  776. </tr>
  777. </thead>
  778. <tbody>
  779. <tr>
  780. <td><a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a></td>
  781. <td></td>
  782. </tr>
  783. </tbody>
  784. </table>
  785. <h5 id="IPA_Utilities_AlmostVersion_op_Implicit_SemVer_Version__IPA_Utilities_AlmostVersion_seealso">See Also</h5>
  786. <div class="seealso">
  787. <div><a class="xref" href="IPA.Utilities.AlmostVersion.html#IPA_Utilities_AlmostVersion__ctor_SemVer_Version_">AlmostVersion(SemVer.Version)</a></div>
  788. </div>
  789. <span class="small pull-right mobile-hide">
  790. <span class="divider">|</span>
  791. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_AlmostVersion_op_Inequality_IPA_Utilities_AlmostVersion_IPA_Utilities_AlmostVersion_.md&amp;value=---%0Auid%3A%20IPA.Utilities.AlmostVersion.op_Inequality(IPA.Utilities.AlmostVersion%2CIPA.Utilities.AlmostVersion)%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>
  792. </span>
  793. <span class="small pull-right mobile-hide">
  794. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/ce02c869b8d3e6db117305e09ff275b36b7c0065/IPA.Loader/Utilities/AlmostVersion.cs/#L225">View Source</a>
  795. </span>
  796. <a id="IPA_Utilities_AlmostVersion_op_Inequality_" data-uid="IPA.Utilities.AlmostVersion.op_Inequality*"></a>
  797. <h4 id="IPA_Utilities_AlmostVersion_op_Inequality_IPA_Utilities_AlmostVersion_IPA_Utilities_AlmostVersion_" data-uid="IPA.Utilities.AlmostVersion.op_Inequality(IPA.Utilities.AlmostVersion,IPA.Utilities.AlmostVersion)">Inequality(AlmostVersion, AlmostVersion)</h4>
  798. <div class="markdown level1 summary"><p>The opposite of <a class="xref" href="IPA.Utilities.AlmostVersion.html#IPA_Utilities_AlmostVersion_op_Equality_IPA_Utilities_AlmostVersion_IPA_Utilities_AlmostVersion_">Equality(AlmostVersion, AlmostVersion)</a>. Equivalent to <pre><code>!(l == r)</code></pre>.</p>
  799. </div>
  800. <div class="markdown level1 conceptual"></div>
  801. <h5 class="decalaration">Declaration</h5>
  802. <div class="codewrapper">
  803. <pre><code class="lang-csharp hljs">public static bool operator !=(AlmostVersion l, AlmostVersion r)</code></pre>
  804. </div>
  805. <h5 class="parameters">Parameters</h5>
  806. <table class="table table-bordered table-striped table-condensed">
  807. <thead>
  808. <tr>
  809. <th>Type</th>
  810. <th>Name</th>
  811. <th>Description</th>
  812. </tr>
  813. </thead>
  814. <tbody>
  815. <tr>
  816. <td><a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a></td>
  817. <td><span class="parametername">l</span></td>
  818. <td><p>the first value to compare</p>
  819. </td>
  820. </tr>
  821. <tr>
  822. <td><a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a></td>
  823. <td><span class="parametername">r</span></td>
  824. <td><p>the second value to compare</p>
  825. </td>
  826. </tr>
  827. </tbody>
  828. </table>
  829. <h5 class="returns">Returns</h5>
  830. <table class="table table-bordered table-striped table-condensed">
  831. <thead>
  832. <tr>
  833. <th>Type</th>
  834. <th>Description</th>
  835. </tr>
  836. </thead>
  837. <tbody>
  838. <tr>
  839. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  840. <td><p><span class="xref">true</span> if they are not mostly equal, <span class="xref">false</span> otherwise</p>
  841. </td>
  842. </tr>
  843. </tbody>
  844. </table>
  845. <h5 id="IPA_Utilities_AlmostVersion_op_Inequality_IPA_Utilities_AlmostVersion_IPA_Utilities_AlmostVersion__seealso">See Also</h5>
  846. <div class="seealso">
  847. <div><a class="xref" href="IPA.Utilities.AlmostVersion.html#IPA_Utilities_AlmostVersion_op_Equality_IPA_Utilities_AlmostVersion_IPA_Utilities_AlmostVersion_">Equality(AlmostVersion, AlmostVersion)</a></div>
  848. </div>
  849. <h3 id="implements">Implements</h3>
  850. <div>
  851. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.icomparable-1">System.IComparable&lt;T&gt;</a>
  852. </div>
  853. <div>
  854. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.icomparable-1">System.IComparable&lt;T&gt;</a>
  855. </div>
  856. <h3 id="extensionmethods">Extension Methods</h3>
  857. <div>
  858. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetPrivateField_System_Object_System_String_System_Object_">ReflectionUtil.SetPrivateField(Object, String, Object)</a>
  859. </div>
  860. <div>
  861. <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>
  862. </div>
  863. <div>
  864. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetPrivateProperty_System_Object_System_String_System_Object_">ReflectionUtil.SetPrivateProperty(Object, String, Object)</a>
  865. </div>
  866. <div>
  867. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokePrivateMethod_System_Object_System_String_System_Object___">ReflectionUtil.InvokePrivateMethod(Object, String, Object[])</a>
  868. </div>
  869. <div>
  870. <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>
  871. </div>
  872. </article>
  873. </div>
  874. <div class="hidden-sm col-md-2" role="complementary">
  875. <div class="sideaffix">
  876. <div class="contribution">
  877. <ul class="nav">
  878. <li>
  879. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_AlmostVersion.md&amp;value=---%0Auid%3A%20IPA.Utilities.AlmostVersion%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>
  880. </li>
  881. <li>
  882. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/ce02c869b8d3e6db117305e09ff275b36b7c0065/IPA.Loader/Utilities/AlmostVersion.cs/#L11" class="contribution-link">View Source</a>
  883. </li>
  884. </ul>
  885. </div>
  886. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  887. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  888. </nav>
  889. </div>
  890. </div>
  891. </div>
  892. </div>
  893. <footer>
  894. <div class="grad-bottom"></div>
  895. <div class="footer">
  896. <div class="container">
  897. <span class="pull-right">
  898. <a href="#top">Back to top</a>
  899. </span>
  900. <span>Generated by <strong>DocFX</strong></span>
  901. </div>
  902. </div>
  903. </footer>
  904. </div>
  905. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  906. <script type="text/javascript" src="../styles/docfx.js"></script>
  907. <script type="text/javascript" src="../styles/main.js"></script>
  908. </body>
  909. </html>