Take the following Original C# code.
class Pair
{
#pragma warning disable 649
public Customer customer;
public Order order;
#pragma warning restore 649
}
A well used online converter produced the following VB,
Class Pair
#Pragma warning disable 649
Public customer As Customer
Public order As Order
#Pragma warning restore 649
End Class
Now VB doesn't support Pragma Warnings which Instant VB Does pick up and warn you about.
Private Class Pair
'INSTANT VB TODO TASK: There is no equivalent to #pragma directives in VB:
'#pragma warning disable 649
Public customer As Customer
Public order As Order
'INSTANT VB TODO TASK: There is no equivalent to #pragma directives in VB:
'#pragma warning restore 649
End Class
Now my question is this. Do I just remove the warnings and leave as is Ie;
Private Class Pair
Public customer As Customer
Public order As Order
End Class
or should I explicitly set values for these; say either an empty string or perhaps Null ie;
Private Class Pair
Public customer As Customer = NOTHING
Public order As Order = NOTHING
End Class
Thanks for any assistance and insight you can shed on the matter.