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.

328 lines
17 KiB

  1. <!DOCTYPE html>
  2. <!--[if IE]><![endif]-->
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <title>Class AlmostVersionConverter
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class AlmostVersionConverter
  11. ">
  12. <meta name="generator" content="docfx 2.48.0.0">
  13. <link rel="shortcut icon" href="../favicon.ico">
  14. <link rel="stylesheet" href="../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../styles/docfx.css">
  16. <link rel="stylesheet" href="../styles/main.css">
  17. <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
  18. <meta property="docfx:navrel" content="../toc.html">
  19. <meta property="docfx:tocrel" content="toc.html">
  20. <meta property="docfx:rel" content="../">
  21. <meta property="docfx:newtab" content="true">
  22. </head> <body data-spy="scroll" data-target="#affix" data-offset="120">
  23. <div id="wrapper">
  24. <header>
  25. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  26. <div class="container">
  27. <div class="navbar-header">
  28. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  29. <span class="sr-only">Toggle navigation</span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. <span class="icon-bar"></span>
  33. </button>
  34. <a class="navbar-brand" href="../index.html">
  35. <img id="logo" class="svg" src="../logo.svg" alt="">
  36. </a>
  37. </div>
  38. <div class="collapse navbar-collapse" id="navbar">
  39. <form class="navbar-form navbar-right" role="search" id="search">
  40. <div class="form-group">
  41. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  42. </div>
  43. </form>
  44. </div>
  45. </div>
  46. </nav>
  47. <div class="subnav navbar navbar-default">
  48. <div class="container hide-when-search" id="breadcrumb">
  49. <ul class="breadcrumb">
  50. <li></li>
  51. </ul>
  52. </div>
  53. </div>
  54. </header>
  55. <div class="container body-content">
  56. <div id="search-results">
  57. <div class="search-list"></div>
  58. <div class="sr-items">
  59. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  60. </div>
  61. <ul id="pagination"></ul>
  62. </div>
  63. </div>
  64. <div role="main" class="container body-content hide-when-search">
  65. <div class="sidenav hide-when-search">
  66. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  67. <div class="sidetoggle collapse" id="sidetoggle">
  68. <div id="sidetoc"></div>
  69. </div>
  70. </div>
  71. <div class="article row grid-right">
  72. <div class="col-md-10">
  73. <article class="content wrap" id="_content" data-uid="IPA.Utilities.AlmostVersionConverter">
  74. <h1 id="IPA_Utilities_AlmostVersionConverter" data-uid="IPA.Utilities.AlmostVersionConverter" class="text-break">Class AlmostVersionConverter
  75. </h1>
  76. <div class="markdown level0 summary"><p>A <a class="xref" href="IPA.Config.Stores.ValueConverter-1.html">ValueConverter&lt;T&gt;</a> for <a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a>s.</p>
  77. </div>
  78. <div class="markdown level0 conceptual"></div>
  79. <div class="inheritance">
  80. <h5>Inheritance</h5>
  81. <div class="level0"><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a></div>
  82. <div class="level1"><a class="xref" href="IPA.Config.Stores.ValueConverter-1.html">ValueConverter</a>&lt;<a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a>&gt;</div>
  83. <div class="level2"><span class="xref">AlmostVersionConverter</span></div>
  84. </div>
  85. <div classs="implements">
  86. <h5>Implements</h5>
  87. <div><a class="xref" href="IPA.Config.Stores.IValueConverter.html">IValueConverter</a></div>
  88. </div>
  89. <div class="inheritedMembers">
  90. <h5>Inherited Members</h5>
  91. <div>
  92. <a class="xref" href="IPA.Config.Stores.ValueConverter-1.html#IPA_Config_Stores_ValueConverter_1_IPA_Config_Stores_IValueConverter_ToValue_System_Object_System_Object_">ValueConverter&lt;AlmostVersion&gt;.IValueConverter.ToValue(Object, Object)</a>
  93. </div>
  94. <div>
  95. <a class="xref" href="IPA.Config.Stores.ValueConverter-1.html#IPA_Config_Stores_ValueConverter_1_IPA_Config_Stores_IValueConverter_FromValue_IPA_Config_Data_Value_System_Object_">ValueConverter&lt;AlmostVersion&gt;.IValueConverter.FromValue(Value, Object)</a>
  96. </div>
  97. <div>
  98. <a class="xref" href="IPA.Config.Stores.ValueConverter-1.html#IPA_Config_Stores_ValueConverter_1_IPA_Config_Stores_IValueConverter_Type">ValueConverter&lt;AlmostVersion&gt;.IValueConverter.Type</a>
  99. </div>
  100. <div>
  101. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.tostring#System_Object_ToString">Object.ToString()</a>
  102. </div>
  103. <div>
  104. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.equals#System_Object_Equals_System_Object_">Object.Equals(Object)</a>
  105. </div>
  106. <div>
  107. <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>
  108. </div>
  109. <div>
  110. <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>
  111. </div>
  112. <div>
  113. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.gethashcode#System_Object_GetHashCode">Object.GetHashCode()</a>
  114. </div>
  115. <div>
  116. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.gettype#System_Object_GetType">Object.GetType()</a>
  117. </div>
  118. <div>
  119. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.memberwiseclone#System_Object_MemberwiseClone">Object.MemberwiseClone()</a>
  120. </div>
  121. </div>
  122. <h6><strong>Namespace</strong>: <a class="xref" href="IPA.Utilities.html">IPA.Utilities</a></h6>
  123. <h6><strong>Assembly</strong>: IPA.Loader.dll</h6>
  124. <h5 id="IPA_Utilities_AlmostVersionConverter_syntax">Syntax</h5>
  125. <div class="codewrapper">
  126. <pre><code class="lang-csharp hljs">public sealed class AlmostVersionConverter : ValueConverter&lt;AlmostVersion&gt;, IValueConverter</code></pre>
  127. </div>
  128. <h3 id="methods">Methods
  129. </h3>
  130. <span class="small pull-right mobile-hide">
  131. <span class="divider">|</span>
  132. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/4.0.0-beta/docs/override/new?filename=IPA_Utilities_AlmostVersionConverter_FromValue_IPA_Config_Data_Value_System_Object_.md&amp;value=---%0Auid%3A%20IPA.Utilities.AlmostVersionConverter.FromValue(IPA.Config.Data.Value%2CSystem.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>
  133. </span>
  134. <span class="small pull-right mobile-hide">
  135. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/eabcfb5b1a7a9dc095bb88e867ba492987423d49/IPA.Loader/Utilities/AlmostVersion.cs/#L259">View Source</a>
  136. </span>
  137. <a id="IPA_Utilities_AlmostVersionConverter_FromValue_" data-uid="IPA.Utilities.AlmostVersionConverter.FromValue*"></a>
  138. <h4 id="IPA_Utilities_AlmostVersionConverter_FromValue_IPA_Config_Data_Value_System_Object_" data-uid="IPA.Utilities.AlmostVersionConverter.FromValue(IPA.Config.Data.Value,System.Object)">FromValue(Value, Object)</h4>
  139. <div class="markdown level1 summary"><p>Converts a <a class="xref" href="IPA.Config.Data.Text.html">Text</a> node into an <a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a>.</p>
  140. </div>
  141. <div class="markdown level1 conceptual"></div>
  142. <h5 class="decalaration">Declaration</h5>
  143. <div class="codewrapper">
  144. <pre><code class="lang-csharp hljs">public override AlmostVersion FromValue(Value value, object parent)</code></pre>
  145. </div>
  146. <h5 class="parameters">Parameters</h5>
  147. <table class="table table-bordered table-striped table-condensed">
  148. <thead>
  149. <tr>
  150. <th>Type</th>
  151. <th>Name</th>
  152. <th>Description</th>
  153. </tr>
  154. </thead>
  155. <tbody>
  156. <tr>
  157. <td><a class="xref" href="IPA.Config.Data.Value.html">Value</a></td>
  158. <td><span class="parametername">value</span></td>
  159. <td><p>the <a class="xref" href="IPA.Config.Data.Text.html">Text</a> node to convert</p>
  160. </td>
  161. </tr>
  162. <tr>
  163. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a></td>
  164. <td><span class="parametername">parent</span></td>
  165. <td><p>the owner of the new object</p>
  166. </td>
  167. </tr>
  168. </tbody>
  169. </table>
  170. <h5 class="returns">Returns</h5>
  171. <table class="table table-bordered table-striped table-condensed">
  172. <thead>
  173. <tr>
  174. <th>Type</th>
  175. <th>Description</th>
  176. </tr>
  177. </thead>
  178. <tbody>
  179. <tr>
  180. <td><a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a></td>
  181. <td></td>
  182. </tr>
  183. </tbody>
  184. </table>
  185. <h5 class="overrides">Overrides</h5>
  186. <div><span class="xref">IPA.Config.Stores.ValueConverter&lt;IPA.Utilities.AlmostVersion&gt;.FromValue(IPA.Config.Data.Value, System.Object)</span></div>
  187. <span class="small pull-right mobile-hide">
  188. <span class="divider">|</span>
  189. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/4.0.0-beta/docs/override/new?filename=IPA_Utilities_AlmostVersionConverter_ToValue_IPA_Utilities_AlmostVersion_System_Object_.md&amp;value=---%0Auid%3A%20IPA.Utilities.AlmostVersionConverter.ToValue(IPA.Utilities.AlmostVersion%2CSystem.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>
  190. </span>
  191. <span class="small pull-right mobile-hide">
  192. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/eabcfb5b1a7a9dc095bb88e867ba492987423d49/IPA.Loader/Utilities/AlmostVersion.cs/#L267">View Source</a>
  193. </span>
  194. <a id="IPA_Utilities_AlmostVersionConverter_ToValue_" data-uid="IPA.Utilities.AlmostVersionConverter.ToValue*"></a>
  195. <h4 id="IPA_Utilities_AlmostVersionConverter_ToValue_IPA_Utilities_AlmostVersion_System_Object_" data-uid="IPA.Utilities.AlmostVersionConverter.ToValue(IPA.Utilities.AlmostVersion,System.Object)">ToValue(AlmostVersion, Object)</h4>
  196. <div class="markdown level1 summary"><p>Converts an <a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a> to a <a class="xref" href="IPA.Config.Data.Text.html">Text</a> node.</p>
  197. </div>
  198. <div class="markdown level1 conceptual"></div>
  199. <h5 class="decalaration">Declaration</h5>
  200. <div class="codewrapper">
  201. <pre><code class="lang-csharp hljs">public override Value ToValue(AlmostVersion obj, object parent)</code></pre>
  202. </div>
  203. <h5 class="parameters">Parameters</h5>
  204. <table class="table table-bordered table-striped table-condensed">
  205. <thead>
  206. <tr>
  207. <th>Type</th>
  208. <th>Name</th>
  209. <th>Description</th>
  210. </tr>
  211. </thead>
  212. <tbody>
  213. <tr>
  214. <td><a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a></td>
  215. <td><span class="parametername">obj</span></td>
  216. <td><p>the <a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a> to convert</p>
  217. </td>
  218. </tr>
  219. <tr>
  220. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a></td>
  221. <td><span class="parametername">parent</span></td>
  222. <td><p>the parent of <code data-dev-comment-type="paramref" class="paramref">obj</code></p>
  223. </td>
  224. </tr>
  225. </tbody>
  226. </table>
  227. <h5 class="returns">Returns</h5>
  228. <table class="table table-bordered table-striped table-condensed">
  229. <thead>
  230. <tr>
  231. <th>Type</th>
  232. <th>Description</th>
  233. </tr>
  234. </thead>
  235. <tbody>
  236. <tr>
  237. <td><a class="xref" href="IPA.Config.Data.Value.html">Value</a></td>
  238. <td><p>a <a class="xref" href="IPA.Config.Data.Text.html">Text</a> node representing <code data-dev-comment-type="paramref" class="paramref">obj</code></p>
  239. </td>
  240. </tr>
  241. </tbody>
  242. </table>
  243. <h5 class="overrides">Overrides</h5>
  244. <div><span class="xref">IPA.Config.Stores.ValueConverter&lt;IPA.Utilities.AlmostVersion&gt;.ToValue(IPA.Utilities.AlmostVersion, System.Object)</span></div>
  245. <h3 id="implements">Implements</h3>
  246. <div>
  247. <a class="xref" href="IPA.Config.Stores.IValueConverter.html">IValueConverter</a>
  248. </div>
  249. <h3 id="extensionmethods">Extension Methods</h3>
  250. <div>
  251. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetField_System_Object_System_String_System_Object_">ReflectionUtil.SetField(Object, String, Object)</a>
  252. </div>
  253. <div>
  254. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetField__1___0_System_String_System_Object_">ReflectionUtil.SetField&lt;T&gt;(T, String, Object)</a>
  255. </div>
  256. <div>
  257. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_GetField__1_System_Object_System_String_">ReflectionUtil.GetField&lt;T&gt;(Object, String)</a>
  258. </div>
  259. <div>
  260. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetProperty_System_Object_System_String_System_Object_">ReflectionUtil.SetProperty(Object, String, Object)</a>
  261. </div>
  262. <div>
  263. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetProperty__1___0_System_String_System_Object_">ReflectionUtil.SetProperty&lt;T&gt;(T, String, Object)</a>
  264. </div>
  265. <div>
  266. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokeMethod_System_Object_System_String_System_Object___">ReflectionUtil.InvokeMethod(Object, String, Object[])</a>
  267. </div>
  268. <div>
  269. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokeMethod__1___0_System_String_System_Object___">ReflectionUtil.InvokeMethod&lt;T&gt;(T, String, Object[])</a>
  270. </div>
  271. <div>
  272. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokeMethod__1_System_Object_System_String_System_Object___">ReflectionUtil.InvokeMethod&lt;T&gt;(Object, String, Object[])</a>
  273. </div>
  274. <div>
  275. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokeMethod__2___1_System_String_System_Object___">ReflectionUtil.InvokeMethod&lt;T, U&gt;(U, String, Object[])</a>
  276. </div>
  277. </article>
  278. </div>
  279. <div class="hidden-sm col-md-2" role="complementary">
  280. <div class="sideaffix">
  281. <div class="contribution">
  282. <ul class="nav">
  283. <li>
  284. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/4.0.0-beta/docs/override/new?filename=IPA_Utilities_AlmostVersionConverter.md&amp;value=---%0Auid%3A%20IPA.Utilities.AlmostVersionConverter%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>
  285. </li>
  286. <li>
  287. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/eabcfb5b1a7a9dc095bb88e867ba492987423d49/IPA.Loader/Utilities/AlmostVersion.cs/#L251" class="contribution-link">View Source</a>
  288. </li>
  289. </ul>
  290. </div>
  291. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  292. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  293. </nav>
  294. </div>
  295. </div>
  296. </div>
  297. </div>
  298. <footer>
  299. <div class="grad-bottom"></div>
  300. <div class="footer">
  301. <div class="container">
  302. <span class="pull-right">
  303. <a href="#top">Back to top</a>
  304. </span>
  305. <span>Generated by <strong>DocFX</strong></span>
  306. </div>
  307. </div>
  308. </footer>
  309. </div>
  310. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  311. <script type="text/javascript" src="../styles/docfx.js"></script>
  312. <script type="text/javascript" src="../styles/main.js"></script>
  313. </body>
  314. </html>