Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created May 25, 2021 11:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgolubyev/abf7863f24162d214e326ee5e5b6e798 to your computer and use it in GitHub Desktop.
Save lgolubyev/abf7863f24162d214e326ee5e5b6e798 to your computer and use it in GitHub Desktop.
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