aloneguid / config

⚙ Config.Net - the easiest configuration framework for .NET developers. No BS.
MIT License
656 stars 86 forks source link

Custom property name resolution without using OptionAttribute #95

Closed aviadmini closed 2 years ago

aviadmini commented 5 years ago

Something like

interface IStoreNameResolver {
    string ResolveName(PropertyInfo info);
    string ResolveName(MethodInfo info);
}

Implementation would provide a store name for property/method, or null in which case Config.net would default to current logic (Option attribute, or name of property/method)

aloneguid commented 5 years ago

What's the use case? By the way, have you tried using Get/Set methods that can be declared on the interface?