I have a static method Where i return a variable .
- public static Array LoadAssetAssignView()
- {
- //do something
- return arr;
- }
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

MayankPosted Jan 5, 2017, 4:46 AM
This code will help you in resolve your issue.
public static DataClass LoadView()
{
DataClass obj = new DataClass();
obj.Property1= new int[5]{ 26, 27, 28, 29, 30 };
obj.Property2=new int[3]{1,2,3};
return obj;
}
public class DataClass
{
public int[] Property1 { get; set; }
public int[] Property2 { get; set; }
}
Please mark as answer if it resolve your issue.
Suthahar JegatheesanPosted Jan 4, 2017, 8:54 AM
Tapan PatelPosted Jan 4, 2017, 8:52 AM
Dinesh SanthalingamPosted Jan 4, 2017, 4:49 AM
Suthahar J