G
Guest
Regarding use of enum's, I am wondering what the cost of memory is when creating the enumeration on the calling side, and then using it on the function/method side. See example below. If I understand correctly, what is actually happening on the calling side is an instance of the enum class FavoriteSport is getting created and sent to the PrintFavorite routine with a default value of type int. Is this correct? Say I have a couple hundred uses of this enumeration at the same time (Citrix server for a Statewide application), would I have a couple hundred or more instances of this enum class in memory
I'm still trying to understand .Net and the true object oriented nature of how it works now, so any information would be greatly appreciated
Thanks
Michael Isaac
public enum FavoriteSpor
Basebal
Socce
end enu
Public Sub PrintFavorite(ByVal intFavorite as FavoriteSport
Select Case intFavorite ..
'if Baseball print "I Love baseball" , et
End Su
'calling pro
PrintFavorite(FavoriteSport.Soccer
I'm still trying to understand .Net and the true object oriented nature of how it works now, so any information would be greatly appreciated
Thanks
Michael Isaac
public enum FavoriteSpor
Basebal
Socce
end enu
Public Sub PrintFavorite(ByVal intFavorite as FavoriteSport
Select Case intFavorite ..
'if Baseball print "I Love baseball" , et
End Su
'calling pro
PrintFavorite(FavoriteSport.Soccer