Quantcast
Channel: Active questions tagged return-value - Stack Overflow
Viewing all articles
Browse latest Browse all 228

C# function to return array [closed]

$
0
0
/// <summary>/// Returns an array of all ArtworkData filtered by User ID/// </summary>/// <param name="UsersID">User ID to filter on</param>/// <returns></returns>public static Array[] GetDataRecords(int UsersID){    ArtworkData[] Labels;    Labels = new ArtworkData[3];    return Labels[];}

I get a syntax error, ; expected after return Labels[].

Am I doing this right?


Viewing all articles
Browse latest Browse all 228

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>