#n Operator ("M" Reference)
[This content is no longer valid. For the latest information on "M", "Quadrant", SQL Server Modeling Services, and the Repository, see the Model Citizen blog.]
The #n operator functions as a multiplicity operator.
Operator Description
The #n operator is predefined for all types. When the #n operator is located in the postfix position after a type, a collection of that type is created that contains exactly n members.
Code Example
The following code shows the Employees
collection being created with the #n multiplicity operator. After the code executes, the Employees
collection must hold exactly 4 Text types.
Employees : Text#4;