# How to Refer to the Classes in my Custom DLL

**URL:** <https://www.ruby-forum.com/t/how-to-refer-to-the-classes-in-my-custom-dll/171620>\
**Category:** IronRuby\
**Created:** [July 6, 2009, 6:28pm UTC](https://www.ruby-forum.com/t/how-to-refer-to-the-classes-in-my-custom-dll/171620 "2009-07-06T18:28:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![metanoize](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9fc29f/32.png) [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Post date:** [July 6, 2009, 6:28pm UTC](https://www.ruby-forum.com/t/how-to-refer-to-the-classes-in-my-custom-dll/171620/1 "2009-07-06T18:28:19Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![metanoize](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9fc29f/32.png) [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Post date:** [July 6, 2009, 6:33pm UTC](https://www.ruby-forum.com/t/how-to-refer-to-the-classes-in-my-custom-dll/171620/2 "2009-07-06T18:33:58Z")

</div>

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
