Replace:
public string StrMetodoPago
{
get { return strMetodoPago; }
set { strMetodoPago = value; }
}
For this:
public string StrMetodoPago
{
get { return string.IsNullOrEmpty(strMetodoPago) ? string.Empty : strMetodoPago; }
set { strMetodoPago = value; }
}

Search Expression:
get.\{.[return]+.{[a-zA-Z0-9]+};.\}

Replace Expression:
get { return string.IsNullOrEmpty(\1) ? string.Empty : \1; }

Advertisements