OCLOperators format
(Replaced content with "There's no format operator in MDriven OCL as in C#, please see ToString which is mostly identical. Category:OCL General Operators")
(Replacing message template with parser tag)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
There's no format operator in MDriven OCL as in C#, please see [[ToString]] which is mostly identical.
<message>Write the content here to display this box</message>
The format is a static method of the type String:
String.format('thetemplate {0} - {1} that can have any number of replacers, in this case {2}','hello','there',3)
The sample above will produce:
{| class="wikitable"
|thetemplate hello - there that can have any number of replacers 3,1
|}
[[Category:OCL General Operators]]
For more details see [https://learn.microsoft.com/en-us/dotnet/api/system.string.format?view=net-8.0 Microsofts page]


[[Category:OCL General Operators]]
{{Edited|July|12|2024}}

Latest revision as of 07:50, 17 June 2024

The format is a static method of the type String:

String.format('thetemplate {0} - {1} that can have any number of replacers, in this case {2}','hello','there',3)

The sample above will produce:

thetemplate hello - there that can have any number of replacers 3,1

For more details see Microsofts page


This page was edited 94 days ago on 06/17/2024. What links here