Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: GenericTransformFloat<T> #203

Closed
ddevault opened this issue Oct 20, 2016 · 1 comment
Closed

Proposal: GenericTransformFloat<T> #203

ddevault opened this issue Oct 20, 2016 · 1 comment
Labels

Comments

@ddevault
Copy link
Contributor

Transforms.Add(new GenericTransformFloat<MyComponent>(c,
    c => c.SomeProperty, // get
    (c, v) => c.SomeProperty = v); // set
@peppy
Copy link
Member

peppy commented Apr 8, 2017

We now have void TransformTo<TValue> which can be fed a custom Transform in the constructor. While it's not as flexible as providing the get/set directly as above, so far I think it's enough for our use-cases.

We can revisit this if providing custom one-use transforms becomes a more common thing.

@peppy peppy closed this as completed Apr 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants