Tag: C#

How to Export CSV File From Gridview in ASP.NET using C#

What is a CSV file ? It stands for comma separated values These are different multiple values with comma separation (e.g php, javascript, asp, facebook etc) in a file This file’s extension is .csv and it contains comma separated values or data inside it What is a Grid view in asp.net ? It is a […]

Posted in: ASP.NET, C#.NET

How To Format a Type with ToString() in C#

Format a type Some time we need to format a type. ToString() By default, ToString() will display the type’s name (class name).  To show your own values, you must override this method with one of your own. The job of ToString() method is: it converts an object into string form and returns that object’s information […]

Posted in: C#.NET

How to get Longitude and Latitude by Address in C#

What is Longitude and  Latitude ? It is a geographic coordinate It  specifies the east west position on the surface of earth It is an angular measurement which is called degrees It’s measurement denoted by lambda Read about following Longitude and Latitude example Create a class with LatLong name Inside class create a public static method GetLongitudeAndLatitude […]

Posted in: C#.NET

Iterate over a Collection Independently of Its Implementation in C# Example

What is Collection in C# A collection is a set of similarly typed objects that are grouped together The principal benefit of collections is that they standardize the way groups of objects are handled by your programs Collections are data structures that holds data in different ways for flexible operations . C# Collection classes are […]

Posted in: C#.NET

Initialize a Collection in C#

What is Collection in C# A collection is a set of similarly typed objects that are grouped together The principal benefit of collections is that they standardize the way groups of objects are handled by your programs Collections are data structures that holds data in different ways for flexible operations . C# Collection classes are […]

Posted in: C#.NET

Example of Fibonacci Sequence in C# using lable and switch statement

What is Fibonacci sequence: In mathematics, the Fibonacci numbers or Fibonacci series or Fibonacci sequence are the numbers in the following integer sequence: Each number in Fibonacci series performs addition with its previous number Following examples describes the example of Fibonacci series in c# using label and switch statement

Posted in: C#.NET

Use const and readonly keyword in C#

What is const and readonly keywords ? Both const and readonly keywords are used to define data that does not change or modify These are also called modifiers They are different from each other Const keyword It is used to declare the constant fields The constant fields are not variables so they can not be […]

Posted in: C#.NET

Search Text with Regular Expression C# Code Example

Regular Expression: a regular expression (abbreviated regex or regexp) is a sequence of characters that forms a search pattern, mainly for use in pattern matching with strings, or string matching, i.e. “find and replace”-like operations. The concept arose in the 1950, when the American mathematician Stephen Kleene formalized the description of a regular language, and […]

Posted in: C#.NET
Have a natural attraction for women cosmetics and replica watches uk clothes, no
more than two for men the most attractive one, is to make their own driving experience, happy and can serve as the facade of the car, another is to highlight the taste edify sentiment rolex replica watch. The replica rolex is undoubtedly the most fashionable accessories, wear a suit to attend the activities, but also get a decent match on the replica watches .