ref vs out keywords in C#

Hi Guy’s , Here is the article to give clear difference between ref and out keywords in c#.net. ref keyword it indicates that an argument passed by reference not by value.out keyword similar to ref keyword, except ref require reference that the variable be initialize before it ispassed. with out keyword its not necessary. ref […]

C# Interview Question in ref and out keywords.

About ref keyword it indicates that an argument passed by reference not by value and about out keyword it indicates that an argument passed by value not by reference. If you debug the program control first go to Main method next start processing Main method. Here i have two integer variable i = 5 , […]

How to check GUID is null or empty in C#

Hi Guy’s , In this article , i’m going to explain if guid is null or empty value or non-empty values. Here i used few important method struct such as GUID , NewGuid,Empty,Byte etc.. Guid struct represents a globally unique identifier(GUID). NewGuid method is used to initializes a new instance of the System.Guid structure. NewGuid […]

How to Use Yield Keyword in C#

It returns an object that implements the IEnumerable interface. If calling function starts foreaching over this object the function is called again until it yields. so, It allows many calls to a body of programs.It is used with return keyword. IEnumerable support simple iteration over a collection of a specified. It is used with using […]

How to Use Padding Characters in C#

Padding in C# is used to add any characters at the starting or ending of any given string. It has two Methods PadLeft and PadRight. PadLeft and PadRight has two Parameters. First Parameter accepts any integer values and second parameter for padding characters. 1.PadLeft : It is used to add any characters at the starting […]

How to Use Trim Method in C#

Trim method removes all leading and trailing occurrences of a set of characters specified in an array from String.object. It is used to remove occurrences of a set of characters from start to end of the current string. TrimEnd : It removes all trailing occurrences of a set of characters specified in an array from […]

List vs Array in C#

1. In List we can add/remove data anytime whenever we want but its so tedious with array. 2.when we set the size of array higher and insert few elements then rest place elements added 0 or null so rest place its wasted memory and its time taken process but List handle everything automatically no wastage […]

Clone Method in C#

It is used to clone / copy string object and it returns another copy of same data. It returns a reference to this instance of string. Example 1 :Since s1,s2 local strings variable. so we can use string typecasting with clone method to convert object to string type. Example 2 : Clone Method creates a […]

10 Free Software 2020

Best Free Software of 2020.Let’s Follow the all given Details. 1.Photo & Picture Viewer Light Weight Software that’s use to view picture quickly. 2. AutoDesk Sketchbook Sketchbook is used to create your amazing artwork.It has beautiful interface that maximize the drawing space. Its work on MAC , WIN(64 BIT) and you can use it on […]

List vs ArrayList in C#

Hi Guy’s here is article to explain Difference between List and ArrayList in C#.net. List vs ArrayList are the important interview Question. Many times interviewer ask this question. so let’s learn the key differences. In List we can pass one data type such as int,string,double etc.. But In ArrayList we can store all the datatypes […]