If you're into scripting I would suggest F# .. It basically gives you all the benefits of a compiled language and the agile/cool features of a scripting language.. It's pretty much the next big thing in Microsoft and considered to be the language of the future :)
You are converted the dataToHash string inputted in the function to a set of bytes that can be hashed by the hashing algorithm. Once the byte array is hashed it is converted to a string and returned.
The imports keyword is only used to create a shorthand notation for ease of use of the underlying namespace classes. When converted to MSIL the hardcoded IL written is actually System.Console.WriteLine ...
You are actually "importing" the functionality of an assembly when you add it to your project reference's file. P.S you can only use Imports when an external assembly is referenced.
This snippet does not detect if your computer is connected to the internet. It actually determines if your computer is connected to a network (like LAN etc) :)
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.