4 Manage your unmanaged resources!
This chapter covers
- Discovering the underlying type of an object at compile time and run time
- Writing code that uses
IDisposable
andusing
statements to dispose of unmanaged resources - Using method and constructor overloading
- Using attributes
- Accepting a JSON or XML input in an endpoint and parsing it into a custom object
In chapter 3, the CEO of Flying Dutchman Airlines, Aljen van der Meulen, assigned us a project to revamp Flying Dutchman Airlines’ backend service so that the company can integrate with a third-party system (a flight aggregator called FlyTomorow). We were given an OpenAPI specification and took a look at the database schema and the configuration, model, and view classes. Figure 4.1 shows ...
Get Code like a Pro in C# now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.