lamy
Regular
was wondering if there would be any difference between literal values and datatable placed in a session, suppose i have these
and these
would it differ in performance? (probably will) what could be the best practice? (in general), just curious
Visual Basic:
Session("object1") = "the string"
Session("object2") = 100
Session("object3") = True
and these
Visual Basic:
Dim dt As New DataTable("objects")
Dim dr As DataRow
dr = dt.NewRow
With dr
.Item("object1") = "the string"
.Item("object2") = 100
.Item("object3") = True
End With
dt.Rows.Add(dr)
Session("objects") = dt
would it differ in performance? (probably will) what could be the best practice? (in general), just curious