Just monkey-patch it:<br><br>class System::Int64<br><br>&nbsp;&nbsp;&nbsp;&nbsp; def inspect<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.to_string.to_s<br>&nbsp;&nbsp;&nbsp;&nbsp; end<br>end<br><br>;)<br><br><br><br><div class="gmail_quote">On Fri, Dec 5, 2008 at 4:50 PM, Tomas Matousek <span dir="ltr">&lt;<a href="mailto:Tomas.Matousek@microsoft.com">Tomas.Matousek@microsoft.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">








<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Well, that's very unfortunate. They seems to break .NET
guidelines for namespace naming. It's not compatible with Ruby language
to have lowercased namespaces since they behave like modules. Module names must
start with an upper case. We can add some API to overcome this, but it won't
be pretty. Something like</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">clr.class_get :foo, :bar, :baz would return class for type foo.bar.baz.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">For now you can use reflection API to get the type (and Ruby
class for that type):</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">System::Type.get_type("foo.bar.baz").to_class</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">As for Int64… it prints #&lt;System::Int64:0x000005e&gt;,
which is not particularly useful. It should probably call ToString. I'll
file a bug.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Tomas</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">

<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:ironruby-core-bounces@rubyforge.org" target="_blank">ironruby-core-bounces@rubyforge.org</a>
[mailto:<a href="mailto:ironruby-core-bounces@rubyforge.org" target="_blank">ironruby-core-bounces@rubyforge.org</a>] <b>On Behalf Of </b>Aaron Feng<br>
<b>Sent:</b> Friday, December 05, 2008 1:07 PM<br>
<b>To:</b> <a href="mailto:ironruby-core@rubyforge.org" target="_blank">ironruby-core@rubyforge.org</a><br>
<b>Subject:</b> [Ironruby-core] Handling C# lower case namespaces</span></p>

</div><div><div></div><div class="Wj3C7c">

<p>&nbsp;</p>

<p style="margin-bottom: 12pt;">It seems like the current
version does not handle lower case namespaces when referencing a .NET
DLL.&nbsp; It thinks it is a method call whenever a constant starts with lower
case.&nbsp; It also doesn&#39;t handle non-alphabet characters such as _
(underscore).<br>
<br>
I&#39;m trying to call WCF service from IronRuby via the proxies file.&nbsp; svcutil
converts all namespaces in the proxies file to lower case.&nbsp; Here&#39;s some
info on it:<br>
<br>
<a href="http://connect.microsoft.com/wcf/feedback/ViewFeedback.aspx?FeedbackID=298408" target="_blank">http://connect.microsoft.com/wcf/feedback/ViewFeedback.aspx?FeedbackID=298408</a><br>
<br>
I also noticed that &quot;puts&quot; does not output the value of Int64.&nbsp;
However, it does if I use Console.WriteLine in my ruby program.</p>

</div></div></div>

</div>


<br>_______________________________________________<br>
Ironruby-core mailing list<br>
<a href="mailto:Ironruby-core@rubyforge.org">Ironruby-core@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/ironruby-core" target="_blank">http://rubyforge.org/mailman/listinfo/ironruby-core</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Michael Letterle<br>[Polymath Prokrammer]<br><a href="http://blog.prokrams.com">http://blog.prokrams.com</a><br><br><br>