- To clarify null check, modify conditionals clearly like this
: if (a != null)
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
{
trans = Xaml.Extensions.LoadObject<Transition>(likelyResourcePath);
}
- if (trans)
+ if (trans != null)
{
transDictionary.Add(trans.Name, trans);
}
view = _preFocusChangeEventHandler(this, e);
}
- if (view)
+ if (view != null)
{
return view.GetPtrfromView();
}
//Release your own unmanaged resources here.
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
- if(Root != null)
+ if(Root != null)
{
Root.Unparent();
Root.Dispose();
{
trans = Xaml.Extensions.LoadObject<Transition>(likelyResourcePath);
}
- if (trans)
+ if (trans != null)
{
transDictionary?.Add(trans.Name, trans);
}