If I check the equalities of two datas with first if statement when ent.column
is empty there will be error:
Object reference not set to an instance of an object.
When I check the equalities of two datas with second if statement and args.column
is null, everything is works fine. Sorry for bad explain, this one is my first on stackoverflow.
myTable ent;//this comes from db;
myclass args// this comes from view;
//gives error
if(ent.column.Equals(args.column)){
//some code
}
//successfully check
if(args.column.Equals(ent.column)){
//some code
}