I always get confused on how to get to the type of anything in VB.Net. So I sum it up here and now:
Let's say we have a class:
Class Relation
and an object:
myMother As Relation.
For comparison: TypeOf myMother Is Relation
For retrieving the type from the class: GetType(Relation)
For retrieving the type from the object: myMother.GetType()
Geen opmerkingen:
Een reactie posten