C# - Minify Code Tutorials

What is call stack and stack trace in C#

2022-05-20 C#

What is call stack and stack trace in C#- a call stack is a stack data structure which stores detail information about the active subroutines of a program. This kind of stack is also known as an execution stack, program stack, control stack, run-time stack, or machine stack, and is often referred as just "the stack".

Read More...

Currency format in SQL Server

2022-05-18 C#

Currency format in SQL Server- you will learn how to use currency format in sql server?. When working with currency formats, there are many different formats used around the world. For example, in the USA we use the $ for the currency symbol and a decimal point as a separator. Whereas in Latin America, we use the decimal point instead of a comma as the separator.

Read More...

C# - Exception Handling

2022-05-12 C#

C# - Exception Handling - C# exceptions handling are represented by classes. The exception classes in C# are directly or indirectly derived from the System.Exception class.

Read More...

StreamReader in c#

2022-04-26 C#

C# StreamReader class is used to read string from the stream. It inherits TextReader class. It provides Read(), ReadLine(), ReadBlock() and ReadToEnd()

Read More...

Type Casting In C#

2021-10-03 C#

Type Casting In C#- 1. Implicit Casting (automatically) - converting a smaller type to a larger type size. 2. Explicit Casting (manually) - converting a larger type to a smaller size type.

Read More...

Math class in c#

2021-10-03 C#

Math class in c#- In this article, how to use c# math class. The C# Math class has many methods that allow you to perform mathematical operations.

Read More...

How to create an array in c#?

2021-10-03 C#

In this article, you will learn how to create an array in c#, to declare an array,  Arrays are used to store multiple values in a single variable, instead of declaring separate variables for each value. Define the variable type with square brackets.

Read More...

what is public void in c#

2021-10-03 C#

what is public void in c# - The void keyword is used in method signatures to declare a method that does not return a value. A method declared with the void return type cannot provide any arguments to any return statements they contain.

Read More...

C# ??? ????? ???? ???? ?? | C# Mein List Kya Hota Hai

2021-10-03 C#

C# में लिस्ट क्या होता है, C# Mein List Kya Hota Hai, List In C#, List<T>, list  C# का एक मह्त्वपूर्ण डाटा टाइप है | इसमें बहुत सारी Values को रखा जाता है | प्रत्येक वैल्यू को comma (,) से seperate किया जाता है, तथा सारी Values को एक bracket {} के अंदर रखा जाता है | लिस्ट की indexing भी 0 से start होती है | System.Collection.Generic namespace में पाया जाता है |

Read More...

const keyword in c#

2021-10-03 C#

const keyword in c#:- Constants are declared with the const modifier. Constants are immutable values which are known at compile time and do not change for the life of the program.  Only the C# built-in types (excluding System. Object) may be declared as const.

Read More...

What is Classes and Objects in c#

2021-10-03 C#

What is Classes and Objects in c#:- A class is a user-defined blueprint or prototype from which objects are created, a class combines the fields and methods into a single unit. In C#, classes support polymorphism, inheritance and also provide the concept of derived classes and base classes.

Read More...

The Char Data type In C#

2021-10-03 C#

The Char Data type In C#:- The character or char data type defined within C# is used to hold a single Unicode character. Character variables hold a 16-bit number representing a letter, digit, symbol, or control character. They can also be considered as a numeric data type with similar properties to an unsigned short integer value.

Read More...

x64 vs x86

2021-10-03 C#

x64 vs x86- When you run a 32-bit operating system (OS), it is limited to addressing only 4GB (4 gigabytes) of RAM.   64-bit operating systems are capable of addressing up to 256TB (256 terabytes, or 256,000 gigabytes) of RAM.

Read More...

stack vs heap

2021-10-03 C#

stack vs heap- The major difference between Stack memory and heap memory is that the stack is used to store the order of method execution and local variables while the heap memory stores the objects and it uses dynamic memory allocation and deallocation.

Read More...

index of c#

2021-10-03 C#

index of c#- The String.IndexOf() method in C# is used to find the zero-based index of the first occurrence of a specified Unicode character or string within this instance.

Read More...

How to split string in c#

2021-10-03 C#

How to split string in c#? The String.Split method creates an array of substrings by splitting the input string based on one or more delimiters.

Read More...

Exception Handling in C#

2021-10-03 C#

Exception Handling in C#:- The C# try and catch keywords are used to define a try catch block. A try catch block is placed around code that could throw an exception. If an exception is thrown, this try catch finally blocks will handle the exception to ensure that the application does not cause an unhandled exception.

Read More...

Byte Struct in C#

2021-10-03 C#

Byte Struct in C#:- Represents an 8-bit unsigned integer. The Byte is an immutable value type and the range of Byte is from 0 to 255. In C#, Byte Struct is used to represent 8-bit unsigned integers. the byte type also supports the bitwise AND, OR, XOR, left shift, and right shift operators.

Read More...

C# dictionary get value

2021-10-03 C#

c# dictionary get value: The Dictionary is a fast way to remember things. A key (like a string) maps to a value (like an int). Add() inserts keys and values.

Read More...

c# extension methods

2021-10-03 C#

c# extension methods: Extension methods are static methods, which are called as if they were instance methods on the extended type. With Extension methods, you can add methods to existing types without even creating a new derived type, recompiling, or modifying the original type.

Read More...

c# tuple

2021-10-03 C#

c# tuple- C# tuple is a data structure that is used to store sequence of elements. It can be used where you want to have a data structure to hold an object with properties, but you don't want to create a separate type for it. The Tuple<T> class was introduced in .NET Framework 4.0.

Read More...

C# httpclient

2021-10-03 C#

c# httpclient In this article, you will learn, how to send/receive data through, C# HttpClient class provides a base class for sending/receiving the HTTP requests/responses from a URL. It is a supported async feature of .NET framework. HttpClient is able to process multiple concurrent requests.

Read More...

C# base Keyword

2021-10-03 C#

C# base Keyword:- The base keyword is used in constructors. A derived class constructor is required to call the constructor from its base class.

Read More...

Is GMT same as UTC?

2021-10-03 C#

Is GMT same as UTC? So, GMT and UTC share the same current time in practice, there is a basic difference between the two:- GMT is a time zone officially used in some European and African countries. UTC is not a time zone, but a time standard that is the basis for civil time and time zones worldwide.

Read More...

Boolean keyword in c#

2021-10-03 C#

Boolean keyword in c#- The bool type keyword is an alias for the .NET System.Boolean structure type that represents a Boolean value, which can be either true or false.

Read More...

C# HttpClient HEAD request

2021-10-03 C#

C# HttpClient HEAD request- The HTTP HEAD method requests the headers that are returned if the specified resource would be requested with an HTTP GET method.

Read More...

as Keyword in c#

2021-10-03 C#

as Keyword in c#- In many cases, we need to convert an Object(Type) into another Object(Type) and sometimes you may get InvalidCastException. So, to overcome such types of exceptions C# provides as operator keyword. This operator returns the object when they are compatible with the given type and returns null if the conversion is not possible instead of throwing an exception. 'as' keyword checks the compatibility of one object type with another object type. In the case of compatibility, it will return the value of the new object type otherwise, null will be returned.

Read More...

C# foreach loop (With Example)

2021-10-03 C#

C# foreach loop (With Example)- The foreach statement executes a statement or a block of statements for each element in an instance of the type that implements the System.Collections.Generic.IEnumerable<T> or System.Collections.IEnumerable interface

Read More...

C# keywords

2021-10-03 C#

C# keywords - C# keywords are predefined, reserved identifiers that have special meanings to the compiler. You cannot use it as a variable name, constant name etc. C# keywords cannot be used as identifiers in your program unless they include @ as a prefix. Contextual keywords in c# have special meaning only in a limited program context and can be used as identifiers outside that context. In General, as new keywords are added to the C# language, they are added as contextual keywords in order to avoid breaking programs written in earlier versions. static keyword in c#, virtual keyword in c#, identifiers in c#, dynamic keyword in c#, using keyword in c#, which is not a keyword in c#, how many keywords in c#, c# keywords pdf

Read More...

How To Convert DateTime To Unix TimeStamp in C#

2021-10-03 C#

How To Convert DateTime To Unix TimeStamp in C#, c# datetime to unix timestamp milliseconds, unix timestamp to datetime, c# timestamp milliseconds, convert datetime to epoch c#, datetime to timestamp, c# datetime to datetimeoffset, tounixtimeseconds, new datetime from timestamp c#

Read More...

Using statement in c#

2021-10-03 C#

Using statement in c# - The using statement obtains one or more resources, executes a statement, and then disposes of the resource.

Read More...

How to convert Datatable to JSON C#

2021-10-03 C#

How to convert Datatable to JSON C#: This article explains how to convert DataTable to JSON string in Asp.net C#. ex. serialize DataTable to JSON array in C#. For example, let’s say you have SQL database and now want to return SQL data to JSON in C# application ex. how to return JSON String from DataTable in Asp.net C#. There are 1 ways to achieve this task and that are: By using JavaScriptSerializer, By using Json.Net DLL ( newtonsoft ).

Read More...

How to capitalize the first character of each word using c#

2021-10-03 C#

How to capitalize the first character of each word, or the first character of a whole string using C#?, c# capitalize first letter of sentence, c# check if first letter is uppercase, read second word and change to uppercase in c#, c string to lowercase except first letter, how to make first letter capital in textbox c#, c# totitlecase, unity string capitalize first letter, visual studio capitalize first letter shortcut,

Read More...

List In C#

2020-08-18 C#

It is the generic version of the ArrayList that comes under System.Collection.Generic namespace. The List<T> is a collection of strongly typed objects that can be accessed by index and having methods for searching, sorting, and modifying the list.

Read More...

How to Convert DataTable to Generic List in C#

2020-06-03 C#

How to Convert DataTable to Generic List in C#, Sometimes we need to convert DataTable to generic List. Suppose we want to convert a DataTable (containing data of Employee table) to a generic List of custom data type Employee Model

Read More...