Page 44 - CSharp/C#
P. 44

Public Get                                                                                       746

            Public Set                                                                                       746

            Accessing Properties                                                                             746

            Default Values for Properties                                                                    748

            Auto-implemented properties                                                                      748

            Read-only properties                                                                             749

        Declaration                                                                                         749

        Using read-only properties to create immutable classes                                              749

        Chapter 125: Reactive Extensions (Rx)                                                               751

          Examples                                                                                           751


            Observing TextChanged event on a TextBox                                                         751
            Streaming Data from Database with Observable                                                     751

        Chapter 126: Read & Understand Stacktraces                                                          753

          Introduction                                                                                       753


          Examples                                                                                           753

            Stack trace for a simple NullReferenceException in Windows Forms                                 753

        Chapter 127: Reading and writing .zip files                                                         755

          Syntax                                                                                             755

          Parameters                                                                                         755

          Examples                                                                                           755

            Writing to a zip file                                                                            755

            Writing Zip Files in-memory                                                                      755

            Get files from a Zip file                                                                        756
            The following example shows how to open a zip archive and extract all .txt files to a fold       756


        Chapter 128: Recursion                                                                              758

          Remarks                                                                                            758

          Examples                                                                                           758

            Recursively describe an object structure                                                         758

            Recursion in plain English                                                                       759
            Using Recursion to Get Directory Tree                                                            760

            Fibonacci Sequence                                                                               762

            Factorial calculation                                                                            763
   39   40   41   42   43   44   45   46   47   48   49