Type objectType = myObject.GetType();
Should still give you the concrete type, according to your example.
More Related Contents:
- C# Interfaces. Implicit implementation versus Explicit implementation
- Type Checking: typeof, GetType, or is?
- Conditional operator cannot cast implicitly?
- Integer summing blues, short += short problem
- Understanding Covariant and Contravariant interfaces in C#
- How To Change DataType of a DataColumn in a DataTable?
- Generics in C#, using type of a variable as parameter [duplicate]
- What is the best data type to use for money in C#?
- Why do these division equations result in zero?
- C# use System.Type as Generic parameter
- implicit vs explicit interface implementation [duplicate]
- Interface or abstract class?
- How can I use interface as a C# generic type constraint?
- How can I get the data type of a variable in C#?
- .NET : How do you get the Type of a null object?
- Test if object implements interface
- When is using the C# ref keyword ever a good idea?
- cast object with a Type variable
- Attribute on Interface members does not work
- Why can’t Double be implicitly cast to Decimal
- Why are C# interface methods not declared abstract or virtual?
- Default Interface Methods. What is deep meaningful difference now, between abstract class and interface?
- How can I implement static methods on an interface?
- Why we do create object instance from Interface instead of Class?
- Immutable type and property in C#
- Fluent NHibernate, working with interfaces
- Why is NaN (not a number) only available for doubles?
- Using various types in a ‘using’ statement (C#)
- Build c# Generic Type definition at runtime
- What exactly is “interface based programming”?