There is something else that you might be missing that hasn't been mentioned. I think it might be the problem you are having as I suspect you already tried removing the trailing () and still got an error.
First, like others have mentioned here, in your example you do need to remove the trailing ();
But, also, note that List<> is in the System.Collections.Generic namespace.
So, you need to do one of the following two options:
[#1 below is probably the more preferred option]
(1)
Include the use of the namespace at the top of your code with:
using System.Collections.Generic;
or
(2)
Put the fully qualified path to List in your declaration.
System.Collections.Generic.List optList=new System.Collections.Generic.List
{ "AdditionalCardPersonAddressType","AutomaticRaiseCreditLimit","CardDeliveryTimeWeekDay"
};
Hope that helps.
The error message you receive when you implement List correctly but don't include the System.Collections.Generic namespace is misleading and not helpful:
"Compiler Error CS0308: The non-generic type List cannot be used with type arguments."
PS - It gives this unhelpful error because if you don't specify that you intend to use System.Collections.Generic.List the compiler assumes you are trying to use System.Windows.Documents.List.