Quantcast
Channel: Visual COBOL
Viewing all articles
Browse latest Browse all 5819

Forum Post: RE: Object Initializer

$
0
0
It's difficult to be sure, as I don't have the whole program context but something like: invoke student::Add(new Student(prop ID = dr::GetInt32(...) prop Name = ... prop DateOfBirth =...)) You can set properties for the new object like this from within a constructor expression, using keyword 'prop' or 'property'.

Viewing all articles
Browse latest Browse all 5819

Trending Articles