"strObjectType = TypeName(obObject)" in C# ?

"strObjectType = TypeName(obObject)" in C# ?

Hallo,
ich stehe wohl gerade auf dem Schlauch...
Dazu suche ich den Code in VSTA (C#):
VBA Code:
Private Sub ZenWorkspace_OnObjectCreated(ByVal obObject As Object)
'this Event is fired, when a new object is created within a project...
Dim obPicture As DynPicture
Dim obFunction As RtFunction
'depending to the type of the created object, different actions can be done...
strObjectType = TypeName(obObject)
Select Case strObjectType
Case "IDynPicture"

Hier hänge ich:
C# Code:
void MyWorkspace_OnObjectCreated(object obObject)
{
System.Diagnostics.Debug.Print("MyWorkspace_OnObjectCreated: " + obObject.GetType().Name);
}
Wie bekomme ich Infos zu obObject??? Name des Elements, Typ...
Wird leider nicht ausgeführt wenn ein Element (Symbol) im zenon Bild dupliziert wird!
C# Code:
void MyWorkspace_OnElementCreated(zenOn.IElement obElement)
{
System.Diagnostics.Debug.Print("MyWorkspace_OnElementCreated: " + obElement.Name);
}


Bitte einen kleinen Schubs in die richtige Richtung... Danke!
H.-P.

This is a migrated post! Originally posted on 05.05.2015 by user hp. Please be aware that information can be outdated.