Vox.VoxML.Load C# (CSharp) Method

Load() public static method

public static Load ( string path ) : VoxML
path string
return VoxML
        public static VoxML Load(string path)
        {
            XmlSerializer serializer = new XmlSerializer(typeof(VoxML));
            using(var stream = new FileStream(path, FileMode.Open))
            {
                return serializer.Deserialize(stream) as VoxML;
            }
        }