describes how to use the set method

Validating data on the form can be achieved by throwing an exception if an invalid entry in the method set the corresponding field of the object.

public class Кредит : ICSSoft.STORMNET.DataObject
{
	//... 
	public virtual double СуммаКредита
	{
		get
		{
			//... 
		}
		set
		{
			if (value <= 0)
			{
				Exception ex = new Exception("The value of the loan amount must be positive!");
				throw ex; 
			}
			this.fСуммаКредита = value;
		}
	}
}

Other methods of data validation on the form described in the article data Validation.