DotNet Mirror
  DNM facebook   DNM Google+   DNM Twitter   
Stats
Total Count : 40
Snippets Submit Snippet  
 
How do you reverse a number in C# for loop?
Ashok Nalam
In this snippet, we will write a program that reverses an array using for loop in c#.
By: Ashok Nalam | 18 Jan 2021 | C# | Views: 2432 | Comments: 2 | Tags:array  C#  for-loop  reverse 
Reverse array without using in-built function in C#.NET
Ashok Nalam
In this snippet we will write a program which reverses an array with out using any in-built C#.NET function. Basically it shifts all elements from an array from left side to right side.
By: Ashok Nalam | 20 Dec 2019 | C# | Views: 8048 | Comments: 2 | Tags:array  C#  reverse  sorting 
C#.NET Program to read a 4-digit integer and output the sum of its digits
Ashok Nalam
In this snippet we will write C#.NET program to read a four digit integer and output the sum of its digits. Example: If user enters number as 1234 then the output will be 1+2+3+4=9.
By: Ashok Nalam | 16 Mar 2015 | C# | Views: 52367 | Comments: 2 | Tags:.NET  number 
C#.NET string palindrome program without using string functions
Ashok Nalam
In this snippet we will write a program to check whether the given string is palindrome string or not with out using any built-in string function.
By: Ashok Nalam | 15 Mar 2015 | C# | Views: 17526 | Comments: 2 | Tags:.NET  palindrome  string 
Programatically save an image/resource from a Web URL using C# and VB.NET
Ashok Nalam
The snippet shows how to copy image from web URL to local machine using WebClient.DownloadFile method with C# and VB.NET examples.
By: Ashok Nalam | 17 Apr 2014 | C# | Views: 92456 | Comments: 0 | Tags:.NET  ASP.NET  C#  VB.NET 
C#.NET : DateTime.Now Month output format
Ashok Nalam
The snippet shows how to print double digit number for DateTime.Now.Month and also different .ToString() formats supported by month.
By: Ashok Nalam | 11 Mar 2014 | C# | Views: 92347 | Comments: 2 | Tags:.NET  datetime  number 
.NET program to convert list string to comma separated string
Ashok Nalam
The snippet shows how to convert list of string values to comma separated string values in quicker way using String.Join method.
By: Ashok Nalam | 29 Jan 2014 | C# | Views: 11087 | Comments: 0 | Tags:list  string 
Program to print rectangle with stars using C#.NET
Ashok Nalam
The Program to prints rectangle with stars using C#.NET.
By: Ashok Nalam | 23 Dec 2013 | C# | Views: 22910 | Comments: 0 | Tags:.NET  number 
C#.NET program to find the sum of odd-positioned digits and even-positioned digits of a given number
Ashok Nalam
The program finds the sum of odd-positioned digits and even-positioned digits of a given number using C#.NET example.
By: Ashok Nalam | 19 Dec 2013 | C# | Views: 12959 | Comments: 0 | Tags:.NET  number 
write a .NET program to find the sum of odd-positioned digits and even-positioned digits of a given number
Ashok Nalam
The program finds the sum of odd-positioned digits and even-positioned digits of a given number using C#.NET example.
By: Ashok Nalam | 18 Dec 2013 | C# | Views: 5658 | Comments: 0 | Tags:.NET  number 
read int value from enum - C#.NET Example
Ashok Nalam
The snippet shows how to read enum value using casting, Enum.Parse and Extension method.
By: Ashok Nalam | 16 Dec 2013 | C# | Views: 5858 | Comments: 0 | Tags:.NET  casting  enum  extension-methods  parsing 
String split by multiple characters - C#.NET Example
Ashok Nalam
Snippet shows how to split string by multiple characters delimiter using C#.NET Example.
By: Ashok Nalam | 13 Dec 2013 | C# | Views: 17490 | Comments: 0 | Tags:.NET  string 
Write C#.NET program to find the length of string without using library function
Ashok Nalam
In one of forum, someone asked to Write C#.NET program to find the length of string without using library function. So in this snippet we will see find the length of string without using any built function or string function.
By: Ashok Nalam | 13 Dec 2013 | C# | Views: 17125 | Comments: 0 | Tags:.NET  string 
Count number of vowels in a string using C#.NET
Ashok Nalam
Snippet counts number of vowels in a string using C#.NET
By: Ashok Nalam | 10 Dec 2013 | C# | Views: 12622 | Comments: 0 | Tags:.NET  string 
How to add identity column to datatable using c#
Ashok Nalam
This snippet shows how to add identity column to datatable with an example.
By: Ashok Nalam | 10 Dec 2013 | C# | Views: 10769 | Comments: 1 | Tags:.NET 
Difference between string.IsNullOrWhiteSpace and string.IsNullOrEmpty
Ashok Nalam
The snippet covers difference between string.IsNullOrWhiteSpace and string.IsNullOrEmpty using an example.
By: Ashok Nalam | 19 Nov 2013 | C# | Views: 13522 | Comments: 0 | Tags:.NET  difference  string 
Program to check given number is Even or Odd using C#.NET
Ashok Nalam
In this snippet we will write a program to check whether the given number is even or odd using C#.NET.
By: Ashok Nalam | 17 Sep 2013 | C# | Views: 23356 | Comments: 0 | Tags:.NET  number 
Reverse string using Array.Reverse function in C#
Ashok Nalam
In this snippet we will a simple program which reverse a string using Array.Reverse built in function using C#.NET.
By: Ashok Nalam | 16 Sep 2013 | C# | Views: 7589 | Comments: 0 | Tags:.NET  array  string 
number of occurrences of a character in a string in c#
Ashok Nalam
In this snippet we will see the program to find number of occurrences of a character in a string.
By: Ashok Nalam | 10 Sep 2013 | C# | Views: 9675 | Comments: 0 | Tags:.NET  string 
calculate power of a number in .NET
Ashok Nalam
The program calculates the power of a number using while loop and Math.Pow method in C#.NET.
By: Ashok Nalam | 24 Jul 2013 | C# | Views: 24707 | Comments: 0 | Tags:.NET  number 
12
 
 
cheap jordans|wholesale air max|wholesale jordans|wholesale jewelry|wholesale jerseys