using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
namespace XmlSerializerHelper
{
static class SerializerHelpers
{
public static void Save(string fileName, object objectToSerialze)
{
XmlSerializer x = new XmlSerializer(objectToSerialze.GetType());
using (XmlWriter writer = XmlWriter.Create(fileName))
{
x.Serialize(writer, objectToSerialze);
}
}
public static T LoadFromFile<T>(string fileName) where T : class
{
try
{
XmlSerializer x = new XmlSerializer(typeof(T));
using (XmlReader reader = XmlReader.Create(fileName))
{
return x.Deserialize(reader) as T;
}
}
catch
{
return null;
}
}
}
}
Archive for the ‘Random’ Category
Simple XML Serializer/De-Serializer
[Release] AutoLoL
Thanks to SaphuA (my Dutch buddy) Mastery Clicker v2.0 is ready to go… However it has happened to change its name to AutoLoL in the process.
AutoLoL can be found at http://autolol.codeplex.com/
Feel free to download and enjoy the greatness of AutoLoL
A new page regarding all the features will be up shortly…. for now look at Mastery Clicker Page
Epic Battle
Near Disaster — Thanks Arvixe
So, I was messing with my FTP accounts and every time I delete an account there is a little checkbox… Remove accounts home directory… well thats bad if the home directory of the account is public_html and did I mention the box is checked by default… Well anyways, as you can see its all back up. Thanks Arvixe for keeping a backup! Their tech support was quick and I didn’t even have to call them (I used their online chat). My host has been great so anyone looking for a great host should check out http://www.arvixe.com
Mastery Clicker & League of Legends Season One
I thought Season One would give us the option to save our masteries… Apparently I was wrong. I am currently in Hawaii so I won’t be able to release a patch for mastery clicker until I get home from vacation. In fact Mastery Clicker 2.0 or should I say AutoLOL should be released in the short future adding a lot more features then just clicking masteries.
Graduated
the new site
While it’s unfortunate that my old site crashed and burned, and years of data was lost (kinda) To start fresh is a blessing in itself. I was tired of the 1990′s layout and think its time to get with the program. WordPress has so far impressed me, its slick look and feel make working with a CMS fun again. I’ll slowly build this site up with some good content that is hopefully useful to someone somewhere.
Note: I will upload old data as I located it and probably place it in an Archives/Ancient section…
