Page 28 - CSharp/C#
P. 28

Property Initialization during object instantiation                                              473

        Chapter 84: INotifyPropertyChanged interface                                                        475


          Remarks                                                                                            475

          Examples                                                                                           475

            Implementing INotifyPropertyChanged in C# 6                                                      475
            INotifyPropertyChanged With Generic Set Method                                                   476


        Chapter 85: Interfaces                                                                              478

          Examples                                                                                           478

            Implementing an interface                                                                        478

            Implementing multiple interfaces                                                                 478

            Explicit interface implementation                                                                479
        Hint:                                                                                               480


        Note:                                                                                               480

          Why we use interfaces                                                                              480

          Interface Basics                                                                                   482

          "Hiding" members with Explicit Implementation                                                      484

          IComparable as an Example of Implementing an Interface                                             485

        Chapter 86: Interoperability                                                                        487

          Remarks                                                                                            487

          Examples                                                                                           487

            Import function from unmanaged C++ DLL                                                           487

        Finding the dynamic library                                                                         487


          Simple code to expose class for com                                                                488

          C++ name mangling                                                                                  488

          Calling conventions                                                                                489

          Dynamic loading and unloading of unmanaged DLLs                                                    490

          Dealing with Win32 Errors                                                                          491

          Pinned Object                                                                                      492

          Reading structures with Marshal                                                                    493

        Chapter 87: IQueryable interface                                                                    495

          Examples                                                                                           495
   23   24   25   26   27   28   29   30   31   32   33