c# - How to handle type “Object {System.Collections.Generic.List<object>}” -


This is my first time coming up with such an object.

How can I use the value for cardano or item id, which is 296 and 130, respectively, to write it in a very simple way, when only methods The 'test' is like a normal thing and I do not know where to place it, I can not even test it [0].

This is where 'test' comes from:

  Private Zero ListBoxIssue_OnDragEnter (Object Sender, DragEventArgs E) {Var test = DragDropPayloadManager.GetDataFromObject (AD Data , CommsItem); }  

Use

  var item = (CommsItem) ((List of & lt; Object & gt;) Test) .FirstOrDefault ();  

If test is list before casting & lt; Object & gt; An example of , and if the test is [0], then be sure to check in advance an example of CommsItem.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -