Grpc.Core.Marshallers.html 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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 Marshallers
  8. | gRPC C# </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class Marshallers
  11. | gRPC C# ">
  12. <meta name="generator" content="docfx 2.23.1.0">
  13. <link rel="shortcut icon" href="../favicon.ico">
  14. <link rel="stylesheet" href="../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../styles/docfx.css">
  16. <link rel="stylesheet" href="../styles/main.css">
  17. <meta property="docfx:navrel" content="../toc.html">
  18. <meta property="docfx:tocrel" content="toc.html">
  19. <meta property="docfx:rel" content="../">
  20. </head>
  21. <body data-spy="scroll" data-target="#affix">
  22. <div id="wrapper">
  23. <header>
  24. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  25. <div class="container">
  26. <div class="navbar-header">
  27. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  28. <span class="sr-only">Toggle navigation</span>
  29. <span class="icon-bar"></span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. </button>
  33. <a class="navbar-brand" href="../index.html">
  34. <img id="logo" class="svg" src="../logo.svg" alt="">
  35. </a>
  36. </div>
  37. <div class="collapse navbar-collapse" id="navbar">
  38. <form class="navbar-form navbar-right" role="search" id="search">
  39. <div class="form-group">
  40. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  41. </div>
  42. </form>
  43. </div>
  44. </div>
  45. </nav>
  46. <div class="subnav navbar navbar-default">
  47. <div class="container hide-when-search" id="breadcrumb">
  48. <ul class="breadcrumb">
  49. <li></li>
  50. </ul>
  51. </div>
  52. </div>
  53. </header>
  54. <div class="container body-content">
  55. <div id="search-results">
  56. <div class="search-list"></div>
  57. <div class="sr-items"></div>
  58. <ul id="pagination"></ul>
  59. </div>
  60. </div>
  61. <div role="main" class="container body-content hide-when-search">
  62. <div class="sidenav hide-when-search">
  63. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  64. <div class="sidetoggle collapse" id="sidetoggle">
  65. <div id="sidetoc"></div>
  66. </div>
  67. </div>
  68. <div class="article row grid-right">
  69. <div class="col-md-10">
  70. <article class="content wrap" id="_content" data-uid="Grpc.Core.Marshallers">
  71. <h1 id="Grpc_Core_Marshallers" data-uid="Grpc.Core.Marshallers" class="text-break">Class Marshallers
  72. </h1>
  73. <div class="markdown level0 summary"><p>Utilities for creating marshallers.</p>
  74. </div>
  75. <div class="markdown level0 conceptual"></div>
  76. <div class="inheritance">
  77. <h5>Inheritance</h5>
  78. <div class="level0"><span class="xref">System.Object</span></div>
  79. <div class="level1"><span class="xref">Marshallers</span></div>
  80. </div>
  81. <div class="inheritedMembers">
  82. <h5>Inherited Members</h5>
  83. <div>
  84. <span class="xref">System.Object.ToString()</span>
  85. </div>
  86. <div>
  87. <span class="xref">System.Object.Equals(System.Object)</span>
  88. </div>
  89. <div>
  90. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  91. </div>
  92. <div>
  93. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  94. </div>
  95. <div>
  96. <span class="xref">System.Object.GetHashCode()</span>
  97. </div>
  98. <div>
  99. <span class="xref">System.Object.GetType()</span>
  100. </div>
  101. <div>
  102. <span class="xref">System.Object.MemberwiseClone()</span>
  103. </div>
  104. </div>
  105. <h6><strong>Namespace</strong>: <a class="xref" href="Grpc.Core.html">Grpc.Core</a></h6>
  106. <h6><strong>Assembly</strong>: Grpc.Core.dll</h6>
  107. <h5 id="Grpc_Core_Marshallers_syntax">Syntax</h5>
  108. <div class="codewrapper">
  109. <pre><code class="lang-csharp hljs">public static class Marshallers</code></pre>
  110. </div>
  111. <h3 id="properties">Properties
  112. </h3>
  113. <a id="Grpc_Core_Marshallers_StringMarshaller_" data-uid="Grpc.Core.Marshallers.StringMarshaller*"></a>
  114. <h4 id="Grpc_Core_Marshallers_StringMarshaller" data-uid="Grpc.Core.Marshallers.StringMarshaller">StringMarshaller</h4>
  115. <div class="markdown level1 summary"><p>Returns a marshaller for <code>string</code> type. This is useful for testing.</p>
  116. </div>
  117. <div class="markdown level1 conceptual"></div>
  118. <h5 class="decalaration">Declaration</h5>
  119. <div class="codewrapper">
  120. <pre><code class="lang-csharp hljs">public static Marshaller&lt;string&gt; StringMarshaller { get; }</code></pre>
  121. </div>
  122. <h5 class="propertyValue">Property Value</h5>
  123. <table class="table table-bordered table-striped table-condensed">
  124. <thead>
  125. <tr>
  126. <th>Type</th>
  127. <th>Description</th>
  128. </tr>
  129. </thead>
  130. <tbody>
  131. <tr>
  132. <td><a class="xref" href="Grpc.Core.Marshaller-1.html">Marshaller</a>&lt;<span class="xref">System.String</span>&gt;</td>
  133. <td></td>
  134. </tr>
  135. </tbody>
  136. </table>
  137. <h3 id="methods">Methods
  138. </h3>
  139. <a id="Grpc_Core_Marshallers_Create_" data-uid="Grpc.Core.Marshallers.Create*"></a>
  140. <h4 id="Grpc_Core_Marshallers_Create__1_System_Func___0_System_Byte____System_Func_System_Byte_____0__" data-uid="Grpc.Core.Marshallers.Create``1(System.Func{``0,System.Byte[]},System.Func{System.Byte[],``0})">Create&lt;T&gt;(Func&lt;T, Byte[]&gt;, Func&lt;Byte[], T&gt;)</h4>
  141. <div class="markdown level1 summary"><p>Creates a marshaller from specified serializer and deserializer.</p>
  142. </div>
  143. <div class="markdown level1 conceptual"></div>
  144. <h5 class="decalaration">Declaration</h5>
  145. <div class="codewrapper">
  146. <pre><code class="lang-csharp hljs">public static Marshaller&lt;T&gt; Create&lt;T&gt;(Func&lt;T, byte[]&gt; serializer, Func&lt;byte[], T&gt; deserializer)</code></pre>
  147. </div>
  148. <h5 class="parameters">Parameters</h5>
  149. <table class="table table-bordered table-striped table-condensed">
  150. <thead>
  151. <tr>
  152. <th>Type</th>
  153. <th>Name</th>
  154. <th>Description</th>
  155. </tr>
  156. </thead>
  157. <tbody>
  158. <tr>
  159. <td><span class="xref">System.Func</span>&lt;T, <span class="xref">System.Byte</span>[]&gt;</td>
  160. <td><span class="parametername">serializer</span></td>
  161. <td></td>
  162. </tr>
  163. <tr>
  164. <td><span class="xref">System.Func</span>&lt;<span class="xref">System.Byte</span>[], T&gt;</td>
  165. <td><span class="parametername">deserializer</span></td>
  166. <td></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="Grpc.Core.Marshaller-1.html">Marshaller</a>&lt;T&gt;</td>
  181. <td></td>
  182. </tr>
  183. </tbody>
  184. </table>
  185. <h5 class="typeParameters">Type Parameters</h5>
  186. <table class="table table-bordered table-striped table-condensed">
  187. <thead>
  188. <tr>
  189. <th>Name</th>
  190. <th>Description</th>
  191. </tr>
  192. </thead>
  193. <tbody>
  194. <tr>
  195. <td><span class="parametername">T</span></td>
  196. <td></td>
  197. </tr>
  198. </tbody>
  199. </table>
  200. </article>
  201. </div>
  202. <div class="hidden-sm col-md-2" role="complementary">
  203. <div class="sideaffix">
  204. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  205. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  206. </nav>
  207. </div>
  208. </div>
  209. </div>
  210. </div>
  211. <footer>
  212. <div class="grad-bottom"></div>
  213. <div class="footer">
  214. <div class="container">
  215. <span class="pull-right">
  216. <a href="#top">Back to top</a>
  217. </span>
  218. <span>Copyright © 2015-2017 Microsoft<br>Generated by <strong>DocFX</strong></span>
  219. </div>
  220. </div>
  221. </footer>
  222. </div>
  223. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  224. <script type="text/javascript" src="../styles/docfx.js"></script>
  225. <script type="text/javascript" src="../styles/main.js"></script>
  226. </body>
  227. </html>