32 lines · 912 B · C#
RawDownload
using System;using System.Collections.Generic;using System.ComponentModel;using System.Linq;using System.Runtime.CompilerServices;using System.Text;using System.Threading.Tasks; namespace COMTRADEConverter{    class ViewModelBase : INotifyPropertyChanged    {        public event PropertyChangedEventHandler PropertyChanged;         protected bool SetProperty<T>(ref T storage, T value, [CallerMemberName] string propertyName = null)        {            if (Object.Equals(storage, value))                return false;             storage = value;            OnPropertyChanged(propertyName);            return true;        }         protected void OnPropertyChanged(string propertyName)        {            PropertyChangedEventHandler handler = PropertyChanged;            if (handler != null)                handler(this, new PropertyChangedEventArgs(propertyName));        }    }}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t