Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Add Bind<T> overload that creates T #519

Closed
wants to merge 1 commit into from
Closed

Add Bind<T> overload that creates T #519

wants to merge 1 commit into from

Conversation

HaoK
Copy link
Member

@HaoK HaoK commented Sep 30, 2016

Fixes #467

cc @divega

@HaoK
Copy link
Member Author

HaoK commented Sep 30, 2016

Do we want an overload that takes a string which is a shortcut for the common: config.GetSection(key).Bind()?

@HaoK
Copy link
Member Author

HaoK commented Sep 30, 2016

FYI, I really think we should have named the GetValue methods Convert... The name is quite misleading today...

For 2.0, I'd suggest we considering moving to

GetValue<T> => Convert<T>

@HaoK
Copy link
Member Author

HaoK commented Oct 10, 2016

@divega @glennc so are we going with Bind<T> for now?

@divega
Copy link

divega commented Oct 10, 2016

I would be ok with it, given that we have discussed this so many times (see #236 for some old history) and we haven't been able to come up with anything better.

@HaoK
Copy link
Member Author

HaoK commented Oct 11, 2016

4686665

@HaoK HaoK closed this Oct 11, 2016
@natemcmaster natemcmaster deleted the haok/9-30bind branch November 6, 2018 22:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants