Device.getSize C# (CSharp) Method