-
Useful Sites
-
Recent Posts
- Difference Between Let and Var in Javascript
- Difference Between Foreach and Map in Javascript
- How to Enable Production Mode in Angular 6?
- Angular Interview Questions
- Angular 6 CLI Component & Service Generate Issue
- Establishing Electron-Angular IPC Communication
- How Add Font-Awesome to Ionic Project
- Top 5 Freelance Job Sites 2017
- K3 – Responsive Mobile App Landing Page
- K2 – Responsive Startup Company Landing Page
-
How to Generate Random Number in C#/CSharp
Posted on March 19, 2016 | No CommentsTo generate a random number in C#/CSharp, we make use of Random class. You can pass min and max value as parameter to its method called Next which will a generate number. The generated number will be within a range from min value and less than max value. This means […] -
How to Get HostName in C#/CSharp
Posted on February 12, 2016 | No CommentsTo get host name of the local computer, we make use of GetHostName() method which resides in Dns class. Dns class is part of System.Net space. Example is given below. [crayon-5c6931c9d7758434310151/] -
How to Trim a String in C#/CSharp
Posted on February 11, 2016 | No CommentsTo trim a string in C#/CSharp, we make use of Trim() method. This will remove any extra space before and after the string. Example is given. [crayon-5c6931c9d79ac697543913/] -
How to Join Two Strings in C#/CSharp
Posted on February 11, 2016 | No CommentsTo join strings in C#/CSharp, we make use of Concat method. Example is given below. [crayon-5c6931c9d7c68980222886/] -
How to Generate GUID in C#/CSharp
Posted on February 9, 2016 | No CommentsTo generate a GUID in C#/CSharp, we make use of GUID class. Example is given below. [crayon-5c6931c9d7ee6661872639/] -
How to Get Current Month in String Format in C#/CSharp
Posted on February 9, 2016 | No CommentsTo get current month in string in C#/CSharp, we make use of DateTime class. Example is given below. [crayon-5c6931c9d815f657334526/] -
How to Get Current Year in C#/CSharp
Posted on February 9, 2016 | No CommentsTo get current year in C#/CSharp, we make use of DateTime class. Example is given below. [crayon-5c6931c9d83e3119700289/] -
How to Create Text File in C#/CSharp
Posted on February 9, 2016 | No CommentsTo create a text file in C#/CSharp, we make use of File class which contains Create static function. This function will take text file path as parameter where you want to create the text file. [crayon-5c6931c9d8652061965130/] -
How to Split a String in C#/CSharp
Posted on January 30, 2016 | No CommentsTo split a string in C#/CSharp, we make use of Split method. This will take a character as parameter to split. In the below given example, we are passing an empty space as parameter. [crayon-5c6931c9d88c4426943339/] -
How to Sort An Array in C#/CSharp
Posted on January 30, 2016 | No CommentsFor sorting an array in C#/CSharp, we make use of static method called sort which resides in Array class. Example is given below. [crayon-5c6931c9d8b12194406448/]