In ATEasy DotNet example, we show the following different version of constructors that create the same class object, cls1:
! constructor with argument of type BOOL
cls1=new DotNetClass1(True)
! constructor with argument of type CHAR
cls1=new DotNetClass1('A')
! constructor with argument of type WCHAR
awc[0]='B'
cls1=new DotNetClass1(awc[0])
! constructor with argument of type BYTE
cls1=new DotNetClass1(1uc)
! constructor with argument of type WORD
cls1=new DotNetClass1(2W)
! constructor with argument of type SHORT
cls1=new DotNetClass1(-2N)
! constructor with argument of type DWORD
cls1=new DotNetClass1(3UL)
! constructor with argument of type LONG
cls1=new DotNetClass1(-3L)
! constructor with argument of type UDLONG
cls1=new DotNetClass1(4E12ULD)
! constructor with argument of type DLONG
cls1=new DotNetClass1(-5E12LD)
! constructor with argument of type FLOAT
cls1=new DotNetClass1(6.75F)
! constructor with argument of type DOUBLE
cls1=new DotNetClass1(7.75D)
! constructor with argument of type STRING
cls1=new DotNetClass1("ABCD")
! constructor with argument of type enum DayOfWeek
dow=new MSCORLIB.DayOfWeek()
dow.value__=DayOfWeek.Friday
cls1=new DotNetClass1(dow)
! constructor with argument of type DECIMAL
dc=new MSCORLIB.Decimal(1E10)
cls1=new DotNetClass1(dc)
! constructor with argument of type DATETIME
dt=new MSCORLIB.DateTime(2005, 5, 5)
cls1=new DotNetClass1(dt)
! constructor with argument of type ASSEMBLYNAME
aasm[0]=new AssemblyName
cls1=new DotNetClass1(aasm[0])
! constructor with argument of type BOOL[]
ab[0]=True
cls1=new DotNetClass1(ab)
! constructor with argument of type CHAR[]
ac[0]='A'
cls1=new DotNetClass1(ac)
! constructor with argument of type WCHAR[]
awc[0]='B'
cls1=new DotNetClass1(awc)
! constructor with argument of type BYTE[]
auc[0]=1
cls1=new DotNetClass1(auc)
! constructor with argument of type WORD[]
aw[0]=2
cls1=new DotNetClass1(aw)
! constructor with argument of type SHORT[]
an[0]=-2
cls1=new DotNetClass1(an)
! constructor with argument of type DWORD[]
adw[0]=3
cls1=new DotNetClass1(adw)
! constructor with argument of type LONG[]
al[0]=-3
cls1=new DotNetClass1(al)
! constructor with argument of type UDLONG[]
auld[0]=4E12
cls1=new DotNetClass1(auld)
! constructor with argument of type DLONG[]
ald[0]=-5E12
cls1=new DotNetClass1(ald)
! constructor with argument of type FLOAT[]
af[0]=6.75
cls1=new DotNetClass1(af)
! constructor with argument of type DOUBLE[]
ad[0]=7.75
cls1=new DotNetClass1(ad)
! constructor with argument of type STRING[]
as[0]="ABCD"
cls1=new DotNetClass1(as)
! constructor with argument of type enum DayOfWeek[]
adow[0]=new MSCORLIB.DayOfWeek()
adow[0].value__=DayOfWeek.Friday
cls1=new DotNetClass1(adow)
! constructor with argument of type struct DateTime[]
adt[0]=new MSCORLIB.DateTime()
cls1=new DotNetClass1(adt)
! constructor with argument of type enum AssemblyName[]
aasm[0]=new AssemblyName()
cls1=new DotNetClass1(aasm)