Learning object-oriented programming in C# 5.0 [electronic resource] / B.M. Harwani
- Author:
- Harwani, B. M.
- Additional Titles:
- Learning object-oriented programming in C sharp 5.0
- Published:
- Boston, MA : Cengage Learning PTR, [2015]
- Copyright Date:
- ©2015
- Physical Description:
- 1 online resource (1 volume) : illustrations
Access Online
- Contents:
- Machine generated contents note: C# Introduction -- .NET Framework Structure -- Common Language Runtime (CLR) -- Common Type System -- Common Language Specification -- Assembly Use -- Visual Studio IDE Overview -- Visual Studio Installation -- Running a C# Program -- Using the Visual Studio IDE -- Using the Command-Line Compiler -- Line-by-Line Explanation of Code -- Modification of the Main() Method -- Summary -- Identifiers and Keywords -- Variables -- Constants -- Predefined Data Types -- Predefined Value Types -- Integer Types -- Floating-Point Types -- Decimal Types -- Character Types -- Bool Types -- Nullable Types -- Predefined Reference Types -- Implicitly Typed Variables -- Implicit Conversion -- Explicit Type Conversion -- Reference Types -- Boxing -- Unboxing -- The is Operator -- The as Operator -- Streams -- Methods Defined by stream Class -- The Predefined Streams -- Console I/O -- Sending Output to the Console -- Reading Input from the Console -- Comment Use -- Windows Form Application -- Summary -- Operators -- Precedence and Associativity -- Adding Parentheses -- The typeof Operator -- The sizeof Operator -- Checked and Unchecked Operator's. -- Arithmetic Operators -- Increment and Decrement Operators -- Sign Operators -- Relational Operators -- Equality Operators -- Logical Boolean Operators -- Logical Bitwise Operators -- Shift Operators -- Assignment Operators -- Compound Assignment Operators -- Ternary Operator (Conditional Operator) -- The Math Class -- Summary -- Conditional Statements -- The if-else-if Statement -- The switch Statement -- The Conditional Operator -- Loops -- The while Loop -- The do-while Loop -- The for Loop -- The continue Statement -- The goto Statement -- Enumeration -- Summary -- Using Arrays -- One-Dimensional Arrays -- Multidimensional Arrays -- Using Strings -- Passing Command-Line Arguments to Main() -- Using StringBuilder -- Using ArrayList -- Summary -- Methods -- Return Statement -- Method Parameters -- Method Invocation -- Method Overloading -- Optional and Named Parameters -- C# Parameter Modifiers -- Passing By Value -- Passing By Reference -- Using Output Parameters -- Sending Variable Length Parameters -- Your Own Type: Structures -- Using Properties with Struct -- Defining Arrays in Structures -- Using an Array of Structures -- Nested Structs -- Date and Time Structure -- Using the DateTime Properties and Methods -- Using TimeSpan -- Formatting Dates and Times -- Custom Date and Time Formatting -- Standard Date and Time Formatting -- Summary -- Class -- The new Operator -- Public Members -- Difference Between a Struct and a Class -- Methods Defined in a Class -- Private Members -- Parameter Passing by Value and Reference -- Output Parameters -- Method Overloading -- Encapsulation -- Use of Properties -- The this Keyword -- Constructors -- Default Constructors -- Parameterized Constructors -- Copy Constructors -- Constructor Overloading -- Constructor Chaining -- Garbage Collection -- Static Classes and Members -- Namespace -- Namespace Importing -- Namespace Nesting -- Namespace Alias Creation -- Internal Modifier -- Summary -- Types of Inheritance -- Single Inheritance -- Multilevel Inheritance -- Hierarchical Inheritance -- Hybrid Inheritance -- Method Overriding -- Sealed Class and Methods -- Method Hiding -- Abstract Classes -- Abstract Properties -- Polymorphism -- Summary -- Invoking Interface Members at the Object Level -- Implementing Multiple Interfaces -- Handling Ambiguity When Implementing Multiple Interfaces -- Implementing an Interface Explicitly -- Verifying Interface Implementation -- Using the as Keyword -- Using the is Keyword -- Implementing a Multilevel Interface -- Implementing Interface Properties -- Understanding How a Structure Implements an Interface -- Passing an Interface as a Parameter -- Returning an Interface -- Summary -- Binary Operator Overloading -- Adding a Constant to an Object -- Adding Two Complex Numbers -- Unary Operator Overloading -- true and false Operator Overloading -- Comparison Operators Overloading -- Conversion Operators Overloading -- Creating an Implicit Conversion Operator -- Creating an Explicit Conversion Operator -- Summary -- Delegates Introduction -- Declaring Delegates -- Instantiating Delegates -- Invoking the Referenced Method -- Instance Versus Static Method Targets -- Multicast Delegates -- Covariance and Contravariance -- Generic Delegate Types -- Anonymous Method -- Difference Between Delegates and Interfaces -- Event Handling -- Declaring an Event -- Event Accessors -- Summary -- Collections -- Standard Interfaces -- !Enumerators -- Hashtable -- Sorted List -- BitArray -- Stack -- Queue -- Generics -- Generic Collections -- Generic List<T> -- Queue<T> -- Stack<T> -- SortedSet -- Dictionary -- Li nkedList<T> -- Summary -- Introducing Errors and Exceptions -- The Exception Hierarchy -- Keywords Used in Exception Handling -- Using Multiple try Blocks -- Using Multiple catch Blocks -- Throwing an Exception -- Nesting try Blocks -- Creating Your Own Exception -- Using the checked/unchecked Operator -- Summary -- Introduction to Threads -- Using the Main Thread -- Creating Child Threads -- Life Cycle of a Thread -- Multithreading -- Ensuring Exclusive-Operations Using Monitors -- Using the Lock Statement -- Interrupting a Thread -- Summary -- Introducing Streams -- Handling Files -- Reading a File Randomly -- Reading and Writing Primitive Types in Binary Format -- Using BinaryWriter -- Using BinaryReader -- Performing Character-Based File I/O -- Using StreamWriter -- Implementing TextWriter -- Using StreamReader -- Implementing TextReader -- Using StringReader and StringWriter -- Reading an Entire File -- Holding Data Temporarily Using MemoryStream -- Managing a Directory Using DirectoryInfo -- Summary -- Examining the Major Components of ADO.NET -- Connecting or Creating a Database -- Accessing Data from the Database -- Creating a Connection to the Server -- Opening the Connection -- Creating a Command Object -- Closing the Connection and Releasing the Resources -- Displaying the Table Data Through GridView -- Inserting Rows in a Table -- Using Parameters with the Command Object -- Calling Stored Procedures -- Updating a Table -- Summary -- Implicitly Typed Local Variables -- Object and Collection Initializers -- Lambda Expressions -- Extension Methods -- Anonymous Types -- LINQ Categories -- LINQ to Objects -- LINQ to XML -- LINQ to SQL -- Summary -- Examining the Visual Studio Toolbox -- Building Your First Web Application -- Using the DropDownList Control -- Understanding the AutoPostBack Property -- Using the ArrayList Class to Display Data in DropDownList -- Using the CheckBox Control -- Using the RadioButton Control -- Using the ListBox Control -- Using the LinkButton Control -- Using the HyperLink Control -- Using the ImageButton Control -- Working with WCF -- Creating a Client Application -- Summary -- Using Assemblies -- Private Assemblies -- Shared Assemblies -- Creating and Using a Shared Assembly -- Summary.
- Summary:
- "Learning object-oriented programming in C# 5.0 is a uniquely practical, hands-on guide to the powerful features of C# 5.0, one of the most common, general-purpose object-oriented programming languages in use today. The examples and projects in this book progress from easy to advanced, covering the principles and benefits of object-oriented programming for developing real-world applications. With the expert guidance of programmer, author, and teacher B.M. Harwani, you will explore: object-oriented programming fundamentals; advanced class features such as generics and operator overloading; web services, LINQ, multiple threading, and security features; .NET features, including assemblies, interfaces, delegates, events; web application development, and ADO.NET; and much more. Expand your programming skills today with Learning object-oriented programming in C# 5.0, a refreshingly helpful guide to developing with C#." --
- Subject(s):
- ISBN:
- 9781285854564 (electronic bk.)
128585456X (electronic bk.)
9781285854571
1285854578 - Note:
- Includes index.
View MARC record | catkey: 13849422