September 16, 2016 at 9:41 am
Hi all,
I am having common error Object reference not set to an instance but I am unable to figure out what is the mistake I am doing.
There is a public class Referralcreate which has few elements. Then this class(Referralcreate []) is defined in create class with the type rcreate.
Public class Referralcreate
{
Private Datatype Code
Private Datatype Qualifier
.
.
.
}
Public class create
{
Private Datatype ReferralCreate[] rcreate
public ReferralCreate[] rcreate{
get {
return this.rcreate;
}
set {
if ((object.ReferenceEquals(this.rcreate, value) != true)) {
this.rcreate= value;
this.RaisePropertyChanged("rcreate");
}
}
I have to set an instance and then initialize array and loop it for 2 rows . And I am not able to do it. I get object not set to instance error. I did create the instance but it was wrong. Waht could be the correct format.
Something like,
rcreate.code=code;
rcreate.qualifier=qualifier;
Any help is appreciated
Viewing 0 posts
You must be logged in to reply to this topic. Login to reply