Is there any difference between:
namespace Outer.Inner
{
}
And
namespace Outer
{
namespace Inner
{
}
}
in C#?
No difference whatsoever, those are the same thing, however the first one is more common.
Is there any difference between:
namespace Outer.Inner
{
}
And
namespace Outer
{
namespace Inner
{
}
}
in C#?
No difference whatsoever, those are the same thing, however the first one is more common.
"C:\meshes\as"
?'C:/mydir'
'C:\\mydir'
r'C:\mydir'
(在C#中,如針對Path, 可用@"path")
2. f string (Ref:medium.com)
可用 f-string 改成如下格式(在C#, 請用$"string{variable}"),就可以將之前的變量帶入並格式化輸出喔!:f"I am {first_name} {middle_name}. {last_name}"