How to Refer to the Classes in my Custom DLL

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.

Mohammad A. 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs