Abstract List of KeyValuePairs
It says I can't do this with a field, and to try a property instead. Doing that doesn't resolve it.
I've never received this message when declaring an abstract variable. Any suggestions?
8 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Ah ok, I forgot the {get;}
Adding that does what I needed. Thanks!
abstract is "this member needs to be implemented by deriving classes"
Fields don't have implementations, they just exist
Also, why a List of KVP instead of a dictionary?
I need non-unique keys
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
I used the auto-suggested version, I forget what it looked like
Is there a better structure than List<KVP>? I've never used it before
Depending on the performance requirements of this code, I'd be inclined to suggest just implementing your own
MultiDictionary
type. Sounds like it'd make for a cleaner end productYeah, I'm really not liking the clunky syntax of the KVP stuff. I'll give that a shot.
Thanks, all!