Lets say I have a class foo and I need its wrapper.
foo looks as follows:
class foo
{
public foo (int arg1, long arg2)
{
// constructor code
}
public int GetInt()
{
return 0;
}
public void DoSomething(bool useful)
{
useSomehow(useful);
}
double m_doubleProperty = 0;
public double DoubleProperty
{
get { return m_doubleProperty; }
set { m_doubleProperty = value; }
}
}
If I rightClick on 'foo' and choose Create wrapper, VAX should do:
class fooWrapper
{
private foo;
public fooWrapper(int arg1, long arg2)
{
this.foo = new foo(arg1, arg2);
}
public int GetInt()
{
return foo.GetInt();
}
public void DoSomething(bool useful)
{
foo.DoSomething(useful);
}
public double DoubleProperty
{
get { return foo.DoubleProperty; }
set { foo.DoubleProperty = value; }
}
}
Dusan