Edit / Update:
Thanks everyone for the answer. I understand that I am too vague, but was not sure that in this case it would be useful to publish naked lines of code.
In my file .vb, I have a drop-down control with its validation values:
TempUnit.DataSource = {"°C", "°F", "°R", "K"}
... which is stored in a variable:
Dim unit As String = TempUnit.SelectedItem.ToString
... which goes into a function along with other variables:
Function xxx(..., ByVal unitT As String) As Double
... which finally calls the file .fsand gets evaluated using:
let tempConv t u =
match u with
|"°C" -> t * 9.0 / 5.0 + 32.0
|"°R" -> t - 459.67
|"K" -> t * 9.0 / 5.0 - 459.67
|_ -> t
If a temperature unit other than Kelvin is selected, the match is not performed and the else case is used by default (in this context it is Fahrenheit). I ended up bypassing the degree character completely, evaluating the substring instead:
Dim unit As String = TempUnit.SelectedItem.ToString.Substring(1)
, , , -, . , , - / , , , , . - , , .
, , unicode , . .
:
VB, , F #, , (, "° C" "μBar" ).
.vb .fs; , F # Alt-Code .
, Alt-Code F # VB.
, Alt-Code?
Alt-Code F # ( VB, )?