> 
> **Possible Duplicate:**  
> 
> [How to determine if the MethodInfo is an override of the base method](https://stackoverflow.com/questions/982347/how-to-determine-if-the-methodinfo-is-an-override-of-the-base-method) 
> 
> 
> 

Normally, when we execute "ToString" method of any complex type it will return current type name like the following string except there is "ToString" overrided method.

> 
> System.Data.Entity.DynamicProxies.UserRole\_D77A004638495805D68478322DF47F48540438D82DC9A5A0E1B0B2A181E4A100
> 
> 
> 

I want some logic to detect current type about this because I try to export data to excel format. But some property of model is complex type that doesn't define "ToString" method. Output of this property is useless for normal user.

![enter image description here](https://i.stack.imgur.com/piGS5.png)

**Thanks,**