舉報

會員
Beginning C# 7 Hands-On:Advanced Language Features
最新章節:
Summary
ThisbookisforanyonewhoisinterestedinlearninghowtoprogramthemoreadvancedaspectsoftheC#language.PreviousprogrammingknowledgeofC#isrequired,atleasttothelevelofbasicobject-orientedprogramming.ReaderscanbenefitfromfirstreadingTomOwsiak’scompanionbook,BeginningC#7Hands-On–TheCoreLanguage,asapreparationforthemoreadvancedelementsandtechniquespresentedinthisbook.
最新章節
- Summary
- Chapter review
- Running the program
- Displaying the results
- Selecting among the items that meet the search criteria
- Searching for items that meet a specific criteria
品牌:中圖公司
上架時間:2021-07-02 12:43:26
出版社:Packt Publishing
本書數字版權由中圖公司提供,并由其授權上海閱文信息技術有限公司制作發行
- Summary 更新時間:2021-07-02 15:30:20
- Chapter review
- Running the program
- Displaying the results
- Selecting among the items that meet the search criteria
- Searching for items that meet a specific criteria
- Testing the program
- Saving the store XML file
- Building an element tree
- Clearing the output
- Adding namespaces
- Adding a text box and a button to HTML
- Querying XML Documents with LINQ
- Summary
- Chapter review
- Running the program
- Formatting the results
- Writing to the hard drive
- Coding the XmlWriter settings
- Adding namespaces
- Adding a button to HTML
- Creating XML Files with C#
- Summary
- Chapter review
- Running the program
- Displaying the results
- Iterating over the contents of the XML file
- Loading the XML file into your program
- Adding a namespace
- Coding the XML
- Adding a button to HTML
- Creating and Using an XML File
- Summary
- Chapter review
- Running the program
- Using of the connection string
- Building the connection string
- Testing the scanning the folder function
- Coding the application
- Adding namespaces
- Storing image files on your hard drive
- Creating a database table to store the files
- Adding buttons and a list box to HTML
- Saving an Image to SQL Server
- Summary
- Chapter review
- Running the program
- Sending out the image URL
- Converting the picture to a byte array
- Manipulating the pixels
- Accessing a pixel's location
- Saving an image as a bitmap picture
- Making a bitmap
- Adding a namespace
- Adding a button and an image control to the HTML
- Manipulating an image
- Having a Little Fun with Images with Pixel Manipulations
- Summary
- Chapter review
- Running the program
- Displaying the results
- Rebuilding an object from a hard drive
- Testing the program
- Serializing an object
- Making a binary formatter
- Handling unmanaged resources
- Making a Person object
- Defining the path for saving a file
- Adding features to the serializable class
- Creating a serializable class
- Adding namespaces
- Beginning to code the project
- Adding two buttons to the HTML
- Serializing and Deserializing Objects
- Summary
- Chapter review
- Running the program
- Catching the exceptions
- Exploring the exceptions for EnumerateFiles
- Determining the return type
- Determining which files are stored in a directory
- Displaying messages to the user
- Saving the file
- Saving a file to a specific location
- Adding a namespace
- Starting our project from scratch
- Creating a Page That Uses the File Upload Control
- Summary
- Chapter review
- Running the program
- Creating a StreamReader class
- Creating a StreamWriter class
- Catching an exception
- Starting to code the project
- Creating the user interface for your project
- Creating an application to save text
- Creating a Page That Saves Text to Disk
- Summary
- Chapter review
- Adding comments
- Running the program
- Displaying the summed values
- Populating the table with data
- Making a data table
- Making an adapter
- Making the SQL connection
- Building the connection string
- Adding the namespaces
- Summarizing the fields
- Changing the data in the ExperimentValues table
- Using LINQ to Operate on Tables from SQL Server
- Summary
- Chapter review
- Modifying the program to display the Y values
- Running the program
- Opening the connection and making a SQL data reader
- Making the command object
- Writing a SQL query
- Building the connection string
- Adding a namespace
- Coding the project
- Adding values to the new table
- Enabling auto-incrementation
- Adding a new table to the People database
- Adding a button to the HTML page
- Placing a chart into the HTML page
- Connecting a Chart Control to SQL Server
- Summary
- Chapter review
- Running the program
- Displaying the records
- Adding people to the list from the table
- Entering the SQL-related code
- Building the connection string
- Making the list of people
- Making the properties
- Creating the person class
- Writing the code for this project
- Modifying the dbo.People table
- Adding a field to the people database
- Adding a Show People button to the HTML
- Using the Nullable Feature to Make Apps More Stable
- Summary
- Chapter review
- Running the program
- Recognizing the role of indexers
- Saving the information for later retrieval
- Adding the parameters
- Trying out commands
- Catching exceptions
- Initializing the connection
- Building the connection string
- Adding a namespace
- Updating the database structure
- Creating a new stored procedure
- Reviewing what you created already in SQL Server
- Adding text boxes and a button to the HTML
- Inserting Records into Tables Using Stored Procedures
- Summary
- Chapter review
- Running the program
- Working with the SQL Server data reader
- Opening the connection
- Displaying errors
- Catching exceptions
- Connecting to SQL Server
- Making the connection string
- Adding a namespace
- Adding a show records button to the HTML
- Writing Code to Manually Connect to a Table and Retrieve Records
- Summary
- Chapter review
- Updating the structure of the database
- Adding fields to the table
- Adding and defining a table
- Creating a SQL server database
- Working with SQL server inside Visual Studio
- Installing the package
- Selecting the installation type
- Downloading SQL Server 2017 express
- Downloading Installing and Running SQL Server 2017
- Summary
- Chapter review
- Running the program
- Getting and displaying the results
- Joining the owners and car lists
- Making a list of owners and their cars
- Making car objects
- Making person objects
- Creating the person and car classes
- Adding the namespaces
- Adding a Join Classes button to the HTML
- Joining Datasets with Inner Joins
- Summary
- Chapter review
- Displaying the grouped results
- Grouping names
- Making a list of students
- Creating the student class and defining fields
- Adding namespaces
- Adding a Show Results button to the HTML
- Summarizing Results with Grouping
- Summary
- Chapter review
- Running the program
- Displaying the results
- Summarizing the list
- Making a list of doubles
- Returning the tuples
- Making a list with a tuple
- Adding namespaces
- Introducing tuples
- Adding a show tuple summary values button to the HTML
- Using LINQ to Summarize Tuples
- Summary
- Chapter review
- Running the program
- Summarizing the information in the classList
- Adding students to the classList
- Working with a list of lists
- Using the Count function
- Displaying the results
- Averaging the values in a list
- Creating an array
- Adding a show button to the HTML
- Queries That Perform Aggregation Functions
- Summary
- Chapter review
- Running the program
- Querying the data in the key-value pairs
- Working with key-value pairs
- Making a dictionary
- Observing deferred execution
- Displaying the results
- Selecting a salary range and putting it in descending order
- Working with range variables
- Creating a decimal salary array
- Adding a show button to the HTML
- Using Query Syntax to Construct Queries
- Summary
- Chapter review
- Running the program
- Querying the array
- Setting up an array of people
- Making a custom type using LINQ
- Setting up a database
- Adding a Show People button to the HTML
- C# with LINQ and Custom Data Types
- Summary
- Chapter review
- Running the program
- Extracting values from the list and sorting them
- Converting the values back to a list
- Determining the values in a collection
- Converting an array to a list of integers
- Working with the IEnumerable generic interface
- Adding namespaces
- Adding a Show Values button to the HTML
- C# with LINQ and Built-In Types
- Summary
- Chapter review
- Running and modifying the program
- Starting a thread
- Making an anonymous function or method
- Performing an action on all of the values
- Streamlining writing functions
- Adding a Show Results button to the HTML
- Anonymous Methods and Objects That Run Their Own Delegates
- Summary
- Chapter review
- Running the program
- Specifying the parameters
- Comparing values
- Creating an expression-bodied lambda
- Converting an array of strings into an array of doubles
- Defining an expression-bodied member
- Making the delegate
- Adding a box and a Find Max button to the HTML
- Expression-Bodied Lambdas and Expression-Bodied Members
- Summary
- Chapter review
- Working with actions
- Operating an array
- Defining lambda expressions
- Making objects of the delegate type
- Setting up the variables
- Adding delegates
- Adding a Show Results button to the HTML
- Connection Between Delegates and Lambda Expressions
- Summary
- Chapter review
- Making a directory and creating a file from Command Prompt
- Iterating over key-value pairs
- Making a verbatim string
- Starting a process from a web page
- Adding a show button to the HTML
- Creating and Using Generic Dictionaries
- Summary
- Running the program
- Calling the delegate
- Assigning functions to represent the delegate
- Constructing a delegate
- Adding a summarize button to the HTML
- Making Delegates More Flexible with Generics
- Summary
- Chapter review
- Running the program
- Downcasting
- Upcasting
- Entering the reference code
- Adding refinements
- Adding a virtual function
- Implementing the interface
- Creating a generics interface class
- Adding a button to sort and display results
- Implementing a Generic Interface to Accomplish Sorting
- Summary
- Chapter review
- Modifying the program for different data types
- Modifying the program for an additional type of comparison
- Running the program
- Hardcoding the values
- Completing the GenMethods class
- Introducing constraints
- Comparing values using the CompareTo method
- Writing a swap function
- Creating a button to exchange and then comparing two values
- Creating a Generic Method
- Summary
- Chapter review
- Accumulating the input
- Running the program
- Changing the data types in our generics class
- Initializing a collection of integers to their array and displaying the results
- Adding a button to Default.aspx
- Displaying the values
- Making parameters that are generic
- Working with different data types
- Creating a generics class
- Creating a Simple Generics Class
- Questions
- Piracy
- Errata
- Downloading the color images of this book
- Downloading the example code
- Customer support
- Reader feedback
- Conventions
- Who this book is for
- What you need for this book
- Preface
- Customer Feedback
- Why subscribe?
- www.PacktPub.com
- About the Author
- Credits
- Beginning C# 7 Hands-On – Advanced Language Features
- Copyright
- Title Page
- coverpage
- coverpage
- Title Page
- Copyright
- Beginning C# 7 Hands-On – Advanced Language Features
- Credits
- About the Author
- www.PacktPub.com
- Why subscribe?
- Customer Feedback
- Preface
- What you need for this book
- Who this book is for
- Conventions
- Reader feedback
- Customer support
- Downloading the example code
- Downloading the color images of this book
- Errata
- Piracy
- Questions
- Creating a Simple Generics Class
- Creating a generics class
- Working with different data types
- Making parameters that are generic
- Displaying the values
- Adding a button to Default.aspx
- Initializing a collection of integers to their array and displaying the results
- Changing the data types in our generics class
- Running the program
- Accumulating the input
- Chapter review
- Summary
- Creating a Generic Method
- Creating a button to exchange and then comparing two values
- Writing a swap function
- Comparing values using the CompareTo method
- Introducing constraints
- Completing the GenMethods class
- Hardcoding the values
- Running the program
- Modifying the program for an additional type of comparison
- Modifying the program for different data types
- Chapter review
- Summary
- Implementing a Generic Interface to Accomplish Sorting
- Adding a button to sort and display results
- Creating a generics interface class
- Implementing the interface
- Adding a virtual function
- Adding refinements
- Entering the reference code
- Upcasting
- Downcasting
- Running the program
- Chapter review
- Summary
- Making Delegates More Flexible with Generics
- Adding a summarize button to the HTML
- Constructing a delegate
- Assigning functions to represent the delegate
- Calling the delegate
- Running the program
- Summary
- Creating and Using Generic Dictionaries
- Adding a show button to the HTML
- Starting a process from a web page
- Making a verbatim string
- Iterating over key-value pairs
- Making a directory and creating a file from Command Prompt
- Chapter review
- Summary
- Connection Between Delegates and Lambda Expressions
- Adding a Show Results button to the HTML
- Adding delegates
- Setting up the variables
- Making objects of the delegate type
- Defining lambda expressions
- Operating an array
- Working with actions
- Chapter review
- Summary
- Expression-Bodied Lambdas and Expression-Bodied Members
- Adding a box and a Find Max button to the HTML
- Making the delegate
- Defining an expression-bodied member
- Converting an array of strings into an array of doubles
- Creating an expression-bodied lambda
- Comparing values
- Specifying the parameters
- Running the program
- Chapter review
- Summary
- Anonymous Methods and Objects That Run Their Own Delegates
- Adding a Show Results button to the HTML
- Streamlining writing functions
- Performing an action on all of the values
- Making an anonymous function or method
- Starting a thread
- Running and modifying the program
- Chapter review
- Summary
- C# with LINQ and Built-In Types
- Adding a Show Values button to the HTML
- Adding namespaces
- Working with the IEnumerable generic interface
- Converting an array to a list of integers
- Determining the values in a collection
- Converting the values back to a list
- Extracting values from the list and sorting them
- Running the program
- Chapter review
- Summary
- C# with LINQ and Custom Data Types
- Adding a Show People button to the HTML
- Setting up a database
- Making a custom type using LINQ
- Setting up an array of people
- Querying the array
- Running the program
- Chapter review
- Summary
- Using Query Syntax to Construct Queries
- Adding a show button to the HTML
- Creating a decimal salary array
- Working with range variables
- Selecting a salary range and putting it in descending order
- Displaying the results
- Observing deferred execution
- Making a dictionary
- Working with key-value pairs
- Querying the data in the key-value pairs
- Running the program
- Chapter review
- Summary
- Queries That Perform Aggregation Functions
- Adding a show button to the HTML
- Creating an array
- Averaging the values in a list
- Displaying the results
- Using the Count function
- Working with a list of lists
- Adding students to the classList
- Summarizing the information in the classList
- Running the program
- Chapter review
- Summary
- Using LINQ to Summarize Tuples
- Adding a show tuple summary values button to the HTML
- Introducing tuples
- Adding namespaces
- Making a list with a tuple
- Returning the tuples
- Making a list of doubles
- Summarizing the list
- Displaying the results
- Running the program
- Chapter review
- Summary
- Summarizing Results with Grouping
- Adding a Show Results button to the HTML
- Adding namespaces
- Creating the student class and defining fields
- Making a list of students
- Grouping names
- Displaying the grouped results
- Chapter review
- Summary
- Joining Datasets with Inner Joins
- Adding a Join Classes button to the HTML
- Adding the namespaces
- Creating the person and car classes
- Making person objects
- Making car objects
- Making a list of owners and their cars
- Joining the owners and car lists
- Getting and displaying the results
- Running the program
- Chapter review
- Summary
- Downloading Installing and Running SQL Server 2017
- Downloading SQL Server 2017 express
- Selecting the installation type
- Installing the package
- Working with SQL server inside Visual Studio
- Creating a SQL server database
- Adding and defining a table
- Adding fields to the table
- Updating the structure of the database
- Chapter review
- Summary
- Writing Code to Manually Connect to a Table and Retrieve Records
- Adding a show records button to the HTML
- Adding a namespace
- Making the connection string
- Connecting to SQL Server
- Catching exceptions
- Displaying errors
- Opening the connection
- Working with the SQL Server data reader
- Running the program
- Chapter review
- Summary
- Inserting Records into Tables Using Stored Procedures
- Adding text boxes and a button to the HTML
- Reviewing what you created already in SQL Server
- Creating a new stored procedure
- Updating the database structure
- Adding a namespace
- Building the connection string
- Initializing the connection
- Catching exceptions
- Trying out commands
- Adding the parameters
- Saving the information for later retrieval
- Recognizing the role of indexers
- Running the program
- Chapter review
- Summary
- Using the Nullable Feature to Make Apps More Stable
- Adding a Show People button to the HTML
- Adding a field to the people database
- Modifying the dbo.People table
- Writing the code for this project
- Creating the person class
- Making the properties
- Making the list of people
- Building the connection string
- Entering the SQL-related code
- Adding people to the list from the table
- Displaying the records
- Running the program
- Chapter review
- Summary
- Connecting a Chart Control to SQL Server
- Placing a chart into the HTML page
- Adding a button to the HTML page
- Adding a new table to the People database
- Enabling auto-incrementation
- Adding values to the new table
- Coding the project
- Adding a namespace
- Building the connection string
- Writing a SQL query
- Making the command object
- Opening the connection and making a SQL data reader
- Running the program
- Modifying the program to display the Y values
- Chapter review
- Summary
- Using LINQ to Operate on Tables from SQL Server
- Changing the data in the ExperimentValues table
- Summarizing the fields
- Adding the namespaces
- Building the connection string
- Making the SQL connection
- Making an adapter
- Making a data table
- Populating the table with data
- Displaying the summed values
- Running the program
- Adding comments
- Chapter review
- Summary
- Creating a Page That Saves Text to Disk
- Creating an application to save text
- Creating the user interface for your project
- Starting to code the project
- Catching an exception
- Creating a StreamWriter class
- Creating a StreamReader class
- Running the program
- Chapter review
- Summary
- Creating a Page That Uses the File Upload Control
- Starting our project from scratch
- Adding a namespace
- Saving a file to a specific location
- Saving the file
- Displaying messages to the user
- Determining which files are stored in a directory
- Determining the return type
- Exploring the exceptions for EnumerateFiles
- Catching the exceptions
- Running the program
- Chapter review
- Summary
- Serializing and Deserializing Objects
- Adding two buttons to the HTML
- Beginning to code the project
- Adding namespaces
- Creating a serializable class
- Adding features to the serializable class
- Defining the path for saving a file
- Making a Person object
- Handling unmanaged resources
- Making a binary formatter
- Serializing an object
- Testing the program
- Rebuilding an object from a hard drive
- Displaying the results
- Running the program
- Chapter review
- Summary
- Having a Little Fun with Images with Pixel Manipulations
- Manipulating an image
- Adding a button and an image control to the HTML
- Adding a namespace
- Making a bitmap
- Saving an image as a bitmap picture
- Accessing a pixel's location
- Manipulating the pixels
- Converting the picture to a byte array
- Sending out the image URL
- Running the program
- Chapter review
- Summary
- Saving an Image to SQL Server
- Adding buttons and a list box to HTML
- Creating a database table to store the files
- Storing image files on your hard drive
- Adding namespaces
- Coding the application
- Testing the scanning the folder function
- Building the connection string
- Using of the connection string
- Running the program
- Chapter review
- Summary
- Creating and Using an XML File
- Adding a button to HTML
- Coding the XML
- Adding a namespace
- Loading the XML file into your program
- Iterating over the contents of the XML file
- Displaying the results
- Running the program
- Chapter review
- Summary
- Creating XML Files with C#
- Adding a button to HTML
- Adding namespaces
- Coding the XmlWriter settings
- Writing to the hard drive
- Formatting the results
- Running the program
- Chapter review
- Summary
- Querying XML Documents with LINQ
- Adding a text box and a button to HTML
- Adding namespaces
- Clearing the output
- Building an element tree
- Saving the store XML file
- Testing the program
- Searching for items that meet a specific criteria
- Selecting among the items that meet the search criteria
- Displaying the results
- Running the program
- Chapter review
- Summary 更新時間:2021-07-02 15:30:20