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.

297 lines
15 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.59.3.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.AlmostVersionConverter">
  75. <h1 id="IPA_Utilities_AlmostVersionConverter" data-uid="IPA.Utilities.AlmostVersionConverter" class="text-break">Class AlmostVersionConverter
  76. </h1>
  77. <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>
  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"><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>
  84. <div class="level2"><span class="xref">AlmostVersionConverter</span></div>
  85. </div>
  86. <div class="implements">
  87. <h5>Implements</h5>
  88. <div><a class="xref" href="IPA.Config.Stores.IValueConverter.html">IValueConverter</a></div>
  89. </div>
  90. <div class="inheritedMembers">
  91. <h5>Inherited Members</h5>
  92. <div>
  93. <a class="xref" href="IPA.Config.Stores.ValueConverter-1.html#IPA_Config_Stores_ValueConverter_1_IPA_Config_Stores_IValueConverter_ToValue_System_Nullable_System_Object__System_Object_">ValueConverter&lt;AlmostVersion&gt;.IValueConverter.ToValue(Nullable&lt;Object&gt;, Object)</a>
  94. </div>
  95. <div>
  96. <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>
  97. </div>
  98. <div>
  99. <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>
  100. </div>
  101. </div>
  102. <h6><strong>Namespace</strong>: <a class="xref" href="IPA.Utilities.html">IPA.Utilities</a></h6>
  103. <h6><strong>Assembly</strong>: IPA.Loader.dll</h6>
  104. <h5 id="IPA_Utilities_AlmostVersionConverter_syntax">Syntax</h5>
  105. <div class="codewrapper">
  106. <pre><code class="lang-csharp hljs">public sealed class AlmostVersionConverter : ValueConverter&lt;AlmostVersion&gt;, IValueConverter</code></pre>
  107. </div>
  108. <h3 id="methods">Methods
  109. </h3>
  110. <span class="small pull-right mobile-hide">
  111. <span class="divider">|</span>
  112. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/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>
  113. </span>
  114. <span class="small pull-right mobile-hide">
  115. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/c326c0dc0fbb51050db23b7b892a9528f5ef3ef0/IPA.Loader/Utilities/AlmostVersion.cs/#L308">View Source</a>
  116. </span>
  117. <a id="IPA_Utilities_AlmostVersionConverter_FromValue_" data-uid="IPA.Utilities.AlmostVersionConverter.FromValue*"></a>
  118. <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>
  119. <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>
  120. </div>
  121. <div class="markdown level1 conceptual"></div>
  122. <h5 class="decalaration">Declaration</h5>
  123. <div class="codewrapper">
  124. <pre><code class="lang-csharp hljs">public override AlmostVersion FromValue(Value value, object parent)</code></pre>
  125. </div>
  126. <h5 class="parameters">Parameters</h5>
  127. <table class="table table-bordered table-striped table-condensed">
  128. <thead>
  129. <tr>
  130. <th>Type</th>
  131. <th>Name</th>
  132. <th>Description</th>
  133. </tr>
  134. </thead>
  135. <tbody>
  136. <tr>
  137. <td><a class="xref" href="IPA.Config.Data.Value.html">Value</a></td>
  138. <td><span class="parametername">value</span></td>
  139. <td><p>the <a class="xref" href="IPA.Config.Data.Text.html">Text</a> node to convert</p>
  140. </td>
  141. </tr>
  142. <tr>
  143. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a></td>
  144. <td><span class="parametername">parent</span></td>
  145. <td><p>the owner of the new object</p>
  146. </td>
  147. </tr>
  148. </tbody>
  149. </table>
  150. <h5 class="returns">Returns</h5>
  151. <table class="table table-bordered table-striped table-condensed">
  152. <thead>
  153. <tr>
  154. <th>Type</th>
  155. <th>Description</th>
  156. </tr>
  157. </thead>
  158. <tbody>
  159. <tr>
  160. <td><a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a></td>
  161. <td></td>
  162. </tr>
  163. </tbody>
  164. </table>
  165. <h5 class="overrides">Overrides</h5>
  166. <div><span class="xref">IPA.Config.Stores.ValueConverter&lt;IPA.Utilities.AlmostVersion&gt;.FromValue(IPA.Config.Data.Value, System.Object)</span></div>
  167. <span class="small pull-right mobile-hide">
  168. <span class="divider">|</span>
  169. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/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>
  170. </span>
  171. <span class="small pull-right mobile-hide">
  172. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/c326c0dc0fbb51050db23b7b892a9528f5ef3ef0/IPA.Loader/Utilities/AlmostVersion.cs/#L320">View Source</a>
  173. </span>
  174. <a id="IPA_Utilities_AlmostVersionConverter_ToValue_" data-uid="IPA.Utilities.AlmostVersionConverter.ToValue*"></a>
  175. <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>
  176. <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>
  177. </div>
  178. <div class="markdown level1 conceptual"></div>
  179. <h5 class="decalaration">Declaration</h5>
  180. <div class="codewrapper">
  181. <pre><code class="lang-csharp hljs">public override Value ToValue(AlmostVersion obj, object parent)</code></pre>
  182. </div>
  183. <h5 class="parameters">Parameters</h5>
  184. <table class="table table-bordered table-striped table-condensed">
  185. <thead>
  186. <tr>
  187. <th>Type</th>
  188. <th>Name</th>
  189. <th>Description</th>
  190. </tr>
  191. </thead>
  192. <tbody>
  193. <tr>
  194. <td><a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a></td>
  195. <td><span class="parametername">obj</span></td>
  196. <td><p>the <a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a> to convert</p>
  197. </td>
  198. </tr>
  199. <tr>
  200. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a></td>
  201. <td><span class="parametername">parent</span></td>
  202. <td><p>the parent of <code data-dev-comment-type="paramref" class="paramref">obj</code></p>
  203. </td>
  204. </tr>
  205. </tbody>
  206. </table>
  207. <h5 class="returns">Returns</h5>
  208. <table class="table table-bordered table-striped table-condensed">
  209. <thead>
  210. <tr>
  211. <th>Type</th>
  212. <th>Description</th>
  213. </tr>
  214. </thead>
  215. <tbody>
  216. <tr>
  217. <td><a class="xref" href="IPA.Config.Data.Value.html">Value</a></td>
  218. <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>
  219. </td>
  220. </tr>
  221. </tbody>
  222. </table>
  223. <h5 class="overrides">Overrides</h5>
  224. <div><span class="xref">IPA.Config.Stores.ValueConverter&lt;IPA.Utilities.AlmostVersion&gt;.ToValue(IPA.Utilities.AlmostVersion, System.Object)</span></div>
  225. <h3 id="implements">Implements</h3>
  226. <div>
  227. <a class="xref" href="IPA.Config.Stores.IValueConverter.html">IValueConverter</a>
  228. </div>
  229. <h3 id="extensionmethods">Extension Methods</h3>
  230. <div>
  231. <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>
  232. </div>
  233. <div>
  234. <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>
  235. </div>
  236. <div>
  237. <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>
  238. </div>
  239. <div>
  240. <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>
  241. </div>
  242. <div>
  243. <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>
  244. </div>
  245. </article>
  246. </div>
  247. <div class="hidden-sm col-md-2" role="complementary">
  248. <div class="sideaffix">
  249. <div class="contribution">
  250. <ul class="nav">
  251. <li>
  252. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/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>
  253. </li>
  254. <li>
  255. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/c326c0dc0fbb51050db23b7b892a9528f5ef3ef0/IPA.Loader/Utilities/AlmostVersion.cs/#L300" class="contribution-link">View Source</a>
  256. </li>
  257. </ul>
  258. </div>
  259. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  260. <h5>In This Article</h5>
  261. <div></div>
  262. </nav>
  263. </div>
  264. </div>
  265. </div>
  266. </div>
  267. <footer>
  268. <div class="grad-bottom"></div>
  269. <div class="footer">
  270. <div class="container">
  271. <span class="pull-right">
  272. <a href="#top">Back to top</a>
  273. </span>
  274. <span>Generated by <strong>DocFX</strong></span>
  275. </div>
  276. </div>
  277. </footer>
  278. </div>
  279. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  280. <script type="text/javascript" src="../styles/docfx.js"></script>
  281. <script type="text/javascript" src="../styles/main.js"></script>
  282. </body>
  283. </html>