vb.net class function code example Example: return new object vb.net Dim anonymousCust = New With {.Name = "Hugo Garcia"}