Forums: Back End:

 

Quick N easy question

first
 

JimmyTheGent Quick N easy question

Just a quickie smile

If i am encapsulating a user input in VB.NET but then taking the input and making it a session variable, does that defeat the purpose of encapsulation since a session variable isnt private?

consider below code:


Public Property View() As String
Get
Return Session("intView")
End Get
Set(ByVal value As String)
Session("intView") = value
End Set
End Property



 

jamiec

I use similar code regularly. I don't see your objection?!

 

Hideaway

It doesn't have to be private to be considered encapsulation. Just FYI

I love boots. It's like midgets hugging my calves...
quote
 

JimmyTheGent

Cool, thats all I was asking.

Cheers folks

 
first
 

Forums: Back End: Quick N easy question

 
New Post
 
You must be logged in to post