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

Issue #377 fix #378

Merged
merged 6 commits into from Jul 24, 2012
Merged

Issue #377 fix #378

merged 6 commits into from Jul 24, 2012

Conversation

don-reba
Copy link
Contributor

Just thought I'd fix the issue, on NN's suggestion.
I have also added an additional parameter for defining the entry point to the MSBuild task.

public override ToString () : string
{
match (this){
| Some (x) when x : object == null => "Some()"
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't this box value type ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would presume that it does. Is that a problem?

Copy link
Member

Choose a reason for hiding this comment

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

It is behaviour change, I am not sure if everyone accepts it.

It is possible to check whether T is not ValueType and only then check for null.

For instance

isValueType = typeof(T).IsValueType.

ToString() { if (isValueType) ToStringValue() else ToStringReference() }

It could be great if you could do this in compile time also :)

VladD2 added a commit that referenced this pull request Jul 24, 2012
@VladD2 VladD2 merged commit 0ac0621 into rsdn:master Jul 24, 2012
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

3 participants