1
Answer

NameValue Problem

Photo of A R

A R

17y
2.6k
1

I have the following code...

NameValue[] pair = new NameValue[1];
pair[0].Name = "SomeValue";
pair[0].Value = "Some Value";

This throws a null pointer exception. Is this the correct way to initialize the NaneValue?

Answers (1)