Code: Select all
if (hb1.Hud109 > 0)
{
IOrderItem line109 = (IOrderItem)lines[109];
IList chgs = (IList)line109.GetProperty("Charges");
IOrderItem chg = (IOrderItem)chgs[0];
chg.SetProperty("Amount", hb1.Hud109);
chg.SetProperty("Description", hb1.Hud109A);
IOrderItem hto = (IOrderItem)chg.GetProperty("HUDTo");
hto.SetProperty("Code", order.GetProperty<IEnumerable<IOrderItem>>("Contacts").Single(t => t.GetProperty<ContactType>("ContactType") == ContactType.AllSellers)); // creates the below error
os.ApplyChanges(order);
}
Error CS0308 The non-generic method 'IOrderItem.GetProperty(string)' cannot be used with type arguments SoftProConversion C:\dev\SoftProConversion\SoftProConversion\Form1.cs 4538
This is the code as you sent me in a previous post. How do I fix?