This is my first time encountering with such an object.
>Link of image of my local window during debug<
So to put it very simply, how do I access the value for CardNO or ItemID, which is 296 and 130 respectively when the only methods 'test' give are exactly like a normal object and I don't know what to cast it to. I can't even do this 'test[0]'.
This is where 'test' comes from:
private void ListBoxIssue_OnDragEnter(object sender, DragEventArgs e)
{
var test = DragDropPayloadManager.GetDataFromObject(e.Data, typeof(CommsItem));
}
Use
var item = (CommsItem)((List<object>)test).FirstOrDefault();
Be sure to check first if test
is an instance of List<object>
before casting, and if test[0] is an instance of CommsItem.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments