چه کسانی این کتاب را می‌خوانند

دانشجوعلاقه‌مند یادگیری
کتابخوان حرفه‌ایلذت مطالعه
نویسندهالهام‌گیری

C# 7.0 All-in-One For Dummies (For Dummies (Computer/Tech))

John Paul Mueller, Bill Sempf, Chuck Sphar

قیمت نهایی

۴۴٬۰۰۰ تومان۴۹٬۰۰۰ تومان۱۰٪ تخفیف
  • تخفیف زمان‌دار−۵٬۰۰۰ تومان

۵٬۰۰۰ تومان صرفه‌جویی نسبت به قیمت اصلی

نسخه اصلی و اورجینال

بلافاصله پس از خرید، فایل کتاب روی دستگاه شما آمادهٔ دانلود است.

تحویل فوری
پرداخت امن
ضمانت فایل
پشتیبانی

مشخصات کتاب

ناشر
For Dummies
سال انتشار
۲۰۱۷
فرمت
PDF
زبان
انگلیسی
حجم فایل
۸٫۹ مگابایت

دربارهٔ کتاب

**Sharpen your knowledge of C#**C# know-how is a must if you want to be a professional Microsoft developer. It's also good to know a little C# if you're building tools for the web, mobile apps, or other development tasks. __C# 7.0 All-in-One For Dummies__ offers a deep dive into C# for coders still learning the nuances of the valuable programming language. Pop it open to get an intro into coding with C#, how to design secure apps and databases, and even pointers on building web and mobile apps with C#. C# remains one of the most in-demand programming language skills. The language regularly ranks in the top five among "most in-demand" languages, typically along with Java/JavaScript, C++, and Python. A December 2016 ZDNet article noted 'If your employer is a Microsoft developer, you better know C#." Lucky for you, this approachable, all-in-one guide is here to help you do just that—without ever breaking a sweat! Includes coverage of the latest changes to C# * Shows you exactly what the language can (and can't) do * Presents familiar tasks that you can accomplish with C# * Provides insight into developing applications that provide protection against hackers If you have a basic understanding of coding and need to learn C#—or need a reference on the language in order to launch or further your career—look no further. Title Page Copyright Page Table of Contents Introduction About This Book Foolish Assumptions Icons Used in This Book Beyond the Book Where to Go from Here Book 1 The Basics of C# Programming Chapter 1 Creating Your First C# Console Application Getting a Handle on Computer Languages, C#, and .NET What’s a program? What’s C#? What’s .NET? What is Visual Studio 2017? What about Visual C#? Creating Your First Console Application Creating the source program Taking it out for a test drive Making Your Console App Do Something Reviewing Your Console Application The program framework Comments The meat of the program Introducing the Toolbox Trick Saving code in the Toolbox Reusing code from the Toolbox Chapter 2 Living with Variability — Declaring Value-Type Variables Declaring a Variable What’s an int? Rules for declaring variables Variations on a theme: Different types of int Representing Fractions Handling Floating-Point Variables Declaring a floating-point variable Examining some limitations of floating-point variables Using the Decimal Type: Is It an Integer or a Float? Declaring a decimal Comparing decimals, integers, and floating-point types Examining the bool Type: Is It Logical? Checking Out Character Types The char variable type Special chars The string type What’s a Value Type? Comparing string and char Calculating Leap Years: DateTime Declaring Numeric Constants Changing Types: The Cast Letting the C# Compiler Infer Data Types Chapter 3 Pulling Strings The Union Is Indivisible, and So Are Strings Performing Common Operations on a String Comparing Strings Equality for all strings: The Compare() method Would you like your compares with or without case? What If I Want to Switch Case? Distinguishing between all-uppercase and all-lowercase strings Converting a string to upper- or lowercase Looping through a String Searching Strings Can I find it? Is my string empty? Getting Input from the Command Line Trimming excess white space Parsing numeric input Handling a series of numbers Joining an array of strings into one string Controlling Output Manually Using the Trim() and Pad() methods Using the Concatenate() method Let’s Split() that concatenate program Formatting Your Strings Precisely StringBuilder: Manipulating Strings More Efficiently Chapter 4 Smooth Operators Performing Arithmetic Simple operators Operating orders The assignment operator The increment operator Performing Logical Comparisons — Is That Logical? Comparing floating-point numbers: Is your float bigger than mine? Compounding the confusion with compound logical operations Matching Expression Types at TrackDownAMate.com Calculating the type of an operation Assigning types Changing how an operator works: Operator overloading Chapter 5 Getting into the Program Flow Branching Out with if and switch Introducing the if statement Examining the else statement Avoiding even the else Nesting if statements Running the switchboard Here We Go Loop-the-Loop Looping for a while Doing the do . . . while loop Breaking up is easy to do Looping until you get it right Focusing on scope rules Looping a Specified Number of Times with for An example Why do you need another loop? Nesting Loops Don’t goto Pieces Chapter 6 Lining Up Your Ducks with Collections The C# Array The argument for the array The fixed-value array The variable-length array The Length property Initializing an array Processing Arrays by Using foreach Sorting Arrays of Data Using var for Arrays Loosening Up with C# Collections Understanding Collection Syntax Figuring out Going generic Using Lists Instantiating an empty list Creating a list of type int Creating a list to hold objects Converting between lists and arrays Counting list elements Searching lists Performing other list tasks Using Dictionaries Creating a dictionary Searching a dictionary Iterating a dictionary Array and Collection Initializers Initializing arrays Initializing collections Using Sets Performing special set tasks Creating a set Adding items to a set Performing a union Performing an intersection Performing a difference On Not Using Old-Fashioned Collections Chapter 7 Stepping through Collections Iterating through a Directory of Files Using the LoopThroughFiles program Getting started Obtaining the initial input Creating a list of files Formating the output lines Displaying the hexadecimal output Iterating foreach Collections: Iterators Accessing a collection: The general problem Letting C# access data foreach container Accessing Collections the Array Way: Indexers Indexer format An indexer program example Looping Around the Iterator Block Creating the required iterator block framework Iterating days of the month: A first example What a collection is, really Iterator syntax gives up so easily Iterator blocks of all shapes and sizes Chapter 8 Buying Generic Writing a New Prescription: Generics Generics are type-safe Generics are efficient Classy Generics: Writing Your Own Shipping packages at OOPs Queuing at OOPs: PriorityQueue Unwrapping the package Touring Main() Writing generic code the easy way Saving PriorityQueue for last Using a (nongeneric) Simple Factory class Tending to unfinished business Revising Generics Variance Contravariance Covariance Chapter 9 Some Exceptional Exceptions Using an Exceptional Error-Reporting Mechanism About try blocks About catch blocks About finally blocks What happens when an exception is thrown Throwing Exceptions Yourself Knowing What Exceptions Are For Can I Get an Exceptional Example? Knowing what makes the example exceptional Tracing the stack Assigning Multiple catch Blocks Planning Your Exception-Handling Strategy Some questions to guide your planning Guidelines for code that handles errors well How to analyze a method for possible exceptions How to find out which methods throw which exceptions Grabbing Your Last Chance to Catch an Exception Throwing Expressions Chapter 10 Creating Lists of Items with Enumerations Seeing Enumerations in the Real World Working with Enumerations Using the enum keyword Creating enumerations with initializers Specifying an enumeration data type Creating Enumerated Flags Defining Enumerated Switches Book 2 Object-Oriented C# Programming Chapter 1 Object-Oriented Programming — What’s It All About? Object-Oriented Concept #1: Abstraction Preparing procedural trips Preparing object-oriented trips Object-Oriented Concept #2: Classification Why Classify? Object-Oriented Concept #3: Usable Interfaces Object-Oriented Concept #4: Access Control How C# Supports Object-Oriented Concepts Chapter 2 Showing Some Class Defining a Class and an Object Defining a class What’s the object? Accessing the Members of an Object An Object-Based Program Example Discriminating between Objects Can You Give Me References? Classes That Contain Classes Are the Happiest Classes in the World Generating Static in Class Members Defining const and readonly Data Members Chapter 3 We Have Our Methods Defining and Using a Method A Method Example for Your Files Having Arguments with Methods Passing an argument to a method Passing multiple arguments to methods Matching argument definitions with usage Overloading a method doesn’t mean giving it too much to do Implementing default arguments Returning Values after Christmas Returning a value via return postage Defining a method with no value Returning Multiple Values Using Tuples Using a single-entry tuple Relying on the Create() method Using a multi-entry tuple Creating tuples with more than two items Chapter 4 Let Me Say This about this Passing an Object to a Method Defining Methods Defining a static method Defining an instance method Expanding a method’s full name Accessing the Current Object What is the this keyword? When is this explicit? What happens when you don’t have this? Using Local Functions Chapter 5 Holding a Class Responsible Restricting Access to Class Members A public example of public BankAccount Jumping ahead — other levels of security Why You Should Worry about Access Control Accessor methods Access control to the rescue — an example So what? Defining Class Properties Static properties Properties with side effects Letting the compiler write properties for you Accessors with access levels Getting Your Objects Off to a Good Start — Constructors The C#-Provided Constructor Replacing the Default Constructor Constructing something Initializing an object directly with an initializer Seeing that construction stuff with initializers Initializing an object without a constructor Using Expression-Bodied Members Creating expression-bodied methods Defining expression-bodied properties Defining expression-bodied constructors and destructors Defining expression-bodied property accessors Defining expression-bodied event accessors Chapter 6 Inheritance: Is That All I Get? Class Inheritance Why You Need Inheritance Inheriting from a BankAccount Class (a More Complex Example) IS_A versus HAS_A — I’m So Confused_A The IS_A relationship Gaining access to BankAccount by using containment The HAS_A relationship When to IS_A and When to HAS_A Other Features That Support Inheritance Substitutable classes Invalid casts at runtime Avoiding invalid conversions with the is operator Avoiding invalid conversions with the as operator The object Class Inheritance and the Constructor Invoking the default base class constructor Passing arguments to the base class constructor Getting specific with base The Updated BankAccount Class Chapter 7 Poly-what-ism? Overloading an Inherited Method It’s a simple case of method overloading Different class, different method Peek-a-boo — hiding a base class method Calling back to base Polymorphism Using the declared type every time (Is that so wrong?) Using is to access a hidden method polymorphically Declaring a method virtual and overriding it Getting the most benefit from polymorphism The Class Business Card: ToString() C# During Its Abstract Period Class factoring The abstract class: Left with nothing but a concept How do you use an abstract class? Creating an abstract object — not! Sealing a Class Chapter 8 Interfacing with the Interface Introducing CAN_BE_USED_AS Knowing What an Interface Is How to implement an interface How to name your interface Why C# includes interfaces Mixing inheritance and interface implementation And he-e-e-re’s the payoff Using an Interface As a method return type As the base type of an array or collection As a more general type of object reference Using the C# Predefined Interface Types Looking at a Program That CAN_BE_USED_AS an Example Creating your own interface at home in your spare time Implementing the incomparable IComparable interface Putting it all together Getting back to the Main() event Unifying Class Hierarchies Hiding Behind an Interface Inheriting an Interface Using Interfaces to Manage Change in Object-Oriented Programs Making flexible dependencies through interfaces Abstract or concrete: When to use an abstract class and when to use an interface Doing HAS_A with interfaces Chapter 9 Delegating Those Important Events E.T., Phone Home — The Callback Problem Defining a Delegate Pass Me the Code, Please — Examples Delegating the task First, a simple example A More Real-World Example Getting an overview of the bigger example Putting the app together Looking at the code Tracking the delegate life cycle Shh! Keep It Quiet — Anonymous Methods Stuff Happens — C# Events The Observer design pattern What’s an event? Publish/Subscribe How a publisher advertises its events How subscribers subscribe to an event How to publish an event How to pass extra information to an event handler A recommended way to raise your events How observers “handle” an event Chapter 10 Can I Use Your Namespace in the Library? Dividing a Single Program into Multiple Source Files Dividing a Single Program into Multiple Assemblies Executable or library? Assemblies Executables Class libraries Putting Your Classes into Class Libraries Creating the projects for a class library Creating a stand-alone class library Adding a second project to an existing solution Creating classes for the library Using a test application to test a library Going Beyond Public and Private: More Access Keywords Internal: For CIA eyes only Protected: Sharing with subclasses Protected internal: Being a more generous protector Putting Classes into Namespaces Declaring a namespace Relating namespaces to the access keyword story Using fully qualified names Chapter 11 Improving Productivity with Named and Optional Parameters Exploring Optional Parameters Reference types Output parameters Looking at Named Parameters Dealing with Overload Resolution Using Alternative Methods to Return Values Working with out variables Returning values by reference Chapter 12 Interacting with Structures Comparing Structures to Classes Considering struct limits Understanding the value type difference Determining when to use struct versus class Creating Structures Defining a basic struct Including common struct elements Using Structures as Records Managing a single record Adding structures to arrays Overriding methods Book 3 Designing for C# Chapter 1 Writing Secure Code Designing Secure Software Determining what to protect Documenting the components of the program Decomposing components into functions Identifying potential threats in functions Rating the risk Building Secure Windows Applications Authentication using Windows login Encrypting information Deployment security Building Secure Web Forms Applications SQL Injection attacks Script exploits Best practices for securing Web Forms applications Using System.Security Chapter 2 Accessing Data Getting to Know System.Data How the Data Classes Fit into the Framework Getting to Your Data Using the System.Data Namespace Setting up a sample database schema Connecting to a data source Working with the visual tools Writing data code Using the Entity Framework Chapter 3 Fishing the File Stream Going Where the Fish Are: The File Stream Streams Readers and writers StreamWriting for Old Walter Using the stream: An example Revving up a new outboard StreamWriter Finally, you’re writing! Using some better fishing gear: The using statement Pulling Them Out of the Stream: Using StreamReader More Readers and Writers Exploring More Streams than Lewis and Clark Chapter 4 Accessing the Internet Getting to Know System.Net How Net Classes Fit into the Framework Using the System.Net Namespace Checking the network status Downloading a file from the Internet Emailing a status report Logging network activity Chapter 5 Creating Images Getting to Know System.Drawing Graphics Pens Brushes Text How the Drawing Classes Fit into the Framework Using the System.Drawing Namespace Getting started Setting up the project Handling the score Creating an event connection Drawing the board Starting a new game Chapter 6 Programming Dynamically! Shifting C# Toward Dynamic Typing Employing Dynamic Programming Techniques Putting Dynamic to Use Classic examples Making static operations dynamic Understanding what’s happening under the covers Running with the Dynamic Language Runtime Dynamic Ruby Dynamic C# Book 4 A Tour of Visual Studio Chapter 1 Getting Started with Visual Studio Versioning the Versions Community edition Professional edition Enterprise edition MSDN Installing Visual Studio Breaking Down the Projects Exploring the New Project dialog box Understanding solutions and projects Chapter 2 Using the Interface Designing in the Designer Windows Presentation Foundation (WPF) Windows Forms Web Forms Class Designer Paneling the Studio Solution Explorer Properties The Toolbox Server Explorer Class View Coding in the Code Editor Exercising the Code Editor Exploring the auxiliary windows Using the Tools of the Trade The Tools menu Building Using the Debugger as an Aid to Learning Stepping through code Going to a particular code location Watching application data Viewing application internals Chapter 3 Customizing Visual Studio Setting Options Environment Language Neat stuff Using Snippets Using snippets Using surround snippets Making snippets Deploying snippets Sharing snippets Hacking the Project Types Hacking project templates Hacking item templates Book 5 Windows Development with WPF Chapter 1 Introducing WPF Understanding What WPF Can Do Introducing XAML Diving In! Creating Your First WPF Application Declaring an application-scoped resource Making the application do something Whatever XAML Can Do, C# Can Do Better! Chapter 2 Understanding the Basics of WPF Using WPF to Lay Out Your Application Arranging Elements with Layout Panels The Stack Panel The Wrap Panel The Dock Panel Canvas The Uniform Grid The Grid Putting it all together with a simple data entry form Panels of honorable mention Exploring Common XAML Controls Display-only controls Basic input controls List-based controls Chapter 3 Data Binding in WPF Getting to Know Dependency Properties Exploring the Binding Modes Investigating the Binding Object Defining a binding with XAML Defining a binding with C# Editing, Validating, Converting, and Visualizing Your Data Validating data Converting your data Finding Out More about WPF Data Binding Chapter 4 Practical WPF Commanding Attention Traditional event handling ICommand Routed commands Using Built-In Commands Using Custom Commands Defining the interface Creating the window binding Ensuring that the command can execute Performing the task Using Routed Commands Defining the Command class Making the namespace accessible Adding the command bindings Developing a user interface Developing the custom command code behind Book 6 Web Development with ASP.NET Chapter 1 Looking at How ASP.NET Works with C# Breaking Down Web Applications Questioning the Client Scripting the client Getting information back from the client Understanding the weaknesses of the browser Dealing with Web Servers Getting a PostBack (Hint: It’s not a returned package) It’s a matter of state Chapter 2 Building Web Applications Working in Visual Studio Two project approaches Creating a standard project Creating a website Developing with Style Coding behind Building in n-tier Modeling the View Controller Chapter 3 Controlling Your Development Experience Showing Stuff to the User Labels versus plain old text Images Panels and multiviews Tables Getting Some Input from the User Using text input controls Using single-item selection controls Using multiple-item selection controls Using other kinds of input controls Submitting input with submit buttons Data Binding Setting up your markup for binding Data binding using the code-behind Using commonly bound controls Styling Your Controls Setting control properties Binding styles with CSS Making Sure the Site Is Accessible Constructing User Controls Making a new phone number User Control Using your new control Chapter 4 Leveraging the .NET Framework Surfing Web Streams Intercepting the request Altering content sent to clients Securing ASP.NET Changing trusts Fixing problems Managing Files Baking Cookies Coding for client-side storage How ASP.NET manages cookies for you Tracing with TraceContext Navigating with Site Maps Navigating a site with SiteMap Index EULA C ̀know-how is a must if you want to be a professional Microsoft developer. It's also good to know a little C ̀if you're building tools for the web, mobile apps or other development tasks. This book offers a deep dive into C ̀for coders still learning the nuances of the valuable programming language. Sharpen your knowledge of C# C# know-how is a must if you want to be a professional Microsoft developer. It's also good to know a little C# if you're building tools for the web, mobile apps, or other development tasks. C# 7.0 All-in-One For Dummies offers a deep dive into C# for coders still learning the nuances of the valuable programming language. Pop it open to get an intro into coding with C#, how to design secure apps and databases, and even pointers on building web and mobile apps with C#. C# remains one of the most in-demand programming language skills. The language regularly ranks in the top five among "most in-demand" languages, typically along with Java/JavaScript, C++, and Python. A December 2016 ZDNet article noted 'If your employer is a Microsoft developer, you better know C#." Lucky for you, this approachable, all-in-one guide is here to help you do just that without ever breaking a sweat! Includes coverage of the latest changes to C# Shows you exactly what the language can (and can't) do Presents familiar tasks that you can accomplish with C# Provides insight into developing applications that provide protection against hackers If you have a basic understanding of coding and need to learn C# or need a reference on the language in order to launch or further your career look no further

Sharpen your knowledge of C#

C# know-how is a must if you want to be a professional Microsoft developer. It's also good to know a little C# if you're building tools for the web, mobile apps, or other development tasks. C# 7.0 All-in-One For Dummies offers a deep dive into C# for coders still learning the nuances of the valuable programming language. Pop it open to get an intro into coding with C#, how to design secure apps and databases, and even pointers on building web and mobile apps with C#.

C# remains one of the most in-demand programming language skills. The language regularly ranks in the top five among "most in-demand" languages, typically along with Java/JavaScript, C++, and Python. A December 2016 ZDNet article noted 'If your employer is a Microsoft developer, you better know C#." Lucky for you, this approachable, all-in-one guide is here to help you do just that—without ever breaking a sweat!

Includes coverage of the latest changes to C#

  • Shows you exactly what the language can (and can't) do
  • Presents familiar tasks that you can accomplish with C#
  • Provides insight into developing applications that provide protection against hackers

If you have a basic understanding of coding and need to learn C#—or need a reference on the language in order to launch or further your career—look no further.

« Sharpen your knowledge of C# C# know-how is a must if you want to be a professional Microsoft developer. It's also good to know a little C# if you're building tools for the web, mobile apps, or other development tasks. C# 7.0 All-in-One For Dummies offers a deep dive into C# for coders still learning the nuances of the valuable programming language. Pop it open to get an intro into coding with C#, how to design secure apps and databases, and even pointers on building web and mobile apps with C#. C# remains one of the most in-demand programming language skills. The language regularly ranks in the top five among "most in-demand" languages, typically along with Java/JavaScript, C++, and Python. A December 2016 ZDNet article noted 'If your employer is a Microsoft developer, you better know C#." Lucky for you, this approachable, all-in-one guide is here to help you do just that—without ever breaking a sweat! Includes coverage of the latest changes to C# Shows you exactly what the language can (and can't) do Presents familiar tasks that you can accomplish with C# Provides insight into developing applications that provide protection against hackers If you have a basic understanding of coding and need to learn C#—or need a reference on the language in order to launch or further your career—look no further. »-- Résumé de l'éditeur

قیمت نهایی

۴۴٬۰۰۰ تومان