using System;
public class Rectangle
{
public double Length { get; set; } = 1;
public double Width { get; set; } = 1;
public double Area { get; set; } = CalculateArea(1, 1);
public static double CalculateArea(double length, double width)
{
return length * width;
}
}
public class FingerPrint
{
public DateTime TimeStamp { get; } = DateTime.UtcNow;
public string User { get; } =
System.Security.Principal.WindowsPrincipal.Current.Identity.Name;
public string Process { get; } =
System.Diagnostics.Process.GetCurrentProcess().ProcessName;
}
public class Test
{
public static void Main()
{
// your code goes here
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFJlY3RhbmdsZQp7CiAgICBwdWJsaWMgZG91YmxlIExlbmd0aCB7IGdldDsgc2V0OyB9ID0gMTsKICAgIHB1YmxpYyBkb3VibGUgV2lkdGggeyBnZXQ7IHNldDsgfSA9IDE7CiAgICBwdWJsaWMgZG91YmxlIEFyZWEgeyBnZXQ7IHNldDsgfSA9IENhbGN1bGF0ZUFyZWEoMSwgMSk7CgogICAgcHVibGljIHN0YXRpYyBkb3VibGUgQ2FsY3VsYXRlQXJlYShkb3VibGUgbGVuZ3RoLCBkb3VibGUgd2lkdGgpCiAgICB7CiAgICAgICAgcmV0dXJuIGxlbmd0aCAqIHdpZHRoOwogICAgfQp9CgpwdWJsaWMgY2xhc3MgRmluZ2VyUHJpbnQKewogIHB1YmxpYyBEYXRlVGltZSBUaW1lU3RhbXAgeyBnZXQ7IH0gPSBEYXRlVGltZS5VdGNOb3c7CgogIHB1YmxpYyBzdHJpbmcgVXNlciB7IGdldDsgfSA9CiAgICBTeXN0ZW0uU2VjdXJpdHkuUHJpbmNpcGFsLldpbmRvd3NQcmluY2lwYWwuQ3VycmVudC5JZGVudGl0eS5OYW1lOwoKICBwdWJsaWMgc3RyaW5nIFByb2Nlc3MgeyBnZXQ7IH0gPQogICAgU3lzdGVtLkRpYWdub3N0aWNzLlByb2Nlc3MuR2V0Q3VycmVudFByb2Nlc3MoKS5Qcm9jZXNzTmFtZTsKfQoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewoJCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCX0KfQ==