Perguntas com a marcação «callermembername»

1
O [CallerMemberName] é lento em comparação com as alternativas ao implementar INotifyPropertyChanged?
Existem bons artigos que sugerem diferentes formas de implementaçãoINotifyPropertyChanged . Considere a seguinte implementação básica: class BasicClass : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; private void FirePropertyChanged(string propertyName) { var handler = PropertyChanged; if (handler != null) handler(this, new PropertyChangedEventArgs(propertyName)); } private int sampleIntField; public int SampleIntProperty { get { …
Ao utilizar nosso site, você reconhece que leu e compreendeu nossa Política de Cookies e nossa Política de Privacidade.
Licensed under cc by-sa 3.0 with attribution required.