Created
May 25, 2021 11:13
-
-
Save lgolubyev/abf7863f24162d214e326ee5e5b6e798 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DataSlice(string dataLabel, float dataValue) | |
{ | |
public string DataLabel | |
{ | |
get => dataLabel; | |
set | |
{ | |
if (value < 0) throw new ArgumentOutOfRangeException(); | |
dataLabel = value; | |
} | |
} | |
public float DataValue { get => dataValue; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment