Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

ValidateInputAttribute

A topic by CatyboyStudio created Oct 14, 2022 Views: 67
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;
}