public delegate string AsyncInvokeFunc(string path);//与目标方法必须参数返回均相同. public string getFileSize(string path) { long size = FileSystemObject.getDirectorySize(path); string used = FileSystemObject.ConvertSizeToShow(size); return(used); }
protected string GetSize(string size) { if (!string.IsNullOrEmpty(size)) { return(FileSystemObject.ConvertSizeToShow(Convert.ToInt64(size))); } return(string.Empty); }
public IHtmlContent GetSize(DataRow dr) { string result = ""; if (dr["FileType"].ToString() == "2") { } else { result = FileSystemObject.ConvertSizeToShow(DataConverter.CLng(dr["FileSize"])); } return(MvcHtmlString.Create(result)); }
protected string GetSize(string size) { return(FileSystemObject.ConvertSizeToShow((long)DataConverter.CLng(size))); }
public string GetFileSize() { return(FileSystemObject.ConvertSizeToShow((long)Eval("Size"))); }