using System; namespace _01OperatorOverloading { class Bruch { int z, n; public Bruch(int Z, int N = 1) { z = Z; if (N == 0) throw new ArgumentNullException("Nenner darf nicht 0 sein!"); n = N; } //public static explicit operator int(Bruch b1) => 1; public static implicit operator int(Bruch b1) => 1; } class Program { static void Main(string[] args) { Bruch b1 = new Bruch(1, 3); int k = b1; } } }