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

our set stuffix casting is too aggressive. #624

Closed
erendrake opened this issue Feb 28, 2015 · 0 comments
Closed

our set stuffix casting is too aggressive. #624

erendrake opened this issue Feb 28, 2015 · 0 comments
Assignees
Labels
enhancement Something new (not a bug fix) is being requested

Comments

@erendrake
Copy link
Member

right now, whenever we set a suffix, we are always using the pretty aggressive Convert.ChangeType.

https://github.com/KSP-KOS/KOS/blob/develop/src/kOS.Safe/Encapsulation/Suffixes/SetSuffix.cs#L17

this ignores the fact that many times the type we setting is already correct and a simple cast will do.

@erendrake erendrake added the enhancement Something new (not a bug fix) is being requested label Feb 28, 2015
@erendrake erendrake self-assigned this Feb 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Something new (not a bug fix) is being requested
Projects
None yet
Development

No branches or pull requests

1 participant