I am passing command parameters to a command. and receiving it like this
public void SelectTestCase(object Dev)
{
try
{
_navigationStore.CurrentViewModel = new TestCaseViewModel(_navigationStore);
}
catch (Exception e)
{
}
}
in this Object Dev will be carying data related to Device. but if i do dev.DeviceName this is giving error because dev object is recieving data on runtime. how can i use this Dev object and get data on runtime
You have the parameter specifically as a generic "object" rather than the specific class type. You need to type-cast it. Ex: