[DataContract]
class MainContract
{
List items;
[
DataMember,
AifCollectionType('_items', classStr(ItemContract)),
AifCollectionType('return', classStr(ItemContract))
]
List parmItems(List _items = items)
{
items = _items;
return items;
}
}
[DataContract]
class ItemContract
{
str field1;
int field2;
str field3;
[DataMember('Field1')]
public str parmField1(str _field1 = field1)
{
field1 = _field1;
return field1;
}
[DataMember('Field2')]
public int parmField2(int _field2 = field2)
{
field2 = _field2;
return field2;
}
[DataMember('Field3')]
public str parmField2(str _field3 = field3)
{
field3 = _field3;
return field3;
}
}
[DataContractAttribute]
class TestDataContract
{
Field1 field1;
Field2 field2;
Field3 field3;
[DataMemberAttribute('Field1')]
public Field1 parmField1(Field1 _field1 = field1)
{
field1 = _field1;
return field1;
}
[DataMemberAttribute('Field2')]
public Field2 parmField2(Field2 _field2 = field2)
{
field2 = _field2;
return field2;
}
[DataMemberAttribute('Field3')]
public Field3 parmField2(Field3 _field3 = field3)
{
field3 = _field3;
return field3;
}
}
[DataContractAttribute]
class TestReportContract
{
List field1, field2, field3;
[DataMemberAttribute('Field1'),
AifCollectionTypeAttribute('return', Types::String)]
public List parmListField1(List _field1 = field1)
{
field1 = _field1;
return field1;
}
[DataMemberAttribute('Field2'),
AifCollectionTypeAttribute('return', Types::Int)]
public List parmListField2(List _field2 = field2)
{
field2 = _field2;
return field2;
}
[DataMemberAttribute('Field3'),
AifCollectionTypeAttribute('return', Types::String)]
public List parmListField3(List _field3 = field3)
{
field3 = _field3;
return field3;
}
}
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,867 Super User 2024 Season 2
Martin Dráb 229,173 Most Valuable Professional
nmaenpaa 101,156