Associative array is very useful due to its flexibility and expandability. It can contain any data types and unlimited sub arrays. So far, .NET framework has not provide similar functionality with PHP associative array. Don’t worry, we can still do it in C# .NET by utilizing dictionary. We have to use dictionary to keep the order of array element entry. If we use hashtable, the element order will be messed up. In this article, we will show you how dictionary can support the flexibility and expandability of PHP associative array.
Click here to read the complete post
If you like this code/script, perhaps you would kindly treat me a drink.
Any number is welcome. Thanks :)
Categories: C#.NET Tags: .net, array, associative, associative array, C#, C#.NET, code, dictionary, element, expandable, flexible, hashtable, script
February 28th, 2009
admin
Do you need to hash secret values (ex:passwords) with md5 algorithm in C#.NET? Actually, .NET framework has provided this cryptography, but, you cannot use it directly like what you can do the same thing in PHP. In PHP, you just need to call md5 function. In C#.NET, you have to define the function yourself. For your information, the encrypted values will not be able to be decrypted because md5 is a one-way encryption.
Read more…
If you like this code/script, perhaps you would kindly treat me a drink.
Any number is welcome. Thanks :)
Categories: C#.NET Tags: .net, C#, C#.NET, cryptography, encrypt, encryption, hash, hashes, hashing, md5, one-way, password, security