Click here to Skip to main content
15,304,157 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I need to convert const char* const x from C++ to its equivalent C# .How can I do this. ? Thanks.


What I have tried:

I think string would be appropriate here.
Posted
Updated 21-Oct-21 21:15pm
Comments
Richard MacCutchan 30-Apr-18 7:40am
   
There is no equivalent, use a readonly string.

1 solution

You may try to use converter to find out the destination spelling: .NET Code Conversion - Convert Your Code[^]
   
Comments
hamid18 30-Apr-18 8:11am
   
Thanks for always helping me :)
Maciej Los 30-Apr-18 8:21am
   
You're very welcome.
CPallini 4-Jun-19 4:58am
   
5.
Maciej Los 4-Jun-19 5:18am
   
Thank you, Carlo.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900