School_BLL/SkyFile.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace School_BLL
{
using System;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using System.Web;
public class SkyFile
{
[MethodImpl(MethodImplOptions.NoInlining)]
public static string FileReadPhysics(string sPath)
{
return FileReadPhysics(sPath, Encoding.UTF8);
}
[MethodImpl(MethodImplOptions.NoInlining)]
public static string FileReadPhysics(string sPath, Encoding sType)
{
string str = "";
if (File.Exists(sPath))
{
StreamReader reader = new StreamReader(sPath, sType);
str = reader.ReadToEnd().ToString();
reader.Close();
reader.Dispose();
return str;
}
return "";
}
[MethodImpl(MethodImplOptions.NoInlining)]
public static string FileReadVirtual(string sPath)
{
return FileReadVirtual(sPath, Encoding.UTF8);
}
[MethodImpl(MethodImplOptions.NoInlining)]
public static string FileReadVirtual(string sPath, Encoding sType)
{
return FileReadPhysics(HttpContext.Current.Server.MapPath(sPath), sType);
}
[MethodImpl(MethodImplOptions.NoInlining)]
public static bool FileWritePhysics(string sPath, string sInfo)
{
return FileWritePhysics(sPath, sInfo, true);
}
[MethodImpl(MethodImplOptions.NoInlining)]
public static bool FileWritePhysics(string sPath, string sInfo, bool bCoverage)
{
return FileWritePhysics(sPath, sInfo, bCoverage, Encoding.UTF8);
}
[MethodImpl(MethodImplOptions.NoInlining)]
public static bool FileWritePhysics(string sPath, string sInfo, bool bCoverage, Encoding sType)
{
try
{
后面还有 32 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
