namespaces - How to use this class in my c# code -
how able use iaxaptawrapper class ?
namespace axapta { internal class axapta : iaxaptawrapper
and
namespace axapta { public class axthreadedwrapper: iaxaptawrapper {
my attempt ref dll library , then
use like
using (iaxaptawrapper ax = new axthreadedwrapper()) {
the type or namespace name 'axthreadedwrapper' not found (are missing using directive or assembly reference?)
you need using directive not using statement. different.
a using directive allows omit namespace qualifiers in code. you'll need using directive iaxaptawrapper axthreadedwrapper. in same namespace.
a using statement wraps try-finally .dispose around block of code. use if object implements idisposable.
now have added internal
class. means can't use in assembly (in normal way). default access modifier non-nested class internal
you'll need replace public
because want access assembly.
Comments
Post a Comment