Reputation: 583
Why is there an 'S' at the beginning of a filepath in the example on MSDN? I know that you can use a '@' but what does the 'S' do?
Bitmap(S"D:\\Documents and Settings\\Joe\\Pics\\myPic.bmp");
Upvotes: 3
Views: 93
Reputation: 11967
It's a sample for C++/CLI
, not C#
. And S""
in C++/CLI
means that this is managed string literal.
Check http://msdn.microsoft.com/en-us/library/ms235263.aspx
Upvotes: 7