Pro .NET 5 Custom Libraries: Implementing Custom .NET Data Types

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Leverage .NET 5, Microsoft’s bold new cross-platform implementation, for developing your very own cross-platform custom data types and libraries for Windows, Linux, and macOS. The book starts with the purpose and benefits of a custom cross-platform model of .NET data types and its architectural implementation in detail. Next, you will learn fundamental operations such as the equality and inequality operations in .NET 5, demonstrated with sample projects in C#. Implementation of comparison and sorting operations is discussed next followed by a discussion on cloning operations. Here you will learn details of overriding the clone virtual method and its implementation. Moving forward, you will understand custom formatting with specialized .NET data types in various functions and how to implement it. You will then go through .NET reference types along with developing a custom library for working with the software project. Finally, you will explore .NET 5 assemblies and modules followed by their APIs. After reading Pro .NET 5 Custom Libraries, you will be able to work on fundamental operations for productivity and quality in your designs of .NET 5 custom data types. What You Will Learn - Work with .NET 5 assemblies - Work with .NET 5 modules - Understand the logical and physical organization of .NET 5 modules - Implement custom .NET reference types from scratch - Implement a custom .NET value type from scratch

Author(s): Roger Villela
Publisher: Apress
Year: 2020

Language: English

Table of Contents
About the Author
About the Technical Reviewer
Acknowledgments
Introduction
Chapter 1: .NET Platform
Acronyms
ECMA-335 and .NET
ECMA-335
.NET Platform
About the Common Type System
Fundamental Types and Hardware Platform
The Organization of Fundamental Data Types
CTS for Fundamental Types
Virtual Execution System
.NET Module
.NET Assemblies
Static Assemblies
Dynamic Assemblies
Working with Assemblies and Modules
Organization of Elements in a Module (Physical File)
Using the ILDASM Tool
Implementing the entrypoint Method
Chapter 2: Custom .NET Data Type
Management of Data Types
Working with System.Object, the Root of .NET Reference Types
System.ValueType, the Root of .NET Value Types
Methods
Working with System.Object.Equals()
Operators == and != for Equality and Inequality Behaviors
Working with System.Object.GetHashCode()
Chapter 3: .NET Methods: Implementation Details
Methods
About the Use of Operators
Operator Overloading: Programming Language Semantics and Syntaxes
Working with System.Object.GetType()
Constructors in a .NET Data Type
Chapter 4: .NET Special Members: Constructors in a Managed Environment
Acronyms
Special Members
About Constructors in a Managed Execution Environment
Default Constructor
Reflection APIs
Rules, Requirements, and MSIL
Metadata: MSIL Attributes in a Special Member
MSIL “Hide by Signature” Keyword (hidebysig)
MSIL “Special Name” Keyword (specialname)
MSIL “Runtime Special Name” Keyword (rtspecialname)
Summary
Chapter 5: Finalizer Method: The .NET Special Member
Special Members
Special Member Destructor
Special Member Finalizer Method (Destructor)
System.Object.Finalize() Method
Chapter 6: .NET Manifest and Versioning for Managed Libraries
Assemblies, Modules, Manifest, Versioning
Assembly
Manifest
Module
Versioning
Chapter 7: .NET Assemblies in a Managed Execution Environment
Managed Libraries
Data Types, Components, and Functionalities
Native Code and Managed Code
Index