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.

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