locked
How would you convert C# class to C++ class

    Question

  • How would you convert the below C# class to a C++ Class

    public class MyImage : INotifyPropertyChanged
    {
        public MyImage()
        {
            this._IsLoading = true;
        }

        public string Name { get; set; }
        public BitmapImage Image { get; set; }

        private bool _IsLoading;
        public bool IsLoading
        {
            get { return _IsLoading; }
            set
            {
                _IsLoading = value;
                RaisePropertyChanged();
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
        private void RaisePropertyChanged([CallerMemberName] string caller = "")
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(caller));
            }
        }
    }

    I plan to use it and keep it as a template.

    Thanks,

    Grim

    Tuesday, December 17, 2013 5:12 PM

Answers

  • Rob,

    Not a complete answer, but provides some solution,

    Grim


    • Edited by A.B.P.Lambert Wednesday, December 25, 2013 2:32 PM
    • Marked as answer by A.B.P.Lambert Wednesday, December 25, 2013 2:32 PM
    Wednesday, December 25, 2013 2:16 PM

All replies