This project is read-only.

string usage

Topics: Using Cosmos (Developing your own OS, projects, etc)
Jan 26, 2016 at 12:10 AM
Is adding a char to a string not available at the moment
Jan 26, 2016 at 12:20 AM
You cant even do that in normal .NET. All strings are immutable in .NET.
Jan 26, 2016 at 12:34 AM
I mean concatinating strings like this to add a character to it

string str = "Hello World";
str += '!';
Jan 26, 2016 at 12:55 AM
OK I have sorted my issue out, it seems to work with two strings but not with a string and a char
Jan 26, 2016 at 1:04 AM

Is there error you're getting an error from Cosmos or from C#?
Honestly I think it has to be two strings.

Jan 26, 2016 at 1:11 AM
No I get no errors when I compile and when its running in VMWare it just freezes, I tried using a try catch to get an error but it doesn't output anything, and I know in normal .NET it can be done, I guess it is just something than needs to be implemented later on. But for now it can just be solved by converting to string.