HarmonyCore icon indicating copy to clipboard operation
HarmonyCore copied to clipboard

Add support for applying OrFieldAdapterAttribute to Collection fields

Open hippiehunter opened this issue 6 years ago • 0 comments

rather than having multiple fields with a defined order, it should be possible to have a collection property that is filled by the operands. Something like the following usage

{OrFieldAdapter}
public readwrite property InName, @List<string> 

The dispatcher should detect that InName is either construct-able and inherits from IList, or can be instantiated as List<T>, the property would have to be IList, IEnumerable or similar.

Aha! Link: https://synergex.aha.io/features/HC-62

hippiehunter avatar Feb 05 '19 01:02 hippiehunter