Years of projects and code re-use have driven me to create a DLL that can perform many common tasks in a single line of code. From image thumbnail creation to getting data from many different types of databases to retrieving how many cpus are installed in your PC.
just a few examples:
//read text file contents
string data = OLC.IO.ReadTextFile(filepath);
//generate a strong random password
string randPass = OLC.Randomizer.Instance.GeneratePasswords(1, 10, true, true, true, true)[0];
//get the ip and mac of my system
string myip = OLC.Net.GetSystemIPAddress();
string mymac = OLC.Net.GetMacAddress(myip);
//object serialization and deserialization
OLC.Obj.PutToFile(@"c:\myfile.dat", myobj);
object outobj = null;
OLC.Obj.GetFromFile((@"c:\myfile.dat", out outobj);
//launch a process and get the results from std output
string results = OLC.Proc.StartProcessWithResult("arp","-a");
//etc.etc.
Follow OneLineOfCode.NET
User Reviews
-
I'm a nub and this DLL is awesome. it has saved me so much time. thanks!