Linked Questions

Popular Questions

Check if the typeof(object) in a List is a reference type

Asked by At

this seems odd to me:

if(customerList.Count > 0)
{
   if(typeof(customerList[0]).IsReferenceType)
   {
      // do what I want
   }
}

How would you do it?

Related Questions