Nowe nauczone
Shape? shape = null; var shapeAsByte = (byte?)shape; var s = shapeAsByte.ToString(); // s = ""; var s1 = shape.ToString(); // s1 = "";
Wydawało mi się że ToString() na wartości null się wywalić NullReferenceException, ale jednak przypisało “”.
R#:
AlT+Enter na teście albo na klasie pokazuje menu z którego można wybierać Run/Debug Test. O ile w teście korzystam ze skrótów (np CTRL+T+D) to na całej klasie nie znałem tego.
Usuwanie plików z rozszerzeniem *vc.db
http://stackoverflow.com/questions/36407386/what-is-the-vc-db-file-in-visual-studio-projects
How can I recursively find all files in current and subfolders based on wildcard matching?
find . -name *.VC.db
find . -iname *.vc.db
Use better console.log overload
console.log(“node: “, node); // one liner is better
console.log(“node: “);
console.log(node); // two lines is not so good
17 March 2017 at 19:40
Nullable to struktura. Mimo przypisania jej wartości null sama nie jest nullem stąd metoda ToString działa bez problemu.
18 March 2017 at 14:12
Tak, racja. Przeoczyłem to (chyba już nie pierwszy raz w moim życiu). Dzięki