The member '{0}' is used in an invalid way. A use of '{1}' has been inferred prior to the definition of '{2}', which is an ...