GetType()
called on System.Type
CS-W1064The GetType()
method returns a System.Type
object that represents an entity's type. Calling this method on System.Type
does not make any sense, is redundant, and is likely a mistake. It is recommended that you take another look at it.
var tpe = someObj.GetType();
var entityTpe = tpe.GetType();
var entityTpe = someObj.GetType();