WebView.cs 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603
  1. // ------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // 此代码由工具生成。
  4. // 运行时版本: 17.0.0.0
  5. //
  6. // 对此文件的更改可能导致不正确的行为,如果
  7. // 重新生成代码,这些更改将会丢失。
  8. // </auto-generated>
  9. // ------------------------------------------------------------------------------
  10. namespace VberAdmin.Templates.V2_1_3_1
  11. {
  12. using System.Linq;
  13. using System.Text;
  14. using System.Collections.Generic;
  15. using System;
  16. /// <summary>
  17. /// Class to produce the template output
  18. /// </summary>
  19. #line 1 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  20. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")]
  21. public partial class WebView : WebViewBase
  22. {
  23. #line hidden
  24. /// <summary>
  25. /// Create the template output
  26. /// </summary>
  27. public virtual string TransformText()
  28. {
  29. this.Write("@using ");
  30. #line 6 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  31. this.Write(this.ToStringHelper.ToStringWithCulture(Model.ProjectName));
  32. #line default
  33. #line hidden
  34. this.Write("\r\n@using ");
  35. #line 7 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  36. this.Write(this.ToStringHelper.ToStringWithCulture(Model.ProjectName));
  37. #line default
  38. #line hidden
  39. this.Write(".Authorization.Permissions\r\n@using ");
  40. #line 8 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  41. this.Write(this.ToStringHelper.ToStringWithCulture(Model.ProjectName));
  42. #line default
  43. #line hidden
  44. this.Write(".Models.Layout\r\n@using ");
  45. #line 9 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  46. this.Write(this.ToStringHelper.ToStringWithCulture(Model.ProjectName));
  47. #line default
  48. #line hidden
  49. this.Write(".Views.Shared.New.Modals\r\n@using ");
  50. #line 10 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  51. this.Write(this.ToStringHelper.ToStringWithCulture(Model.ProjectName));
  52. #line default
  53. #line hidden
  54. this.Write(".Views.Shared.New.Table\r\n\r\n");
  55. #line 12 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  56. string isMuiltSearch= "false";
  57. #line default
  58. #line hidden
  59. this.Write("@{\r\n\tLayout = \"~/Views/Shared/_Master_New.cshtml\";\r\n ViewBag.Title = \"");
  60. #line 17 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  61. this.Write(this.ToStringHelper.ToStringWithCulture(Model.HtmlPageTitle));
  62. #line default
  63. #line hidden
  64. this.Write("\";\r\n string activeMenu = PermissionNames.Pages");
  65. #line 18 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  66. this.Write(this.ToStringHelper.ToStringWithCulture(Model.ParentPath));
  67. #line default
  68. #line hidden
  69. this.Write("Mg");
  70. #line 18 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  71. this.Write(this.ToStringHelper.ToStringWithCulture(Model.ClassName));
  72. #line default
  73. #line hidden
  74. this.Write("Mg; //The menu item will be active for this page.\r\n ViewBag.ActiveMenu = activ" +
  75. "eMenu;\r\n\tvar searchForm = new SearchFormViewModal(new List<SearchItem>()\r\n {\r" +
  76. "\n");
  77. #line 22 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  78. foreach (var item in Model.Columns)
  79. {
  80. if(!item.IsGenreated) continue;
  81. if(item.IsSearch)
  82. {
  83. var typeStr= item.AttrType=="int"?"FieldType.I": item.AttrType=="int"?"FieldType.In": item.AttrType=="DateTime"?"FieldType.D": item.AttrType=="DateTime?"?"FieldType.Dn":"";
  84. typeStr= string.IsNullOrEmpty(typeStr)?"":","+typeStr;
  85. #line default
  86. #line hidden
  87. this.Write(" new SearchItem(\"");
  88. #line 30 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  89. this.Write(this.ToStringHelper.ToStringWithCulture(item.CamelColumnName));
  90. #line default
  91. #line hidden
  92. this.Write("\",\"");
  93. #line 30 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  94. this.Write(this.ToStringHelper.ToStringWithCulture(item.Comment));
  95. #line default
  96. #line hidden
  97. this.Write("\"");
  98. #line 30 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  99. this.Write(this.ToStringHelper.ToStringWithCulture(typeStr));
  100. #line default
  101. #line hidden
  102. this.Write("), \r\n");
  103. #line 31 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  104. }
  105. }
  106. #line default
  107. #line hidden
  108. this.Write(" },\"search-form\",");
  109. #line 34 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  110. this.Write(this.ToStringHelper.ToStringWithCulture(isMuiltSearch));
  111. #line default
  112. #line hidden
  113. this.Write(");\r\n\r\n var table = new TableViewModel( \"/api/services/app/");
  114. #line 36 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  115. this.Write(this.ToStringHelper.ToStringWithCulture(Model.ClassName));
  116. #line default
  117. #line hidden
  118. this.Write("/GetAll\", activeMenu, searchForm)\r\n\t.SetFields(new List<FieldItem>()\r\n {\r\n");
  119. #line 39 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  120. foreach (var item in Model.Columns)
  121. {
  122. if(!item.IsGenreated) continue;
  123. if(item.IsTable)
  124. {
  125. #line default
  126. #line hidden
  127. this.Write(" new FieldItem(\"");
  128. #line 44 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  129. this.Write(this.ToStringHelper.ToStringWithCulture(item.CamelColumnName));
  130. #line default
  131. #line hidden
  132. this.Write("\", \"");
  133. #line 44 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  134. this.Write(this.ToStringHelper.ToStringWithCulture(item.Comment));
  135. #line default
  136. #line hidden
  137. this.Write("\"),\r\n");
  138. #line 45 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  139. }
  140. }
  141. #line default
  142. #line hidden
  143. this.Write(" });\r\n}\r\n@section css{\r\n \r\n}\r\n\r\n@Html.Partial(\"New/Table/_Table\", table)\r\n\r" +
  144. "\n@section modal{\r\n <!--Main Modal-->\r\n @{\r\n var modal = new ModalVi" +
  145. "ewModel(\"");
  146. #line 59 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  147. this.Write(this.ToStringHelper.ToStringWithCulture(Model.HtmlModalTitle));
  148. #line default
  149. #line hidden
  150. this.Write("\", new ModalBodyViewModel(new List<Input>()\r\n {\r\n new InputHide" +
  151. "(\"id\"),\r\n");
  152. #line 62 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  153. foreach (var item in Model.Columns)
  154. {
  155. if(!item.IsGenreated) continue;
  156. if(!item.IsModal) continue;
  157. var inputType=item.AttrType=="int"?"InputNumber": item.AttrType=="int?"?"InputNumber": item.AttrType=="DateTime"?"InputDateTime": item.AttrType=="DateTime?"?"InputDateTime":"Input";
  158. if(item.IsRequired) {
  159. #line default
  160. #line hidden
  161. this.Write(" new ");
  162. #line 69 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  163. this.Write(this.ToStringHelper.ToStringWithCulture(inputType));
  164. #line default
  165. #line hidden
  166. this.Write("(\"");
  167. #line 69 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  168. this.Write(this.ToStringHelper.ToStringWithCulture(item.CamelColumnName));
  169. #line default
  170. #line hidden
  171. this.Write("\", \"");
  172. #line 69 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  173. this.Write(this.ToStringHelper.ToStringWithCulture(item.Comment));
  174. #line default
  175. #line hidden
  176. this.Write("\"), \r\n");
  177. #line 70 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  178. }else{
  179. #line default
  180. #line hidden
  181. this.Write(" new ");
  182. #line 72 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  183. this.Write(this.ToStringHelper.ToStringWithCulture(inputType));
  184. #line default
  185. #line hidden
  186. this.Write("(\"");
  187. #line 72 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  188. this.Write(this.ToStringHelper.ToStringWithCulture(item.CamelColumnName));
  189. #line default
  190. #line hidden
  191. this.Write("\", \"");
  192. #line 72 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  193. this.Write(this.ToStringHelper.ToStringWithCulture(item.Comment));
  194. #line default
  195. #line hidden
  196. this.Write("\").SetNotRequired(), \r\n");
  197. #line 73 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  198. }
  199. #line default
  200. #line hidden
  201. #line 76 "D:\02Study\ABP\VberAdminBaseSystem\Template\VberAdminTemplate\CodeGenerator\Templates\V2_1_3_1\WebView.tt"
  202. }
  203. #line default
  204. #line hidden
  205. this.Write(@" }));
  206. }
  207. @Html.Partial(""New/Modals/_Modal"", modal)
  208. }
  209. @section scripts
  210. {
  211. <script src=""~/Content/Scripts/MyScript/iwb.js""></script>
  212. <script src=""~/Content/Scripts/MyScript/util.js""></script>
  213. <script type=""text/javascript"">
  214. var $table;
  215. $(function () {
  216. $table = LoadTable();
  217. var funs = window.iwbfuns || { none: function () { console.log(""No type""); } };
  218. funs[""btnCreate""] = function() { BtnCreate({ data: { id: """" } }); }
  219. funs[""btnUpdate""] = function () { BtnUpdate({ disabled: """" }); };
  220. });
  221. </script>
  222. <!--格式化-->
  223. <script id=""formatter-script"" type=""text/javascript"">
  224. function TypeFormatter(v) {
  225. var name = $('#hid-type option[value=""' + v + '""]').text();
  226. switch (v) {
  227. case 0:
  228. return '<span class=""label label-danger"">' + name +'</span>';
  229. default:
  230. return '<span class=""label label-info"">' + name +'</span>';
  231. }
  232. }
  233. </script>
  234. }
  235. <section style=""display: none"">
  236. <select id=""hid-type"">
  237. <option value=""""></option>
  238. </select>
  239. @*@Html.DropDownList(""hid-type"", type)*@
  240. </section>");
  241. return this.GenerationEnvironment.ToString();
  242. }
  243. }
  244. #line default
  245. #line hidden
  246. #region Base class
  247. /// <summary>
  248. /// Base class for this transformation
  249. /// </summary>
  250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")]
  251. public class WebViewBase
  252. {
  253. #region Fields
  254. private global::System.Text.StringBuilder generationEnvironmentField;
  255. private global::System.CodeDom.Compiler.CompilerErrorCollection errorsField;
  256. private global::System.Collections.Generic.List<int> indentLengthsField;
  257. private string currentIndentField = "";
  258. private bool endsWithNewline;
  259. private global::System.Collections.Generic.IDictionary<string, object> sessionField;
  260. #endregion
  261. #region Properties
  262. /// <summary>
  263. /// The string builder that generation-time code is using to assemble generated output
  264. /// </summary>
  265. protected System.Text.StringBuilder GenerationEnvironment
  266. {
  267. get
  268. {
  269. if ((this.generationEnvironmentField == null))
  270. {
  271. this.generationEnvironmentField = new global::System.Text.StringBuilder();
  272. }
  273. return this.generationEnvironmentField;
  274. }
  275. set
  276. {
  277. this.generationEnvironmentField = value;
  278. }
  279. }
  280. /// <summary>
  281. /// The error collection for the generation process
  282. /// </summary>
  283. public System.CodeDom.Compiler.CompilerErrorCollection Errors
  284. {
  285. get
  286. {
  287. if ((this.errorsField == null))
  288. {
  289. this.errorsField = new global::System.CodeDom.Compiler.CompilerErrorCollection();
  290. }
  291. return this.errorsField;
  292. }
  293. }
  294. /// <summary>
  295. /// A list of the lengths of each indent that was added with PushIndent
  296. /// </summary>
  297. private System.Collections.Generic.List<int> indentLengths
  298. {
  299. get
  300. {
  301. if ((this.indentLengthsField == null))
  302. {
  303. this.indentLengthsField = new global::System.Collections.Generic.List<int>();
  304. }
  305. return this.indentLengthsField;
  306. }
  307. }
  308. /// <summary>
  309. /// Gets the current indent we use when adding lines to the output
  310. /// </summary>
  311. public string CurrentIndent
  312. {
  313. get
  314. {
  315. return this.currentIndentField;
  316. }
  317. }
  318. /// <summary>
  319. /// Current transformation session
  320. /// </summary>
  321. public virtual global::System.Collections.Generic.IDictionary<string, object> Session
  322. {
  323. get
  324. {
  325. return this.sessionField;
  326. }
  327. set
  328. {
  329. this.sessionField = value;
  330. }
  331. }
  332. #endregion
  333. #region Transform-time helpers
  334. /// <summary>
  335. /// Write text directly into the generated output
  336. /// </summary>
  337. public void Write(string textToAppend)
  338. {
  339. if (string.IsNullOrEmpty(textToAppend))
  340. {
  341. return;
  342. }
  343. // If we're starting off, or if the previous text ended with a newline,
  344. // we have to append the current indent first.
  345. if (((this.GenerationEnvironment.Length == 0)
  346. || this.endsWithNewline))
  347. {
  348. this.GenerationEnvironment.Append(this.currentIndentField);
  349. this.endsWithNewline = false;
  350. }
  351. // Check if the current text ends with a newline
  352. if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture))
  353. {
  354. this.endsWithNewline = true;
  355. }
  356. // This is an optimization. If the current indent is "", then we don't have to do any
  357. // of the more complex stuff further down.
  358. if ((this.currentIndentField.Length == 0))
  359. {
  360. this.GenerationEnvironment.Append(textToAppend);
  361. return;
  362. }
  363. // Everywhere there is a newline in the text, add an indent after it
  364. textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
  365. // If the text ends with a newline, then we should strip off the indent added at the very end
  366. // because the appropriate indent will be added when the next time Write() is called
  367. if (this.endsWithNewline)
  368. {
  369. this.GenerationEnvironment.Append(textToAppend, 0, (textToAppend.Length - this.currentIndentField.Length));
  370. }
  371. else
  372. {
  373. this.GenerationEnvironment.Append(textToAppend);
  374. }
  375. }
  376. /// <summary>
  377. /// Write text directly into the generated output
  378. /// </summary>
  379. public void WriteLine(string textToAppend)
  380. {
  381. this.Write(textToAppend);
  382. this.GenerationEnvironment.AppendLine();
  383. this.endsWithNewline = true;
  384. }
  385. /// <summary>
  386. /// Write formatted text directly into the generated output
  387. /// </summary>
  388. public void Write(string format, params object[] args)
  389. {
  390. this.Write(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args));
  391. }
  392. /// <summary>
  393. /// Write formatted text directly into the generated output
  394. /// </summary>
  395. public void WriteLine(string format, params object[] args)
  396. {
  397. this.WriteLine(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args));
  398. }
  399. /// <summary>
  400. /// Raise an error
  401. /// </summary>
  402. public void Error(string message)
  403. {
  404. System.CodeDom.Compiler.CompilerError error = new global::System.CodeDom.Compiler.CompilerError();
  405. error.ErrorText = message;
  406. this.Errors.Add(error);
  407. }
  408. /// <summary>
  409. /// Raise a warning
  410. /// </summary>
  411. public void Warning(string message)
  412. {
  413. System.CodeDom.Compiler.CompilerError error = new global::System.CodeDom.Compiler.CompilerError();
  414. error.ErrorText = message;
  415. error.IsWarning = true;
  416. this.Errors.Add(error);
  417. }
  418. /// <summary>
  419. /// Increase the indent
  420. /// </summary>
  421. public void PushIndent(string indent)
  422. {
  423. if ((indent == null))
  424. {
  425. throw new global::System.ArgumentNullException("indent");
  426. }
  427. this.currentIndentField = (this.currentIndentField + indent);
  428. this.indentLengths.Add(indent.Length);
  429. }
  430. /// <summary>
  431. /// Remove the last indent that was added with PushIndent
  432. /// </summary>
  433. public string PopIndent()
  434. {
  435. string returnValue = "";
  436. if ((this.indentLengths.Count > 0))
  437. {
  438. int indentLength = this.indentLengths[(this.indentLengths.Count - 1)];
  439. this.indentLengths.RemoveAt((this.indentLengths.Count - 1));
  440. if ((indentLength > 0))
  441. {
  442. returnValue = this.currentIndentField.Substring((this.currentIndentField.Length - indentLength));
  443. this.currentIndentField = this.currentIndentField.Remove((this.currentIndentField.Length - indentLength));
  444. }
  445. }
  446. return returnValue;
  447. }
  448. /// <summary>
  449. /// Remove any indentation
  450. /// </summary>
  451. public void ClearIndent()
  452. {
  453. this.indentLengths.Clear();
  454. this.currentIndentField = "";
  455. }
  456. #endregion
  457. #region ToString Helpers
  458. /// <summary>
  459. /// Utility class to produce culture-oriented representation of an object as a string.
  460. /// </summary>
  461. public class ToStringInstanceHelper
  462. {
  463. private System.IFormatProvider formatProviderField = global::System.Globalization.CultureInfo.InvariantCulture;
  464. /// <summary>
  465. /// Gets or sets format provider to be used by ToStringWithCulture method.
  466. /// </summary>
  467. public System.IFormatProvider FormatProvider
  468. {
  469. get
  470. {
  471. return this.formatProviderField ;
  472. }
  473. set
  474. {
  475. if ((value != null))
  476. {
  477. this.formatProviderField = value;
  478. }
  479. }
  480. }
  481. /// <summary>
  482. /// This is called from the compile/run appdomain to convert objects within an expression block to a string
  483. /// </summary>
  484. public string ToStringWithCulture(object objectToConvert)
  485. {
  486. if ((objectToConvert == null))
  487. {
  488. throw new global::System.ArgumentNullException("objectToConvert");
  489. }
  490. System.Type t = objectToConvert.GetType();
  491. System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
  492. typeof(System.IFormatProvider)});
  493. if ((method == null))
  494. {
  495. return objectToConvert.ToString();
  496. }
  497. else
  498. {
  499. return ((string)(method.Invoke(objectToConvert, new object[] {
  500. this.formatProviderField })));
  501. }
  502. }
  503. }
  504. private ToStringInstanceHelper toStringHelperField = new ToStringInstanceHelper();
  505. /// <summary>
  506. /// Helper to produce culture-oriented representation of an object as a string
  507. /// </summary>
  508. public ToStringInstanceHelper ToStringHelper
  509. {
  510. get
  511. {
  512. return this.toStringHelperField;
  513. }
  514. }
  515. #endregion
  516. }
  517. #endregion
  518. }