Geekpedia Programming Tutorials






Code C# Code

1 2 3 4 5 6
(30 code snippets in 6 pages)
Latest Code: RSS Feed RSS Feed     KlipFolio Klip Klip     Add to Google    Add to My Yahoo!    Subscribe in NewsGator Online    Add To Windows Live    Subscribe with Bloglines   
Code

-----
No votes

Mar 16th 2008
by Andrew Pociu

Check if string is numeric

This is a one-line C# method that checks whether a string is a numerical value or not, by having regex (regular expressions) match a decimal with or without a floating point.

Code

****-
3.6 from 5 votes

Feb 9th 2008
by Andrew Pociu

Calculate age using C#

An efficient C# method for calculating the age in years by passing in the birth date.

Code

*****
5 from 2 votes

Feb 1st 2008
by Andrew Pociu

Crop a Picture using C#

A function to which you can pass the picture that you want to crap and the coordinates, and it will return a cropped vesion of the picture as a byte stream.

Code

*****
5 from 3 votes

Jan 9th 2008
by Andrew Pociu

Get the week number of a given date

The C# method uses the DateTime object to get the week number of a given date. The number returned is dependent on the culture of the target machine.

Code

-----
No votes

Jan 6th 2008
by Andrew Pociu

Find Easter Sunday of any year

The Meeus/Jones/Butcher Gregorian algorithm is used for calculating the Easter Sunday of any given year using C#.

1 2 3 4 5 6
(30 code snippets in 6 pages)
Filter Results
Show:


Latest IT Jobs


Other Resources
Latest Tech Bargains

Advertisement

Free Magazine Subscriptions

Today's Pictures

Today's Video

Other Resources

Latest Download

Latest Icons