I currently have this code:
private static void IsEntryWidthChanged(BindableObject bindable, object oldValue, object newValue)
{
if ((bindable as SingleEntryGrid)._column3 != null)
(bindable as SingleEntryGrid)._column3.Width = (double)newValue;
}
Is here a way that I could assign (bindable as SingleEntryGrid) to a variable while at the same time checking it is not null and then use that for the next line such that the next line became:
singleEntryGrid._column3.Width = (double)newValue;
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…