Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

ValidateInputAttribute

A topic by CatyboyStudio created Oct 14, 2022 Views: 56
Viewing posts 1 to 1

After the data changes, the result is made by the Validator method and the reminder information is displayed

[ValidateInput(nameof(IsEvenNumber), "Must be even", MessageType.Warning)]
public int Value1;
private bool IsEvenNumber(int i)
{
    return i % 2 == 0;
}