public override int GetHashCode() { switch (Isset) { case 1: return(As_map_thing.GetHashCode()); case 2: return(As_string_thing.GetHashCode()); case 3: return(As_i32_thing.GetHashCode()); case 4: return(As_xtruct_thing.GetHashCode()); case 5: return(As_insanity_thing.GetHashCode()); default: return((new ___undefined()).GetHashCode()); } }
public SomeUnion DeepCopy() { switch (Isset) { case 1: return(new map_thing(As_map_thing.DeepCopy())); case 2: return(new string_thing(As_string_thing)); case 3: return(new i32_thing(As_i32_thing)); case 4: return(new xtruct_thing(As_xtruct_thing.DeepCopy())); case 5: return(new insanity_thing(As_insanity_thing.DeepCopy())); default: return(new ___undefined()); } }