Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 864d1c3c3cd8df4e3a2692faf8776e05 > files > 675

db4o-doc-7.4-2.fc13.i686.rpm

<html>
  <head>
    <META http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>TCultureInfo Translator</title>
    <link rel="stylesheet" type="text/css" href="../../../../style.css">
  </head>
  <body>
    <div class="CommonContent">
      <div class="CommonContentArea">
        <h1>TCultureInfo Translator</h1>

<p><font color="#990000">This topic applies to .NET version only.</font></p>
<p>CultureInfo class cannot be stored cleanly by db4o because
it internally holds a native pointer to a system structure. This problem was discussed in detail in
<a href="../.net_example_class.html" class="wikiLink">.NET Example Class</a> and a solution suggested in
<a href="../.net_translator_implementation.html" class="wikiLink">.NET Translator Implementation</a>. In fact built-in TCultureInfo
class implements the same solution and can be used immediately without any
custom translators:</p>

<span name="cs_wiki_filter" csw_filters="cs">
<p>c#:</p>

<p><code>configuration.ObjectClass(typeof(CultureInfo)).Translate(new
CultureInfoTranslator());</code></p>

</span>

<span name="cs_wiki_filter" csw_filters="vb">
<p>VB:</p>

<p><code>
configuration.ObjectClass(GetType(CultureInfo)).Translate(New
CultureInfoTranslator())</code></p>

</span>


</div>
    </div>
    <div id="footer">
					This revision (2) was last Modified 2007-08-05T14:58:59 by Tetyana.
				</div>
  </body>
</html>