R
Ray Stevens
I have a dataclass that was created by a code generator. A snippit of its
output is as follows:
namespace SoftwareAG.EntireX.NETWrapper.Generated.laf801n1.Groups
{
public class Laf801n1
{
public class Laa001a2
{
public string environment ;
public string sourceApp ;
}
public class Laf801a1
{
public string certnoSeq ;
public string lender ;
}
public class Laf801a2
{
public string respD ;
public string respT ;
public string custName ;
}
}
}
I would like to pass this as a reference. The following code snippet works:
using SoftwareAG.EntireX.NETWrapper.Generated.laf801n1.Groups;
using SoftwareAG.EntireX.NETWrapper.Generated.laf801n1;
namespace LATF.TSR.DAL
{
public class FldDAL : BaseDAL
{
public void PlaceFooOrder(ref Laf801n1.Laa001a2 hdr, ref
Laf801n1.Laf801a1 request, ref Laf801n1.Laf801a2 response)
{
Flddev txn = new Flddev();
txn.Laf801n1(ref hdr, ref request, ref response);
}
}
While this does not (in fact, it can't even be done. intellisense shows
things like Laf801n1.ToString(), etc.):
using SoftwareAG.EntireX.NETWrapper.Generated.laf801n1.Groups;
using SoftwareAG.EntireX.NETWrapper.Generated.laf801n1;
namespace LATF.TSR.DAL
{
public class FldDAL : BaseDAL
{
public void PlaceFooOrder(ref Laf801n1 etx)
{
Flddev txn = new Flddev();
txn.Laf801n1(ref etx.Laa001a2, ref etx.Laf801a1, ref
etx.Laf801a2); // This is what I would like to code.
}
}
Is what I am attempting doable?
output is as follows:
namespace SoftwareAG.EntireX.NETWrapper.Generated.laf801n1.Groups
{
public class Laf801n1
{
public class Laa001a2
{
public string environment ;
public string sourceApp ;
}
public class Laf801a1
{
public string certnoSeq ;
public string lender ;
}
public class Laf801a2
{
public string respD ;
public string respT ;
public string custName ;
}
}
}
I would like to pass this as a reference. The following code snippet works:
using SoftwareAG.EntireX.NETWrapper.Generated.laf801n1.Groups;
using SoftwareAG.EntireX.NETWrapper.Generated.laf801n1;
namespace LATF.TSR.DAL
{
public class FldDAL : BaseDAL
{
public void PlaceFooOrder(ref Laf801n1.Laa001a2 hdr, ref
Laf801n1.Laf801a1 request, ref Laf801n1.Laf801a2 response)
{
Flddev txn = new Flddev();
txn.Laf801n1(ref hdr, ref request, ref response);
}
}
While this does not (in fact, it can't even be done. intellisense shows
things like Laf801n1.ToString(), etc.):
using SoftwareAG.EntireX.NETWrapper.Generated.laf801n1.Groups;
using SoftwareAG.EntireX.NETWrapper.Generated.laf801n1;
namespace LATF.TSR.DAL
{
public class FldDAL : BaseDAL
{
public void PlaceFooOrder(ref Laf801n1 etx)
{
Flddev txn = new Flddev();
txn.Laf801n1(ref etx.Laa001a2, ref etx.Laf801a1, ref
etx.Laf801a2); // This is what I would like to code.
}
}
Is what I am attempting doable?