protected void ValidateReadPermission() { Contract.Assert(StreamPermissions.CanRead(), "Stream permissions do not support reading"); }