Why am I getting this building error "Malformed contract section in method..." on the following code?
List<int> MatrizesCorrelacao;
public string lsMatrizes
{
get
{
if (TudoDataUnica == true)
{
return "0";
}
Contract.Ensures(Regex.IsMatch(Contract.Result<string>(), @"^(-1)|(\d+(,\d+)*)$"));
return TransformList<int>ToString(MatrizesCorrelacao);
}
set
{
MatrizesCorrelacao = TransformStringToList<int>(value);
}
}