Skip to content

Conversation

@nikitap90
Copy link

We need variable here, not property

We need variable here, not property
@bzaar
Copy link
Owner

bzaar commented Jun 22, 2018

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
Copy link
Owner

bzaar commented Jun 22, 2018

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

@nikitap90
Copy link
Author

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

@nikitap90
Copy link
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
Copy link
Owner

bzaar commented Jun 23, 2018

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