Blog

C# Keywords Tutorial Part 73: sealed

The "sealed" keyword in C# is used to limit a class's or a member's ability to inherit from another class. A class or member thereof that has the designation "sealed" cannot be inherited by another class or overridden by a derived class. We will examine the C# term "sealed" and instances of its usage...

C# Keywords Tutorial Part 71: return

C# is a powerful programming language that provides developers with a wide range of tools to create robust and efficient applications. One of the fundamental constructs in C# is the "return" keyword. In this blog post, we will discuss the various uses of the "return" keyword and provide code examples to illustrate each scenario. The...

C# Keywords Tutorial Part 70: remove

The majority of you probably know what delegates are and how they relate to events. Do you know that event accessors may be used to encapsulate events in addition to these ideas? If not, this article will assist you in comprehending event accessors' uses and benefits. Contextual keywords add and remove stand in for event...

C# Keywords Tutorial Part 69: ref

Powerful programming language C# offers a number of features to make the development process simpler. The "ref" keyword is one of these characteristics since it enables you to pass a variable by reference rather than by value. We will examine the "ref" keyword in C# and several instances of its usage in this blog...

C# Keywords Tutorial Part 68: readonly

The readonly keyword in C# is used to declare a variable that, once initialized, cannot have its value modified. This keyword is applicable to parameters, local variables, and fields. In this article, we'll look at the C# readonly keyword and how immutable objects may be made with it. Usage of readonly keyword The readonly keyword can...

C# Keywords Tutorial Part 67: public

The "public" keyword in C# is used to specify the accessibility of a class member or type. When a member or type is marked as public, it can be accessed from any code that has access to the class or type. This keyword is an important part of encapsulation in object-oriented programming, as it...

C# Keywords Tutorial Part 66: protected

Encapsulation, inheritance, and polymorphism are all features supported by the object-oriented programming language C#. "Protected" is one of the terms that is very important in inheritance. A derived class may access the members of its base class by using this keyword. In this blog article, we'll talk about the C# term "protected" and look...

C# Keywords Tutorial Part 65: private

Encapsulation, inheritance, and polymorphism are all features supported by the object-oriented programming language C#. Controlling access to class members, such as fields, properties, and methods, is one of encapsulation's primary advantages. In C#, access modifiers may be used to manage a class's members' visibility. One of the access modifiers in C# that limits a...

C# Keywords Tutorial Part 64: partial

C# is a popular programming language widely used for building applications, web services, and games. One of the unique features of C# is the "partial" keyword, which allows developers to split a class, struct, or interface declaration into multiple files. In this blog post, we'll explore the "partial" keyword and its usage with code...