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

Fixes 624 #625

Merged
merged 2 commits into from
Mar 3, 2015
Merged

Fixes 624 #625

merged 2 commits into from
Mar 3, 2015

Conversation

erendrake
Copy link
Member

No description provided.

@@ -14,7 +14,15 @@ public SetSuffix(SuffixGetDlg<TValue> getter, SuffixSetDlg<TValue> setter, strin

public virtual void Set(object value)
{
var toSet = (TValue)Convert.ChangeType(value, typeof(TValue));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

before we attempt to force the type change, We attempt a simple cast and if that works we dont have to go to the trouble of the convert.

Dunbaratu added a commit that referenced this pull request Mar 3, 2015
@Dunbaratu Dunbaratu merged commit 1a3bfe4 into KSP-KOS:develop Mar 3, 2015
@erendrake erendrake deleted the fixes_624 branch March 21, 2015 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants