Page 15 - CSharp/C#
P. 15

Chapter 42: Creational Design Patterns                                                              231

          Remarks                                                                                            231

          Examples                                                                                           231

            Singleton Pattern                                                                                231

            Factory Method pattern                                                                           233
            Builder Pattern                                                                                  235

            Prototype Pattern                                                                                239

            Abstract Factory Pattern                                                                         241

        Chapter 43: Cryptography (System.Security.Cryptography)                                             245

          Examples                                                                                           245


            Modern Examples of Symmetric Authenticated Encryption of a string                                245
            Introduction to Symmetric and Asymmetric Encryption                                              256

          Symmetric Encryption                                                                               257

          Asymmetric Encryption                                                                              257

            Password Hashing                                                                                 258

            Simple Symmetric File Encryption                                                                 258

            Cryptographically Secure Random Data                                                             259

            Fast Asymmetric File Encryption                                                                  260

        Chapter 44: Data Annotation                                                                         266

          Examples                                                                                           266

            DisplayNameAttribute (display attribute)                                                         266

            EditableAttribute (data modeling attribute)                                                      267

            Validation Attributes                                                                            269

          Example: RequiredAttribute                                                                         269

          Example: StringLengthAttribute                                                                     269

          Example: RangeAttribute                                                                            269

          Example: CustomValidationAttribute                                                                 270

            Creating a custom validation attribute                                                           270

            Data Annotation Basics                                                                           271

          Usage                                                                                              271

            Manually Execute Validation Attributes                                                           271

          Validation Context                                                                                 271
   10   11   12   13   14   15   16   17   18   19   20