internal byte[] OpenReadAll(string myReturn) { ThreadedFile myReturned; if (!myActivelyReadFiles.TryGetValue(myReturn, out myReturned)) { myReturned = new ThreadedFile(myReturn); myActivelyReadFiles.TryAdd(myReturn, myReturned); } return((byte[])myReturned.ReadBytes()); }
internal T OpenReadClass <T>(string v) { ThreadedFile myReturned; if (!myActivelyReadFiles.TryGetValue(v, out myReturned)) { myReturned = new ThreadedFile(v); myActivelyReadFiles.TryAdd(v, myReturned); } return(myReturned.Read <T>()); }
public LocalFile(ThreadedFile file) : this() { FullPath = file.FullPath; RelativePath = file.RelativePath; FileName = file.FileName; DisplayText = NSAttributedString.Create(FileName, Externs.NSForegroundColorAttributeName, file.Color); DisplayText.retain(); }