Cs0106 The modifier 'private' is not valid for this item How can I resolve this

I tried to build game but this line show error

private IEnumerator System.Collections.IEnumerable.GetEnumerator()
{
return (IEnumerator)null;
}

Like the error states, private is not valid for that line.

An explicitly implemented interface member should not have an accessibility modifier. Remove it.

Which line need to removed

No line needs to be removed. Remove the private access modifier.

An IEnumerable that returns null is pretty pointless.
Are you sure you want to implement IEnumerable?