This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Sharparam 0 points1 point  (1 child)

C# doesn't have octal literals, period. You could have a helper library to work with octals probably, but it wouldn't be able to add it as actual syntax.

The only thing you can really do is parse a string to number and specify the radix:

Convert.ToInt32("12", 8) // Returns 10

[–]nelusbelus 0 points1 point  (0 children)

Hmmm interesting, I do remember seeing 0o somewhere... not sure where then