Skip to content

Update Expressions.cs#7

Open
nikitap90 wants to merge 1 commit into
bzaar:masterfrom
nikitap90:patch-1
Open

Update Expressions.cs#7
nikitap90 wants to merge 1 commit into
bzaar:masterfrom
nikitap90:patch-1

Conversation

@nikitap90

Copy link
Copy Markdown

We need variable here, not property

We need variable here, not property
@bzaar

bzaar commented Jun 22, 2018

Copy link
Copy Markdown
Owner

Hi, thanks for your input. Would you mind explaining how this makes the code better? The properties were read-only while the fields in this PR are read/write and open for modification which is probably not what we want. Thanks.

@bzaar

bzaar commented Jun 22, 2018

Copy link
Copy Markdown
Owner

And why you need this in the first place. Thanks.

@nikitap90

Copy link
Copy Markdown
Author

Property's getters are not implemented, so this way is shortest to make code working.

@nikitap90

Copy link
Copy Markdown
Author

The code didn't compiled with error on empty 'get' in properties, so I changed properties to variables and it worked. To make read-only field I suggest add private variable and property which getter returns value of private variable.

@bzaar

bzaar commented Jun 23, 2018

Copy link
Copy Markdown
Owner

The current code (in master) builds without errors. What error are you getting and what Visual Studio version are you using? Why do you need to modify the code? Why not just use the Nuget package?

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.

2 participants