use ArgumentNullException in BNR.cs.