[How to Use F# from C#](https://christianfindlay.com/2020/10/17/how-to-use-fsharp-and-csharp/)
::: quote 728 74569 ba1d6fd8881a87067fe28d71a5ddc594f0146228d32fe77a6399565d3b928bd8 216,229,243 0,68,130 Jack Douglas replying to निरंजन *— a few seconds ago* *in [Room<C++>](/cplusplus?room=728#c74569)* >No I think we need a C community for that — and I think we should have one if there is any prospect of getting questions :::
https://sharplab.io/#v2:C4LglgNgPgAgDAAhgRgHQBkwDsCOBuAWACgYBmJAJgQGEEBvYhJpc7YBAWQAoBKBAXgB8jZqICiWAK4BbAKYAnAIYAjCLNRjpAB2ABPADxtBvVABVFAa1ldkPVAGVsAczUB5eQBFZAM0WSIwLyERKIiTGQIbAgACrwCwiGizBIyCipqGtp6hljAxnYAYmDyAM7A7l6+/oE8wQC+QA===
added it (: https://github.com/myblazor/myblazorserver/commit/9b2bb3b870488f0315a0ca36fbe9f0921ab4d1ce
You could try to use [BlazorLiveReload](https://github.com/martasp/BlazorLiveReload) for now
https://www.reddit.com/r/Blazor/comments/g1ubu5/blazor_tutorial_code_faster_using_dotnet_watch_run/
I can't get visual studio code to run with dotnet watch run because it seems to want --project but even if I use the terminal and cd into the project folder, it still gives me "Could not reconnect to the server. Reload the page to restore functionality." after every edit https://github.com/myblazor/myblazorserver
[How to improve your development experience with Blazor](https://remibou.github.io/Make-your-Blazor-development-faster/)
You can actually just hit the 'listen' link in the top right corner
I get that blazor server compiles *very* fast even on my crappy lappy but it is kind of tiresome to rebuild everytime I change something in the code :( maybe I've been spoiled by angular but is there a way to get blazor server to recompile on save at least in visual studio code?
Oh, I've missed an interesting conversation. Writing to get a notification for a next time:-)
I was trying to write a question and realized I did it wrong string potato= ""; if (serviceData.Potato == true) { potato = "Yes"; } if (serviceData.Potato == false) { potato = "No"; }
basically, all I need is the string to be "" if Potato is null, "Yes" if true, and "No" if false.
string potato= ""; if (serviceData.Potato ?? false) { potato = "Yes"; } else { if (serviceData.Potato ?? true == false) { potato = "No"; } } serviceData is an object. Potato is a bool? How can I make this more readable in C# .net core 2.1?
::: tio XY49C8IwEIb3/IrYqQUtOHeSDjooCBYcxOFIjxpMk3oXv5D@9hprh9J3eOEeHl5O8UI5wq67s7aVPLzZY52J8ZXmzhhUXjvL6RotklYTY6vtbYIKfPkpuhBCGUBaAF85E8JCjdyAQpmHcWdw1TRL8REyRBlglntyFUHdkz9nD14r@XC6lDvQNmZPYfN0lkAVJyPzl2E3PZL2GN7EONqgMW4un45MOYuSrHfboduu@wI §§§ text/x-csharp cs-core using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { Console.WriteLine("Hello, world!"); } } } §§§ ``` none Hello, world! Microsoft (R) Visual C# Compiler version 3.2.0-beta2-19303-01 (c9689b7a) Copyright (C) Microsoft Corporation. All rights reserved. ``` :::