Is it possible to check if the object's type is a part of a particular namespace from C# code? If yes, how?
I need to check if e.OriginElement as FrameworkElement
is one of the MS.Internal
controls.
Is it possible to check if the object's type is a part of a particular namespace from C# code? If yes, how?
I need to check if e.OriginElement as FrameworkElement
is one of the MS.Internal
controls.
You can inspect the Type.Namespace property.
e.OriginElement.GetType().Namespace
e.OriginElement.GetType().Namespace
should give you the information you need.