I have problem with these code. I want to add a row to a dataset, but I have this error " An object reference is required for the non-static field, method, or property " for a sampleDataSet.bar\_of\_4Row. I tried to make it static but it did not work. I tried to do it like in this tutorial: <https://msdn.microsoft.com/en-us/library/5ycd1034.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-1>

```
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NaplnenieDB
{
    class Program
    {

        static void Main(string[] args)
        {

            sampleDataSet.bar_of_4Row newBarRow = sampleDataSet.bar_of_4.Newbar_of_4Row();
            newBarRow.bar = "RRRR";
            newBarRow.first = "R";
            sampleDataSet.bar_of_4.Addbar_of_4Row(newBarRow);

        }

    }
}

```