Author: admin

  • C# 11 List Collections

    In the previous chapters, we looked at C# Arrays. While useful for many tasks, arrays are starting to show their age in terms of functionality and flexibility. The C# Collection Classes provide more advanced mechanisms for gathering groups of objects. What are the C# Collection Classes The C# Collection classes are designed specifically for grouping…

  • Accessing and Sorting C# 11 Array Elements

    The previous chapter explained how to create 2-dimensional, 3-dimensional, and jagged arrays in C#. In this chapter, we will explore how to access, remove, and sort the elements of an array. Getting the number of dimensions of an array The number of dimensions of an array can be obtained via the Rank property of the array. For…

  • Creating 2D, 3D, and Jagged Arrays in C# 11

    Arrays are certainly not unique to C#. In fact, just about every other programming and scripting language preceding the introduction of C# provided support for arrays. An array allows a collection of values of the same type to be stored and accessed via a single variable. Each item is accessed in the array variable through…

  • C# 11 Structures

    Having covered C# classes in the preceding chapters, this lesson will introduce the use of structures in C#. Although at first glance structures and classes look similar, there are some important differences that need to be understood when deciding which to use. This chapter will outline how to declare and use structures, explore the differences…

  • C# 11 Interfaces

    In this chapter, we will explain what C# interfaces are, how to write your own, and how to make other classes comply with one. Understanding C# interfaces By default, there are no specific rules to which a C# class must conform as long as the class is syntactically correct. In some situations, however, a class…

  • C# 11 Abstract Classes

    In the preceding chapters, we have looked in detail at object-oriented programming in C# and also at the concept of class inheritance. In this lesson, we will look at the next area of object-oriented programming, the abstract class. What is a C# abstract class? In the examples we have looked at so far in this…

  • C# 11 Inheritance

    In the previous chapters, we looked at the basics of object-oriented programming in C#. Now that we have covered these basics, the next topic to be covered is that of class inheritance. What is inheritance? The concept of inheritance brings something of a real-world view to programming. It allows a class to be defined which…

  • C# 11 Tuple Type

    Before proceeding, now is an excellent time to introduce the Swift tuple. A tuple is, quite simply, a way to temporarily group multiple values into a single entity. The items stored in a tuple can be of any type, and there is no requirement that those values all be of the same type. A tuple…

  • C# 11 Anonymous Methods and Lambdas

    In this chapter, you will learn how to use anonymous methods and lambdas is C# to write flexible, concise, and reusable code. Topics covered in this chapter include creating and using anonymous methods, expressions, and statement lambdas. Anonymous methods Anonymous methods are also declared using the delegate keyword. Unlike traditional delegates, however, anonymous methods do not reference…

  • Getting Location Information using the iOS 17 Core Location Framework

    iOS devices can employ several techniques for obtaining information about the current geographical location of the device. These mechanisms include GPS, cell tower triangulation, and finally (and least accurately), using the IP address of available Wi-Fi connections. The mechanism used by iOS to detect location information is largely transparent to the app developer. The system…