Latest .NET Code Snippets

Popular / Snippets

codegambit52 created a Page  -  Oct 11, 2013
1 327 

This code helps you in downloading any web page.

  1 Thread   .NET  
mortl92 created a Page  -  Jul 10, 2013

Use this if you have a collection of objects, and you need to devide this collection into many parts.

  1 Thread   .NET  
mortl92 created a Page  -  Jan 25, 2013
1 359 

These functions allows you to create generic objects of different types (Lists and Dictionaries) and to read the Restriction-code and Error-code of SoapExceptions. For more details about the usage please read this post:

 Respond   .NET  
Sorasyn created a Page  -  Dec 11, 2012

A small something I threw together to get a feel for the C# class library, keywords, and of course, Visual Studio 2012.

mortl92 created a Page  -  Nov 15, 2012
1 120 

If you have two lists of type List and you need to check if both lists contains the same entries ( case insensitive if you want) you can use this short snippet.

  1 Thread   .NET  
Maximus1983 created a Page  -  Jun 27, 2012

Capture Web Screenshots easily with the GrabzIt ASP.NET API. You will need the free GrabzIt ASP.NET Code Library to get started.

 Respond   .NET  
wade2462 created a Page  -  Dec 17, 2010

Determines the file extension from a full filename.

  1 Thread   .NET  
wade2462 created a Page  -  Jul 22, 2010

An Itunes Controller Class to well... Control Itunes... Make Sure to have the Itunes type class referenced to use this.

wade2462 created a Page  -  Jun 24, 2010

It Shortens everyday functions that are used with the console. Documentation in code using XML.

  1 Thread   .NET  
wade2462 created a Page  -  Jun 20, 2010
1 149 

Not Yet completely finished... at least in my mind. Feel free to use this code in your own projects.

Jonesy44 created a Page  -  Dec 17, 2009
1 603 

A recent PHP Script was posted which contained "ports" of the token functions from mIRC which can be very helpful

Sockreg created a Page  -  Dec 06, 2009

Illustrates how you can take benefit of the System.Reflection namespace to alter object properties

 Respond   .NET  
Sockreg created a Page  -  Dec 05, 2009

Illustrates the size benefits you can achieve by compressing a stream. It also benchmarks the time taken to write the compressed text and the normal text to the underlying files.

  1 Thread   .NET  
Sockreg created a Page  -  Dec 05, 2009

Well, the .NET framework already contains the functionality provided by this snippet, however this snippet shows how to use some IO namespace classes and functionality.

 Respond   .NET  
Jonesy44 created a Page  -  Dec 04, 2009

Opens a console window and reads latest FML (F**k my life) lines from the website. Testing the use of web clients without GUI and regular expression

Sockreg created a Page  -  Dec 01, 2009

This snippet function hashes a string into an MD5. The function will throw an error if an empty string is provided. Just copy and paste this into a console application, set the Sub Main() as the start up object and run it! You will see how the same hash is created for the "Test" string and a different hash is created for the "Test1" string. If you've got any problems with this snippet just comment..

Lord-Harlot created a Page  -  Oct 17, 2009
1 317 

Download visual basic 2008 and paste it in and run it.

^Neptune created a Page  -  Oct 13, 2009
Jonesy44 created a Page  -  Oct 06, 2009

A Password generator for VB.NET, just load this up as a console application and hit debug.

Jonesy44 created a Page  -  Sep 28, 2009

A Console Application to convert between Celsius and Fahrenheit. Alternatively, you could use the c2f() and f2c() functions for other purposes

 Respond   .NET  
foshizzle created a Page  -  May 17, 2008

This is a simple app I made in that finds the RGB of a color based on its alpha value and the background color example: R1=255 G1=255 B1=128 R2=0 G2=0 B2=0 Alpha=50 returns: 128,128,64

KuTsuM created a Page  -  Sep 26, 2007

This snippet will show you how to add and remove directories, as well as check if they exist already or not in VB.NET.

 Respond   .NET  
KuTsuM created a Page  -  Sep 26, 2007

This snippet will check if your computer is currently logged onto the internet in VB.NET. This is especially useful if you are using winsock

KuTsuM created a Page  -  Sep 26, 2007

This snippet will kill a current running process in VB.NET. To load snippet go File>New Project>Console Application

 Respond   .NET  
KuTsuM created a Page  -  Sep 26, 2007

This snippet will list all of your system's current processes that are running into a console window using VB.NET. To load the snippet, go to File>New Project>Console Application and copy paste the module.

 Respond   .NET  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.