How to add value to an array of object in C#
<p>I am consuming a third party web service and I want to add value to match the service reference class, and i am not sure how to add value to the following: </p>

<p>in reference:</p>

<pre><code>public partial class UserInfor: object, System.ComponentModel.INotifyPropertyChanged 
{
        private ABC[] listOfABCField;

        public ABC[] ListOfABC 
    {
            get {
                return this.listOfABCField;
            }
            set {
                this.listOfABCField = value;
                this.RaisePropertyChanged("ListOfABC");
            }
        }
}

public partial class ABC : object, System.ComponentModel.INotifyPropertyChanged 
{
    private string ipField;

private string fristNameField;

private string lastNameField;       

}
</code></pre>

<p>//////////////////////////////////////////////////////
in my service.asmx file have tried to put value as below:
in below code i got exception in line ABC[] abc=new ABC[0]; error code:(NullReferenceException)</p>

<pre><code>    UserInfor user = new UserInfor();
    ABC[] abc=new ABC[0];
        abc[0].firstName= "petter";
        abc[0].lastName = "lee";

        user.ListOfABC = abc[1];
</code></pre>

<p>i also tried 
in below code i got exception in line user.ListOfABC[0] = abc;  error code:(NullReferenceException)</p>

<pre><code>    UserInfor user = new UserInfor();
    ABC abc=new ABC[0];
        abc.firstName= "petter";
        abc.lastName = "lee";

        user.ListOfABC[0] = abc;
</code></pre>

<p>any idea how to add abc to user class ? thank you in advance</p>