NeuralJack
Centurion
- Joined
- Jul 28, 2005
- Messages
- 138
Lets say I want to find out the Type of an Object - I often use tags. In order to do this do I really have to instantiate another new object to compare the tag object to? for instance
Visual Basic:
'Lets say obj is a Tag object imported into the function
Private Function IsObjMyClass(obj as Object) as boolean
Dim MC1 As New MyClass1 'Do I really need to create an object here?
If Object.ReferenceEquals(obj.GetType(), MC1.GetType()) Then
Return True
Else
Return False
End If
End Function