public override string ToString() { StringBuilder __sb = new StringBuilder("TDDISignal("); bool __first = true; if (__isset.Id) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Id: "); __sb.Append(Id); } if (Name != null && __isset.Name) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Name: "); __sb.Append(Name); } if (Description != null && __isset.Description) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Description: "); __sb.Append(Description); } if (KeyValueMaps != null && __isset.KeyValueMaps) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("KeyValueMaps: "); __sb.Append(KeyValueMaps); } if (!__first) { __sb.Append(", "); } __sb.Append("FromPort: "); __sb.Append(FromPort == null ? "<null>" : FromPort.ToString()); __sb.Append(", ToPort: "); __sb.Append(ToPort == null ? "<null>" : ToPort.ToString()); __sb.Append(")"); return(__sb.ToString()); }
public override string ToString() { if (FromPort < 0 && ToPort < 0) { return(""); } if (FromPort >= 0 && FromPort == ToPort) { return(FromPort.ToString()); } if (FromPort >= 0 && ToPort >= 0 && FromPort <= ToPort) { return($"{FromPort}-{ToPort}"); } return($"invalid port range ({FromPort}-{ToPort})"); }
public override string ToString() { StringBuilder __sb = new StringBuilder("TDDISignal("); bool __first = true; if (__isset.Id) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Id: "); __sb.Append(Id); } if (Name != null && __isset.Name) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Name: "); __sb.Append(Name); } if (Description != null && __isset.Description) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Description: "); __sb.Append(Description); } if (__isset.IsCitation) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("IsCitation: "); __sb.Append(IsCitation); } if (__isset.IsAbstract) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("IsAbstract: "); __sb.Append(IsAbstract); } if (KeyValueMaps != null && __isset.KeyValueMaps) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("KeyValueMaps: "); __sb.Append(KeyValueMaps); } if (CitedElement != null && __isset.CitedElement) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("CitedElement: "); __sb.Append(CitedElement); } if (DependabilityRequirements != null && __isset.DependabilityRequirements) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("DependabilityRequirements: "); __sb.Append(DependabilityRequirements); } if (AssuranceLevel != null && __isset.AssuranceLevel) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("AssuranceLevel: "); __sb.Append(AssuranceLevel); } if (!__first) { __sb.Append(", "); } __sb.Append("FromPort: "); __sb.Append(FromPort == null ? "<null>" : FromPort.ToString()); __sb.Append(", ToPort: "); __sb.Append(ToPort == null ? "<null>" : ToPort.ToString()); __sb.Append(")"); return(__sb.ToString()); }