Declaring classes
class A { public string a; public static implicit operator A(B b) => new A() { a = b.b }; } class B { public string b; }