[Ironruby-core] Handling C# lower case namespaces

Tomas Matousek Tomas.Matousek at microsoft.com
Mon Dec 8 14:11:20 EST 2008

Can you load the assembly and get the type explicitly?

require ‘mscorlib’
System::Reflection::Assembly.Load(“IronNails.Library, Version=, Culture=neutral, PublicKeyToken=null").GetType('IronNails.View.XamlProxy’)


From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero
Sent: Monday, December 08, 2008 9:46 AM
To: ironruby-core at rubyforge.org
Subject: Re: [Ironruby-core] Handling C# lower case namespaces

I get the same behavior.
I can load types from the CLR but not from my own assembly.

I copied my assembly into the folder that contains ir.exe

>>> require 'mscorlib'
=> true
>>> require 'IronNails.Library, Version=<>, Culture=neutral, PublicKeyToken=null'
=> true
>>> IronNails::View::XamlProxy
=> IronNails::View::XamlProxy
>>> System::Type.get_type 'IronNails.View.XamlProxy'
=> nil
>>> System::Type.get_type 'System.String'
=> #<System::RuntimeType:0x000005c>
>>> IronNails::View::XamlProxy.to_clr_type
=> #<System::RuntimeType:0x000005e>

On Mon, Dec 8, 2008 at 5:54 PM, Aaron Feng <aaron.feng at gmail.com<mailto:aaron.feng at gmail.com>> wrote:

I tried it again.  I couldn't get the following to work with my own DLL even If I capitalize the namespace (It does work fine with build in types like System.String):

> System::Type.get_type("Abc.Hi, Version=<>, Culture=neutral, PublicKeyToken=null")

Do I have any other options?



Ironruby-core mailing list
Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20081208/1e7f00f6/attachment-0001.html>

More information about the Ironruby-core mailing list