using System;
public class Program
{
public static void Main()
var w = new Whatever(30.0f);
var y = w * 2;
Console.WriteLine("Res: " + y.x);
}
public class Whatever {
public float x;
public Whatever(float x) {
this.x = x;
public static Whatever operator *(Whatever m1, int c)
Whatever newWhatever = new Whatever(m1.x);
newWhatever.x = m1.x * (float) c;
return newWhatever;