Browse by Tags

Sorry, but there are no more tags available to filter with.
Calculate file hash
A little code snippet for calculte file hash: public string CalculateHash( string file) { try { MD5 obj = MD5 .Create(); byte [] bytes; using ( FileStream fs = new FileStream (file, FileMode .Open, FileAccess .Read, FileShare .ReadWrite)) { int index...
Posted 17 July 2008 02:02 PM by antrad | with no comments
Filed under:
A little reflection helper
These are 2 classes that I use for control objects properties by reflection... using System; using System.Collections.Generic; using System.Text; namespace Utils { public class ReflectionHelper { public static string GetStringPropertyValue( object obj...
Posted 20 February 2008 02:12 PM by antrad
Filed under:
A generic class for pagination
I need a class for pagination of some results.I post code maybe is useful... using System; using System.Data; using System.Configuration; using System.Web; using System.Collections.Generic; using System.Web.UI.WebControls; namespace ViewLogic{ public...
A generic class for serialization
I developed today a very simple class for serialization with generics. It supports saving serialized objects in a DB.This is code: Public Class SerializerDeserializer(Of T) Public Function Serialize(ByVal obj As T) As Byte() Dim objMemStream As MemoryStream...
Posted 01 August 2007 07:52 AM by antrad | with no comments
Filed under:
DateTimeFormat
Sometimes you want to convert a specific culture date string in a DateTime, you can create a DateTime for InvariantCulture in VB.NET in this way: Dim paramvalue As Object = DateTime.ParseExact("23/11/2007", "dd/mm/yyyy", System.Globalization...
Posted 11 July 2007 12:24 PM by antrad | with no comments
Filed under:

This site

Search

Go

This Blog

Syndication

Sponsors

  • MaximumASP
  • Breaking News
  • Find a Job
  • Social Bookmarking
    Tidebuy Reviews
    Online Shopping
    asp.net hosting
    UK online local dating