module UniEnu { enum property { surname, address, age, female}; union uniProperty switch (property) { case surname : string strSurname; case address : string strAddress; case age : long iAge; case female : boolean bFemale; }; interface Personal { void queryByName( in string strName, in property oPropIn, out uniProperty oPropOut); }; };