Refactor: Anonymous Type to Class

 

Dim RCO As Object = New With {.ID = 1, .Name = "ABC", .Value = 0.123}

Then use Refactor to name the anonymous type and create a class based on it.

 
 

Leave a comment