79781592

Date: 2025-10-03 09:03:15
Score: 1.5
Natty:
Report link

BaseObject is of Object type known at compile time and compiler does not know its type until run time. So while accessing BaseObject we need to cast ComputerInfo explictly,as derived type available at run time only.

var a = (ComputerInfo)result[0].BaseObject;

or ((ComputerInfo)result[0].BaseObject).BiosBIOSVersion

this way you can access it.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Vaishali Dhokchawle