public static CacheControl fromFile(PeterO.Support.File f) { PeterO.Support.WrappedInputStream fs=new PeterO.Support.WrappedInputStream(new FileStream(f.ToString(),FileMode.Open)); try { return new CacheControlSerializer().readObjectFromStream(fs); } finally { if(fs!=null) { fs.Close(); } } }