Ejemplo n.º 1
0
        public IConfigData ReadEntity(FileInfo file, Type entityType)
        {
            byte[]      fileData    = ReadFile(file);
            IConfigData blankEntity = Activator.CreateInstance(entityType) as IConfigData;

            return(blankEntity.FromBytes(fileData) as IConfigData);
        }