[Ironruby-core] How to Refer to the Classes in my Custom DLL

Kevin Radcliffe lists at ruby-forum.com
Mon Jul 6 12:33:58 EDT 2009


Mohammad Azam wrote:
> Hi,
> 
> I have a class library in C# called "BusinessObjects" and I want to
> refer to that DLL using IronRuby.
> 
> I typed:
> 
> require 'BusinessObjects'
> true
> 
> include BusinessObjects
> 
> 
>>>> include BusinessObjects
> C:\ironruby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtin
> s\ModuleOps.cs:793:in `const_missing': uninitialized constant
> Object::BusinessOb
> jects (NameError)
>         from :0
> 
> I want to refer to a Customer class inside the BusinessObjects library.

Is BusinessObjects the top-level namespace here?
Usually, you might have some namespace a level above that, like 
Azam::BusinessObjects

Could you attach a zip with the compiled BusinessObjects.dll?
Thanks

-- 
Posted via http://www.ruby-forum.com/.


More information about the Ironruby-core mailing list