Page 25 - CSharp/C#
P. 25

Examples                                                                                           420
            Converting string to integer                                                                     420


        Chapter 69: Hash Functions                                                                          422

          Remarks                                                                                            422

          Examples                                                                                           422

            MD5                                                                                              422

            SHA1                                                                                             423
            SHA256                                                                                           423

            SHA384                                                                                           424

            SHA512                                                                                           424

            PBKDF2 for Password Hashing                                                                      425

            Complete Password Hashing Solution using Pbkdf2                                                  426

        Chapter 70: How to use C# Structs to create a Union type (Similar to C Unions)                      430

          Remarks                                                                                            430

          Examples                                                                                           430

            C-Style Unions in C#                                                                             430

            Union Types in C# can also contain Struct fields                                                 431

        Chapter 71: ICloneable                                                                              433

          Syntax                                                                                             433

          Remarks                                                                                            433

          Examples                                                                                           433

            Implementing ICloneable in a class                                                               433

            Implementing ICloneable in a struct                                                              434

        Chapter 72: IComparable                                                                             436

          Examples                                                                                           436

            Sort versions                                                                                    436

        Chapter 73: IDisposable interface                                                                   438


          Remarks                                                                                            438

          Examples                                                                                           438

            In a class that contains only managed resources                                                  438

            In a class with managed and unmanaged resources                                                  438
            IDisposable, Dispose                                                                             439
   20   21   22   23   24   25   26   27   28   29   30