public override string ToString()
        {
            StringBuilder __sb    = new StringBuilder("TDDIAbstractThreatAgentUnion(");
            bool          __first = true;

            if (ThreatAgent != null && __isset.ThreatAgent)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("ThreatAgent: ");
                __sb.Append(ThreatAgent == null ? "<null>" : ThreatAgent.ToString());
            }
            if (Human != null && __isset.Human)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Human: ");
                __sb.Append(Human == null ? "<null>" : Human.ToString());
            }
            if (NonHuman != null && __isset.NonHuman)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("NonHuman: ");
                __sb.Append(NonHuman == null ? "<null>" : NonHuman.ToString());
            }
            __sb.Append(")");
            return(__sb.ToString());
        }