public BasicStruct[] ReturnArray([System.Runtime.InteropServices.WindowsRuntime.ReadOnlyArray] BasicStruct[] basicStructs) { BasicStruct[] copy = new BasicStruct[basicStructs.Length]; for (int idx = 0; idx < copy.Length; idx++) { copy[idx] = basicStructs[idx]; } return(copy); }
public int GetSumOfInts(BasicStruct basicStruct) { return(basicStruct.X + basicStruct.Y); }