Geben Sie das erste untergeordnete Objekt einer Unterliste von Objekten zusammen mit dem übergeordneten Objekt zurück, o

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Geben Sie das erste untergeordnete Objekt einer Unterliste von Objekten zusammen mit dem übergeordneten Objekt zurück, o

by Anonymous » 27 Dec 2024, 13:08

Ich habe zwei Funktionen wie unten gezeigt und möchte die Antwort „Funktion2“ im Antworttyp „Funktion1“ zurückgeben.

Code: Select all

    public class1 function()
{

Var response=function2();

//I want to return first object of class 2 along with parent object
of class1 without loosing the parent and first object data of class2.
currently I am getting the error saying can't convert list to single object.

Return class1

}

Public class1 function2()
{

Return class1

}

Top