C# Corner

  About Class
A Class is set of or collection of objects which are dealing within particular Class. In Oops programming language Class word is used id used for number objects which have different-2 behaviors. Class are templates that are used to create objects and to define object data types and methods. Core properties include the data types and methods that may be used by the object. All class objects should have the basic class properties. Class are categories and objects are items within each category. A Class is used in object oriented programming to describe one or more objects. It serves as a template for creating or instantiating, specific objects within a program. While each object is created from a single class one class can be used to instantiate multiple objects. Several programming languages support Class including Java, C++, Objective C, and PHP 5 and later. While the syntax of a class definition varies between programming languages classes serve the same purpose in each language. All classes may contain variable definitions and methods, or subroutines that can be run by the corresponding object.
Related resources for Class
  • Components In React6/17/2019 10:04:49 AM. This article talks about components available in React.js.
  • How to get a file size in C#6/16/2019 2:57:16 PM. C# Get File Size. Learn how to get a file size in bytes using C# using the FileInfo.Length property.
  • C# StreamWriter Example6/15/2019 8:30:50 PM. StreamWriter class in C# writes characters to a stream in a specified encoding. StreamWriter.Write method is responsible for writing text to a stream.
  • Working with C# StreamReader6/15/2019 8:29:08 PM. StreamReader class in C# reads characters to a stream in a specified encoding. C# StreamReader code example.
  • How to Get a File Extension in C#6/11/2019 10:48:25 AM. C# get file extension. FileInfo.Extension property returns the file extension in C#.
  • Create a Directory in C#6/11/2019 9:02:17 AM. How to create a directory or folder using C# and .NET.
  • Working with the SqlConnection and SqlCommand Classes in ADO.NET6/10/2019 7:08:22 PM. Here, you will learn C# SqlConnection and C# SqlCommand in ADO.NET with simple examples.
  • Basics Of Generic Classes In C#6/10/2019 8:08:16 AM. This article explains how to use a Generic class and why we need to use it.
  • Using Generics In C#6/8/2019 8:39:31 AM. C# Generics are used to create generic collections. A C# Generic collection has certain key features such as compare, add, remove, find, and index items. In this C# Generics tutorial with code example
  • String In C#6/8/2019 1:34:40 AM. C# String class represents a string data type. String type is probably the most used data types in .NET. In this tutorial, learn how to work with Strings in C#.
  • Process Class in C#6/7/2019 11:32:10 PM. C# Process class provides Start method for launching an exe from code.
  • FileInfo In C#6/7/2019 11:29:44 AM. C# FileInfo. This article will explain how to use a FileInfo class in C# to work with files and folders.
  • C# Queue6/7/2019 10:05:09 AM. C# Queue represents first-in, first-out (FIFO) collection of objects. In this article, you'll learn how to build an application uses Queue in C# to build a FIFO collection.
  • StringBuilder Class In C#6/6/2019 6:38:21 AM. In this article, I will explain StringBuilder Class in C# and how to use a C# string builder to concatenate strings in C#.
  • StringBuilder and String Concatenation6/5/2019 9:49:01 PM. C# String Builder represented by the StringBuilder class in c# is used to concatenate strings in C# and provides string modifications methods including StringBuilder.Append(), StringBuilder.Remove(),
  • How To Find An Item In C# List6/3/2019 4:30:49 PM. C# List Find. Check if an item is in the C# list or not. The Contains method checks if the specified item already exists in the C# List.
  • Sealed Class in C#6/3/2019 4:07:01 PM. C# sealed classes. The sealed keyword in C# language is used to create a sealed class. Sealed classes restricts classes to extend or inherit a class. The code examples of sealed classes in this articl
  • C# String To Byte Array6/3/2019 9:26:21 AM. The Encoding.GetBytes() method converts a string into a byte array in C#. This article includes a code example of how to convert a C# string into a byte array.
  • Partial Classes In C# with Real Example6/2/2019 10:06:55 PM. C# Partial Class. Partial classes were introduced in C# 2. A C# Partial class can reside in multiple cs files with the same name. C# partial classes code examples.
  • Working With File Class in C#6/2/2019 8:36:51 PM. C# File Class. In this article, I'll explain how to use File class in C# to create, move, and work with files in .NET.
  • Understanding Structures in C#6/2/2019 5:40:57 PM. C# Struct, A structure in C# is simply a composite data type consisting of a number elements of other types.
  • Working with Arrays In C#6/2/2019 5:25:54 PM. C# Array. Array in C# represents a collection of objects. C# Arrays can be 1-D, 2-D, Multi-dimensional or Jagged arrays. Here is the compete tutorial on C# Arrays with code examples.
  • C# List Tutorial6/2/2019 5:22:56 PM. C# List. This tutorial explains C# List class and its properties and methods. Code examples include how to work with the List<T> in C# to work with a collection of objects.
  • Threads In C#6/2/2019 7:43:12 AM. Threading in C# - Threads in .NET are the basic unit of execution within a process. Learn how to use threads in .NET and C# and create your first threading app.
  • SQLTransaction In C#5/29/2019 8:16:01 AM. Learn how to use the SqlTransaction in C# and SQL.
  • Basics Of C#5/28/2019 10:04:16 AM. This article explains C# basics with C# code examples including C# data types, class, objects, properties, and methods. You'll also learn basic OOP concepts such as overloading, polymorphism, abst
  • ArrayList in C#5/28/2019 9:57:02 AM. C# ArrayList is a collection class. Here learn how to use an ArrayList in C#.
  • Multiple Inheritance in C#5/24/2019 7:01:07 AM. Learn how to implement multiple inheritance in C#. Inheritance is one of the key characteristics of an object oriented programming language.
  • Regular Expressions In .NET5/24/2019 4:26:44 AM. Regular Expressions in .NET are implemented using the C# Regex class. Learn here how Regex in .NET works.
  • UML Interview Questions5/24/2019 3:31:39 AM. In this section will be cover Use case digrams,Class digrams,Composite digrams,Sequence digrams,Object digrams
  • C# Exception Handling 5/24/2019 12:03:18 AM. C# Exception Handling - Exception is a class in C#. Learn how to implement exception handling in C#.
  • Design Pattern Interview Questions5/22/2019 9:19:27 PM. This article covers Design Pattern Interview Questions including factory design pattern, abstract factory design pattern, prototype pattern and more.
  • WPF MVVM Pattern: A Simple Tutorial for Absolute Beginners5/21/2019 4:14:50 AM. After some research I cracked the very basic steps in MVVM pattern, and then trying to write MVVM tutorials for absolute beginners.
  • ObservableCollection in WPF5/16/2019 5:45:07 AM. In this article I will demonstrate how ObservableCollection works in WPF.
  • Validating User Input With Regular Expressions5/14/2019 8:54:37 AM. This article explains how to use Regular Expressions (the Regex class of the System.Text.RegularExpressions namespace) in C# and .NET.
  • What are sealed classes and sealed methods5/14/2019 6:31:27 AM. In this article, I will try to explain sealed classes and sealed methods in C# language.
  • Using Linked List in C#5/10/2019 12:45:39 AM. What we going to make is a linked list. Yeah I know there is a class which does the same as a linked list called ArrayList, but we (as a diehard C# programmer) want absolute control and knowledge of w
  • Simple XML Parser in C#5/7/2019 6:47:55 AM. This article shows how to create a very simple XML parser.
  • Some Real Differences Between Structures and Classes5/7/2019 5:37:56 AM. This article lists some differences between classes and structures. In this article, we will see what is the difference between a structure and a class.
  • C# Interface Based Development5/7/2019 4:17:37 AM. When trying to build maintainable, reusable, and flexible C# code, the object oriented nature of C# only gets us 50% of the way there. Programming to interfaces can provide us with the last 50%. Inte
  • Basic Object Oriented Programming (OOP) Concepts5/7/2019 3:47:19 AM. In this article you will learn about the basics of Object Oriented Programming (OOP).
  • Introduction to Model View Control (MVC) Pattern using C#5/7/2019 12:46:17 AM. The benefits of using the Model-View-Control (MVC) pattern in our development projects is that we can completely decouple our business and presentation application layers. Furthermore, we will have a
  • When To Use Static Classes In C#5/2/2019 10:40:40 AM. The static modifier in C# declares a static member of a class. The static modifier can be used with classes, properties, methods, fields, operators, events, and constructors, but it cannot be used wit
  • JSON Serialization Using Newtonsoft JSON Serialize4/9/2019 5:19:32 AM. In this article we will use the Newtonsoft JSON serialization library to serialize JSON data. Download and install the Newtonsoft JSON serializer package using the NuGet package manager.
  • Working With DateTime Using C#4/8/2019 11:26:44 PM. The C# DateTime structure represents dates and time in C# and .NET. This tutorial is all about dates and time and how to perform various operations on dates and times using DateTime such as compare tw
  • Regular Expressions Usage In C#4/8/2019 11:07:32 PM. The Regex class in C# provides functions to implement regular expressions. The code example include how to use Regular Expressions for IsNaturalNumber, IsWholeNumber, IsPositiveNumber, IsInteger, IsNu
  • Abstract Class In C#4/6/2019 8:37:27 AM. An abstract class in C# is a class that can't be instantiated. Here learn how to declare and implement abstract classes in C# applications.
  • Learn C#: Working with Arrays in .NET4/5/2019 4:05:13 AM. This article concentrates on arrays in .NET and how you can work with arrays in C# language. Article also covers the Arrays class and its method, which can be used to sort, search, get, and set an arr
  • Assembly - Difference between .EXE and .DLL4/4/2019 2:53:07 PM. In this video, we will discuss the difference between EXE and .DLL . An Exe have independent memory address space to execute, whereas a DLL needs a host to execute itself, therefore it needs an EXE.
  • Create Reusable View Using Razor Class Library In ASP.NET Core4/3/2019 9:53:30 AM. In this article, we will discuss the basic concept of Reusable View.
  • Introduction to JavaBean4/3/2019 8:46:19 AM. This article explains Java Beans and how to create a Java Bean class.
  • Using ListViews in C#4/2/2019 2:07:43 AM. C# makes life a bit easier with a richer property and method set for ListViews. Here we will learn to use ListViews in C#.
  • Accessing Classic Dynamics CRM4/1/2019 9:49:01 PM. To share and emphasize PowerApps, Microsoft has enabled certain functionalities in Dynamics CRM. In this article, we will learn how to access the Classic Dynamics CRM after updating to the modern vers
  • How to Use Stack Class For LIFO Operation in C#4/1/2019 3:02:31 PM. In this article, I am describing how to use the C# Stack class for LIFO operations on its collection of items.
  • Abstract Class & Interface: Two Villains of Every Interview - Part 24/1/2019 4:36:48 AM. This article explains the important key points of interfaces in C#. Learn what is interface, why we need an interface, how to define a C# interface.
  • Abstract Class & Interface: Two Villains of Every Interview - Part 1 4/1/2019 4:25:32 AM. This article explains the important key points of Abstract Class in C#. Learn what is an Abstract Class, how to define an Abstract Class, and why do we need an Abstract Class.
  • DataTable In C#3/31/2019 5:26:55 PM. The DataTable class of ADO.NET represents a data table in C#. Code sample in this article demonstrates how to create a DataTable dynamically in C# code and DataTable rows and DataTable columns and dis
  • Abstraction In C#3/31/2019 8:29:08 AM. This article and code example show how to implement Abstraction In C#. An abstract base class in C# cannot be instantiated; it means the object of that class cannot be created.
  • Difference Between Abstract Class And An Interface3/29/2019 6:25:18 AM. In this article I have explained the difference between Abstract Class and Interface with some examples and some information about an Interface.
  • Posting Form Data from ASP.NET Page to Another URL3/28/2019 5:53:01 AM. This article shows you how to post a Form data to a different URL from ASP.NET pages. For example, you might need to send user to a third party payment processing system using post method. ASP.NET doe
  • Working with Windows TabControl with C#3/28/2019 12:37:43 AM. Windows TabControl is a useful control that allows you display multiple dialogs tabs on a single form by switching between the tabs. In this tutorial, I will explain how to create and use a TabControl
  • How To Create A List Of Objects In C#3/26/2019 3:56:56 AM. A list is a collection of items that can be accessed by index and provides functionality to search, sort and manipulate list items. Here we see how to create a list of objects with C#.
  • All About C# Immutable Classes3/25/2019 9:08:47 AM. In this article, we are going to cover all the necessary information you need to know about Immutable classes in C#.
  • Working with DropDownList and ListBox Controls in ASP.NET3/25/2019 5:03:11 AM. In this article we'll see how to use DropDownList and ListBox Web controls to display data in various formats.
  • ListBox In WPF3/17/2019 10:08:17 AM. WPF ListBox class represents a ListBox control that is a collection of ListBoxItems. The <ListBox> XAML represents the UI of a ListBox. This tutorial and code examples are the various use cases
  • Abstract Class And Abstract Method In C#3/14/2019 2:24:06 AM. In this article I have described abstraction in the C# language and a way to achieve dynamic polymorphism with the help of abstract method in the C# language.
  • Simple SELECT, INSERT, UPDATE and DELETE Using LINQ to SQL3/14/2019 1:37:54 AM. In this article I am going to explain simple Select, Insert, Update and Delete operation using to LINQ to SQL.
  • Writing Secure Code Using C#3/13/2019 11:56:41 AM. Writing secure code is an important part of software development. .NET provides code access security mechanism that grants/denies access to resources within a method call. This article explains how to
  • A Generic Data Access Component using Factory Pattern3/7/2019 12:29:01 AM. This article shows to utilize the System.Activator class and a factory pattern to create the concrete provider classes.
  • Accessing Global Address List via System.DirectoryServices Namespace3/7/2019 12:02:27 AM. This is a how-to article to access the GAL from ASP.NET, using the DropDownList ASP.NET server control as the UI. To accomplish this the article will illustrate by utilizing ADSI technology from a C#
  • Using Abstract Class In C#3/5/2019 2:55:38 PM. In this article we learn about abstract classes in C# using a console appication example
  • Generic Types in C# 2.0 with Sample3/5/2019 5:26:02 AM. This article discusses generic types available in C# 2.0. The article also shows some sample source code on how to use generic types.
  • Generics in C# 2.03/5/2019 5:10:15 AM. In this article, I specifically talk about Generics and how they improve upon arraylists and how they solve the issues posed by ArrayLists.
  • Static Class In C#3/5/2019 12:46:16 AM. C# static keyword is used to create a static class. A static class in C# is a class that cannot be instantiated. A static class can only contain static data members including static methods, static co
  • Abstract Class And Interface - Two Pillars In Object Oriented Programming3/4/2019 10:21:46 AM. Abstract classes are those classes which can't be initiated, that is, they are considered as incomplete classes. Let's learn the concepts of Abstract Classes and Interface in OOP.
  • Class Methods And Variables In Ruby On Rails3/1/2019 12:52:38 PM. Today, we are going to see the class methods, variables, and the to_s method in Ruby programming language.
  • FileInfo In C#2/28/2019 1:28:37 PM. The C# FileInfo provides methods to work with files. In this article, you'll learn how to use FileInfo in C#.
  • Learn Design Pattern - Singleton Pattern2/26/2019 2:39:05 AM. In this article we will try to understand what Single Pattern is, what kind of problem it solves and how it should be implemented in ASP.NET.
  • Partial Class In C#2/25/2019 11:32:54 AM. In this article, we will learn about partial classes of C#.
  • Getting Started With Sealed Classes in C#2/16/2019 11:22:31 PM. In this article we will learn about one of the most reusable object oriented features of C#, Sealed classes. We will learn about Sealed classes from the basics because I have written this article focu
  • How To Use Abstract Class, Abstract Method, And Abstract Property In C#2/11/2019 12:23:42 PM. In this article, we look at what an abstract class is, its method and properties, and how to use them.
  • Abstract Classes In C#2/8/2019 9:56:33 PM. This article explains abstract classes in C#. An abstract class is a special type of class that cannot be instantiated and acts as a base class for other classes. Abstract class members marked as abst
  • SmtpClient Class in ASP.NET using VB.NET2/7/2019 4:29:47 AM. In this article we will discuss SmtpClient Class. SmtpClient Class allows the developer to send emails (electronic mails). SmtpClient Class is available in System.Net.Mail Namesapce.
  • Creating POCO Class Library Using Reverse Engineering1/31/2019 8:51:14 AM. In this article, we will learn how to create a POCO class library by the reverse engineering technique using EF Core Power Tools in Visual Studio 2017.
  • OOPS Concepts And .NET - Part One - Classes, Objects, And Structures 1/31/2019 8:43:24 AM. The following article kicks off a three-part article series that will present definitions and samples for different Object-Oriented Programming concepts and its implementation in .NET.
  • OOPS Concepts And .NET - Part Two - Inheritance, Abstraction And Polymorphism1/31/2019 8:36:33 AM. The following article is the second of a three-part article series that presents definitions and samples for different Object-Oriented Programming (OOP) concepts and its implementation in .NET
  • Cascading Dropdown List With MVC, LINQ to SQL and AJAX1/31/2019 3:15:52 AM. This article explains how to populate a child DropDownList depending on each new value as values are selected in the parent's DropDown List.
  • Two Class Support Vector Machine1/17/2019 3:15:07 AM. An overview of Two Class Support Vector Machine. Two-Class Support Vector Machine is used to create a model that is based on the Support Vector Machine Algorithm.
  • Tuple Class in C#1/17/2019 3:11:34 AM. This article demonstrates different scenarios of using Tuple Class in C#.
  • Create a file using FileInfo in C#1/16/2019 8:43:59 AM. Code sample to show how to create a file in C# and get a file attributes such as file creation time, file size, file last updated, file last accessed, and file last write time.
  • Overview Of List Collection Class In C#1/15/2019 12:14:00 AM. Overview Of List Collection Class In C#. List<T> class represents a strongly typed list of objects that can be accessed by index. List<T > is one of the generic collection classes; it is p
  • When To Use❓Abstract Class And Interface In C# Programming1/14/2019 2:44:14 AM. In this video, I have discussed, in details, the scenarios in which you should use abstract class and interface and the scenarios when the interface works better. I have started from defining the abst
  • How To Create A List In C#1/13/2019 11:28:31 PM. A list is a collection of items that can be accessed by index and provides functionality to search, sort and manipulate list items. Here we see how to create a list in c#.
  • Partial Method in C#1/9/2019 9:13:04 AM. How to implement partial method in C#. A partial method can be used as a definition in one part while another part can be the implementation.
  • List Collection Class in C#1/6/2019 3:17:59 AM. List is a collection class in C# and .NET. Code examples in this article show how to work with List<T> class in C#. Also code examples on C# Lists and C# Collections.
  • C# Heap(ing) Vs Stack(ing) In .NET - Part Four1/5/2019 6:26:39 AM. Having a basic understanding of how memory management works will help explain the behavior of the variables we work with in every program we write. In this article we’ll look further into Garbage Col
  • Understanding Class In Layman Way12/31/2018 4:52:14 AM. In this video, I have tried to simulate a layman formula to understand how to visualize before writing a class in object-oriented programming domain. I hope you would like this whole analogy that I ha
  • Catching Exceptions in C#12/27/2018 4:18:20 AM. This article explains you about exceptional handling in C#. How to use try, catch, finally block to handle exception handling. Here I have listed all types of Exception Class.
  • Exception Class and Properties in C# 12/27/2018 4:04:34 AM. The Exception class is present in the System namespace and in the assembly mscorlib.dll.In this article we'll focus on properties of the Exception class that we can use in the application for exce
  • Exception Handlers in C#12/27/2018 3:48:37 AM. In this article, I discuss what Exception Handlers are in C# and how to trap errors using try/catch blocks and their behavior when we use multiple catch statements to handle errors and finaly, how to
Source Code: Graphics Programming with GDI+
Graphics Programming with GDI+ is the .NET developer's guide to writing graphics appl...
Download