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.

500 lines
24 KiB

  1. <!DOCTYPE html>
  2. <!--[if IE]><![endif]-->
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <title>Class PropertyAccessor&lt;T, U&gt;
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class PropertyAccessor&lt;T, U&gt;
  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.PropertyAccessor`2">
  75. <h1 id="IPA_Utilities_PropertyAccessor_2" data-uid="IPA.Utilities.PropertyAccessor`2" class="text-break">Class PropertyAccessor&lt;T, U&gt;
  76. </h1>
  77. <div class="markdown level0 summary"><p>A type containing utilities for accessing non-public properties of an object.</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">PropertyAccessor&lt;T, U&gt;</span></div>
  84. </div>
  85. <h6><strong>Namespace</strong>: <a class="xref" href="IPA.Utilities.html">IPA.Utilities</a></h6>
  86. <h6><strong>Assembly</strong>: IPA.Loader.dll</h6>
  87. <h5 id="IPA_Utilities_PropertyAccessor_2_syntax">Syntax</h5>
  88. <div class="codewrapper">
  89. <pre><code class="lang-csharp hljs">public static class PropertyAccessor&lt;T, U&gt; : object</code></pre>
  90. </div>
  91. <h5 class="typeParameters">Type Parameters</h5>
  92. <table class="table table-bordered table-striped table-condensed">
  93. <thead>
  94. <tr>
  95. <th>Name</th>
  96. <th>Description</th>
  97. </tr>
  98. </thead>
  99. <tbody>
  100. <tr>
  101. <td><span class="parametername">T</span></td>
  102. <td><p>the type that the properties are on</p>
  103. </td>
  104. </tr>
  105. <tr>
  106. <td><span class="parametername">U</span></td>
  107. <td><p>the type of the property to access</p>
  108. </td>
  109. </tr>
  110. </tbody>
  111. </table>
  112. <h3 id="methods">Methods
  113. </h3>
  114. <span class="small pull-right mobile-hide">
  115. <span class="divider">|</span>
  116. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_PropertyAccessor_2_Get__0_System_String_.md&amp;value=---%0Auid%3A%20IPA.Utilities.PropertyAccessor%602.Get(%600%2CSystem.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>
  117. </span>
  118. <span class="small pull-right mobile-hide">
  119. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Utilities/Accessor.cs/#L245">View Source</a>
  120. </span>
  121. <a id="IPA_Utilities_PropertyAccessor_2_Get_" data-uid="IPA.Utilities.PropertyAccessor`2.Get*"></a>
  122. <h4 id="IPA_Utilities_PropertyAccessor_2_Get__0_System_String_" data-uid="IPA.Utilities.PropertyAccessor`2.Get(`0,System.String)">Get(T, String)</h4>
  123. <div class="markdown level1 summary"><p>Gets the value of the property identified by <code data-dev-comment-type="paramref" class="paramref">name</code> on <code data-dev-comment-type="paramref" class="paramref">obj</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 static U Get(T obj, string name)</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">T</span></td>
  142. <td><span class="parametername">obj</span></td>
  143. <td><p>the instance to access</p>
  144. </td>
  145. </tr>
  146. <tr>
  147. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  148. <td><span class="parametername">name</span></td>
  149. <td><p>the name of the property</p>
  150. </td>
  151. </tr>
  152. </tbody>
  153. </table>
  154. <h5 class="returns">Returns</h5>
  155. <table class="table table-bordered table-striped table-condensed">
  156. <thead>
  157. <tr>
  158. <th>Type</th>
  159. <th>Description</th>
  160. </tr>
  161. </thead>
  162. <tbody>
  163. <tr>
  164. <td><span class="xref">U</span></td>
  165. <td><p>the value of the property</p>
  166. </td>
  167. </tr>
  168. </tbody>
  169. </table>
  170. <h5 id="IPA_Utilities_PropertyAccessor_2_Get__0_System_String__seealso">See Also</h5>
  171. <div class="seealso">
  172. <div><a class="xref" href="IPA.Utilities.PropertyAccessor-2.html#IPA_Utilities_PropertyAccessor_2_Get__0__System_String_">Get(ref T, String)</a></div>
  173. <div><a class="xref" href="IPA.Utilities.PropertyAccessor-2.html#IPA_Utilities_PropertyAccessor_2_GetGetter_System_String_">GetGetter(String)</a></div>
  174. </div>
  175. <span class="small pull-right mobile-hide">
  176. <span class="divider">|</span>
  177. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_PropertyAccessor_2_Get__0__System_String_.md&amp;value=---%0Auid%3A%20IPA.Utilities.PropertyAccessor%602.Get(%600%40%2CSystem.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>
  178. </span>
  179. <span class="small pull-right mobile-hide">
  180. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Utilities/Accessor.cs/#L235">View Source</a>
  181. </span>
  182. <a id="IPA_Utilities_PropertyAccessor_2_Get_" data-uid="IPA.Utilities.PropertyAccessor`2.Get*"></a>
  183. <h4 id="IPA_Utilities_PropertyAccessor_2_Get__0__System_String_" data-uid="IPA.Utilities.PropertyAccessor`2.Get(`0@,System.String)">Get(ref T, String)</h4>
  184. <div class="markdown level1 summary"><p>Gets the value of the property identified by <code data-dev-comment-type="paramref" class="paramref">name</code> on <code data-dev-comment-type="paramref" class="paramref">obj</code>.</p>
  185. </div>
  186. <div class="markdown level1 conceptual"></div>
  187. <h5 class="decalaration">Declaration</h5>
  188. <div class="codewrapper">
  189. <pre><code class="lang-csharp hljs">public static U Get(ref T obj, string name)</code></pre>
  190. </div>
  191. <h5 class="parameters">Parameters</h5>
  192. <table class="table table-bordered table-striped table-condensed">
  193. <thead>
  194. <tr>
  195. <th>Type</th>
  196. <th>Name</th>
  197. <th>Description</th>
  198. </tr>
  199. </thead>
  200. <tbody>
  201. <tr>
  202. <td><span class="xref">T</span></td>
  203. <td><span class="parametername">obj</span></td>
  204. <td><p>the instance to access</p>
  205. </td>
  206. </tr>
  207. <tr>
  208. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  209. <td><span class="parametername">name</span></td>
  210. <td><p>the name of the property</p>
  211. </td>
  212. </tr>
  213. </tbody>
  214. </table>
  215. <h5 class="returns">Returns</h5>
  216. <table class="table table-bordered table-striped table-condensed">
  217. <thead>
  218. <tr>
  219. <th>Type</th>
  220. <th>Description</th>
  221. </tr>
  222. </thead>
  223. <tbody>
  224. <tr>
  225. <td><span class="xref">U</span></td>
  226. <td><p>the value of the property</p>
  227. </td>
  228. </tr>
  229. </tbody>
  230. </table>
  231. <h5 id="IPA_Utilities_PropertyAccessor_2_Get__0__System_String__remarks">Remarks</h5>
  232. <div class="markdown level1 remarks"><p>The only reason to use this over <a class="xref" href="IPA.Utilities.PropertyAccessor-2.html#IPA_Utilities_PropertyAccessor_2_Get__0_System_String_">Get(T, String)</a> is if you are using a value type because
  233. it avoids a copy.</p>
  234. </div>
  235. <h5 id="IPA_Utilities_PropertyAccessor_2_Get__0__System_String__seealso">See Also</h5>
  236. <div class="seealso">
  237. <div><a class="xref" href="IPA.Utilities.PropertyAccessor-2.html#IPA_Utilities_PropertyAccessor_2_Get__0_System_String_">Get(T, String)</a></div>
  238. <div><a class="xref" href="IPA.Utilities.PropertyAccessor-2.html#IPA_Utilities_PropertyAccessor_2_GetGetter_System_String_">GetGetter(String)</a></div>
  239. </div>
  240. <span class="small pull-right mobile-hide">
  241. <span class="divider">|</span>
  242. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_PropertyAccessor_2_GetGetter_System_String_.md&amp;value=---%0Auid%3A%20IPA.Utilities.PropertyAccessor%602.GetGetter(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>
  243. </span>
  244. <span class="small pull-right mobile-hide">
  245. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Utilities/Accessor.cs/#L213">View Source</a>
  246. </span>
  247. <a id="IPA_Utilities_PropertyAccessor_2_GetGetter_" data-uid="IPA.Utilities.PropertyAccessor`2.GetGetter*"></a>
  248. <h4 id="IPA_Utilities_PropertyAccessor_2_GetGetter_System_String_" data-uid="IPA.Utilities.PropertyAccessor`2.GetGetter(System.String)">GetGetter(String)</h4>
  249. <div class="markdown level1 summary"><p>Gets a <a class="xref" href="IPA.Utilities.PropertyAccessor-2.Getter.html">PropertyAccessor&lt;T, U&gt;.Getter</a> for the property identified by <code data-dev-comment-type="paramref" class="paramref">name</code>.</p>
  250. </div>
  251. <div class="markdown level1 conceptual"></div>
  252. <h5 class="decalaration">Declaration</h5>
  253. <div class="codewrapper">
  254. <pre><code class="lang-csharp hljs">public static PropertyAccessor&lt;T, U&gt;.Getter GetGetter(string name)</code></pre>
  255. </div>
  256. <h5 class="parameters">Parameters</h5>
  257. <table class="table table-bordered table-striped table-condensed">
  258. <thead>
  259. <tr>
  260. <th>Type</th>
  261. <th>Name</th>
  262. <th>Description</th>
  263. </tr>
  264. </thead>
  265. <tbody>
  266. <tr>
  267. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  268. <td><span class="parametername">name</span></td>
  269. <td><p>the name of the property</p>
  270. </td>
  271. </tr>
  272. </tbody>
  273. </table>
  274. <h5 class="returns">Returns</h5>
  275. <table class="table table-bordered table-striped table-condensed">
  276. <thead>
  277. <tr>
  278. <th>Type</th>
  279. <th>Description</th>
  280. </tr>
  281. </thead>
  282. <tbody>
  283. <tr>
  284. <td><a class="xref" href="IPA.Utilities.PropertyAccessor-2.Getter.html">PropertyAccessor.Getter</a>&lt;&gt;</td>
  285. <td><p>a <a class="xref" href="IPA.Utilities.PropertyAccessor-2.Getter.html">PropertyAccessor&lt;T, U&gt;.Getter</a> that can access that property</p>
  286. </td>
  287. </tr>
  288. </tbody>
  289. </table>
  290. <span class="small pull-right mobile-hide">
  291. <span class="divider">|</span>
  292. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_PropertyAccessor_2_GetSetter_System_String_.md&amp;value=---%0Auid%3A%20IPA.Utilities.PropertyAccessor%602.GetSetter(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>
  293. </span>
  294. <span class="small pull-right mobile-hide">
  295. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Utilities/Accessor.cs/#L220">View Source</a>
  296. </span>
  297. <a id="IPA_Utilities_PropertyAccessor_2_GetSetter_" data-uid="IPA.Utilities.PropertyAccessor`2.GetSetter*"></a>
  298. <h4 id="IPA_Utilities_PropertyAccessor_2_GetSetter_System_String_" data-uid="IPA.Utilities.PropertyAccessor`2.GetSetter(System.String)">GetSetter(String)</h4>
  299. <div class="markdown level1 summary"><p>Gets a <a class="xref" href="IPA.Utilities.PropertyAccessor-2.Setter.html">PropertyAccessor&lt;T, U&gt;.Setter</a> for the property identified by <code data-dev-comment-type="paramref" class="paramref">name</code>.</p>
  300. </div>
  301. <div class="markdown level1 conceptual"></div>
  302. <h5 class="decalaration">Declaration</h5>
  303. <div class="codewrapper">
  304. <pre><code class="lang-csharp hljs">public static PropertyAccessor&lt;T, U&gt;.Setter GetSetter(string name)</code></pre>
  305. </div>
  306. <h5 class="parameters">Parameters</h5>
  307. <table class="table table-bordered table-striped table-condensed">
  308. <thead>
  309. <tr>
  310. <th>Type</th>
  311. <th>Name</th>
  312. <th>Description</th>
  313. </tr>
  314. </thead>
  315. <tbody>
  316. <tr>
  317. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  318. <td><span class="parametername">name</span></td>
  319. <td><p>the name of the property</p>
  320. </td>
  321. </tr>
  322. </tbody>
  323. </table>
  324. <h5 class="returns">Returns</h5>
  325. <table class="table table-bordered table-striped table-condensed">
  326. <thead>
  327. <tr>
  328. <th>Type</th>
  329. <th>Description</th>
  330. </tr>
  331. </thead>
  332. <tbody>
  333. <tr>
  334. <td><a class="xref" href="IPA.Utilities.PropertyAccessor-2.Setter.html">PropertyAccessor.Setter</a>&lt;&gt;</td>
  335. <td><p>a <a class="xref" href="IPA.Utilities.PropertyAccessor-2.Setter.html">PropertyAccessor&lt;T, U&gt;.Setter</a> that can access that property</p>
  336. </td>
  337. </tr>
  338. </tbody>
  339. </table>
  340. <span class="small pull-right mobile-hide">
  341. <span class="divider">|</span>
  342. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_PropertyAccessor_2_Set__0_System_String__1_.md&amp;value=---%0Auid%3A%20IPA.Utilities.PropertyAccessor%602.Set(%600%2CSystem.String%2C%601)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  343. </span>
  344. <span class="small pull-right mobile-hide">
  345. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Utilities/Accessor.cs/#L271">View Source</a>
  346. </span>
  347. <a id="IPA_Utilities_PropertyAccessor_2_Set_" data-uid="IPA.Utilities.PropertyAccessor`2.Set*"></a>
  348. <h4 id="IPA_Utilities_PropertyAccessor_2_Set__0_System_String__1_" data-uid="IPA.Utilities.PropertyAccessor`2.Set(`0,System.String,`1)">Set(T, String, U)</h4>
  349. <div class="markdown level1 summary"><p>Sets the value of the property identified by <code data-dev-comment-type="paramref" class="paramref">name</code> on <code data-dev-comment-type="paramref" class="paramref">obj</code>.</p>
  350. </div>
  351. <div class="markdown level1 conceptual"></div>
  352. <h5 class="decalaration">Declaration</h5>
  353. <div class="codewrapper">
  354. <pre><code class="lang-csharp hljs">public static void Set(T obj, string name, U val)</code></pre>
  355. </div>
  356. <h5 class="parameters">Parameters</h5>
  357. <table class="table table-bordered table-striped table-condensed">
  358. <thead>
  359. <tr>
  360. <th>Type</th>
  361. <th>Name</th>
  362. <th>Description</th>
  363. </tr>
  364. </thead>
  365. <tbody>
  366. <tr>
  367. <td><span class="xref">T</span></td>
  368. <td><span class="parametername">obj</span></td>
  369. <td><p>the instance to access</p>
  370. </td>
  371. </tr>
  372. <tr>
  373. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  374. <td><span class="parametername">name</span></td>
  375. <td><p>the name of the property</p>
  376. </td>
  377. </tr>
  378. <tr>
  379. <td><span class="xref">U</span></td>
  380. <td><span class="parametername">val</span></td>
  381. <td><p>the new value of the property</p>
  382. </td>
  383. </tr>
  384. </tbody>
  385. </table>
  386. <h5 id="IPA_Utilities_PropertyAccessor_2_Set__0_System_String__1__remarks">Remarks</h5>
  387. <div class="markdown level1 remarks"><p>This overload cannot be safely used for value types. Use <a class="xref" href="IPA.Utilities.PropertyAccessor-2.html#IPA_Utilities_PropertyAccessor_2_Set__0__System_String__1_">Set(ref T, String, U)</a> instead.</p>
  388. </div>
  389. <h5 id="IPA_Utilities_PropertyAccessor_2_Set__0_System_String__1__seealso">See Also</h5>
  390. <div class="seealso">
  391. <div><a class="xref" href="IPA.Utilities.PropertyAccessor-2.html#IPA_Utilities_PropertyAccessor_2_Set__0__System_String__1_">Set(ref T, String, U)</a></div>
  392. <div><a class="xref" href="IPA.Utilities.PropertyAccessor-2.html#IPA_Utilities_PropertyAccessor_2_GetSetter_System_String_">GetSetter(String)</a></div>
  393. </div>
  394. <span class="small pull-right mobile-hide">
  395. <span class="divider">|</span>
  396. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_PropertyAccessor_2_Set__0__System_String__1_.md&amp;value=---%0Auid%3A%20IPA.Utilities.PropertyAccessor%602.Set(%600%40%2CSystem.String%2C%601)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  397. </span>
  398. <span class="small pull-right mobile-hide">
  399. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Utilities/Accessor.cs/#L258">View Source</a>
  400. </span>
  401. <a id="IPA_Utilities_PropertyAccessor_2_Set_" data-uid="IPA.Utilities.PropertyAccessor`2.Set*"></a>
  402. <h4 id="IPA_Utilities_PropertyAccessor_2_Set__0__System_String__1_" data-uid="IPA.Utilities.PropertyAccessor`2.Set(`0@,System.String,`1)">Set(ref T, String, U)</h4>
  403. <div class="markdown level1 summary"><p>Sets the value of the property identified by <code data-dev-comment-type="paramref" class="paramref">name</code> on <code data-dev-comment-type="paramref" class="paramref">obj</code>.</p>
  404. </div>
  405. <div class="markdown level1 conceptual"></div>
  406. <h5 class="decalaration">Declaration</h5>
  407. <div class="codewrapper">
  408. <pre><code class="lang-csharp hljs">public static void Set(ref T obj, string name, U val)</code></pre>
  409. </div>
  410. <h5 class="parameters">Parameters</h5>
  411. <table class="table table-bordered table-striped table-condensed">
  412. <thead>
  413. <tr>
  414. <th>Type</th>
  415. <th>Name</th>
  416. <th>Description</th>
  417. </tr>
  418. </thead>
  419. <tbody>
  420. <tr>
  421. <td><span class="xref">T</span></td>
  422. <td><span class="parametername">obj</span></td>
  423. <td><p>the instance to access</p>
  424. </td>
  425. </tr>
  426. <tr>
  427. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  428. <td><span class="parametername">name</span></td>
  429. <td><p>the name of the property</p>
  430. </td>
  431. </tr>
  432. <tr>
  433. <td><span class="xref">U</span></td>
  434. <td><span class="parametername">val</span></td>
  435. <td><p>the new value of the property</p>
  436. </td>
  437. </tr>
  438. </tbody>
  439. </table>
  440. <h5 id="IPA_Utilities_PropertyAccessor_2_Set__0__System_String__1__remarks">Remarks</h5>
  441. <div class="markdown level1 remarks"><p>This overload must be used for value types.</p>
  442. </div>
  443. <h5 id="IPA_Utilities_PropertyAccessor_2_Set__0__System_String__1__seealso">See Also</h5>
  444. <div class="seealso">
  445. <div><a class="xref" href="IPA.Utilities.PropertyAccessor-2.html#IPA_Utilities_PropertyAccessor_2_Set__0_System_String__1_">Set(T, String, U)</a></div>
  446. <div><a class="xref" href="IPA.Utilities.PropertyAccessor-2.html#IPA_Utilities_PropertyAccessor_2_GetSetter_System_String_">GetSetter(String)</a></div>
  447. </div>
  448. </article>
  449. </div>
  450. <div class="hidden-sm col-md-2" role="complementary">
  451. <div class="sideaffix">
  452. <div class="contribution">
  453. <ul class="nav">
  454. <li>
  455. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_PropertyAccessor_2.md&amp;value=---%0Auid%3A%20IPA.Utilities.PropertyAccessor%602%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>
  456. </li>
  457. <li>
  458. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Utilities/Accessor.cs/#L136" class="contribution-link">View Source</a>
  459. </li>
  460. </ul>
  461. </div>
  462. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  463. <h5>In This Article</h5>
  464. <div></div>
  465. </nav>
  466. </div>
  467. </div>
  468. </div>
  469. </div>
  470. <footer>
  471. <div class="grad-bottom"></div>
  472. <div class="footer">
  473. <div class="container">
  474. <span class="pull-right">
  475. <a href="#top">Back to top</a>
  476. </span>
  477. <span>Generated by <strong>DocFX</strong></span>
  478. </div>
  479. </div>
  480. </footer>
  481. </div>
  482. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  483. <script type="text/javascript" src="../styles/docfx.js"></script>
  484. <script type="text/javascript" src="../styles/main.js"></script>
  485. </body>
  486. </html>