Skip to main content

.net Cobol Property

  • April 1, 2017
  • 1 reply
  • 0 views

 What would the .net Cobol equivalent to this C# code be?

public NewUser User { get; set; } = new NewUser();

1 reply

 What would the .net Cobol equivalent to this C# code be?

public NewUser User { get; set; } = new NewUser();

Hi, should be something like:

01 #User type NewUser property value new NewUser.

The hash preceding User is necessary as 'user' is a (fairly obscure) COBOL reserved word. However the hash is removed from the externalized name.