public override string ToString() { return((AccessLevel == null ? string.Empty : AccessLevel.PadRight(AccessLevelPad) + " ") + Type.PadRight(TypePad) + " " + Name.PadRight(DefaultValue == null ? 0 : NamePad) + (DefaultValue == null ? string.Empty : " = " + DefaultValue) + ";"); }
public override string ToString() { return((AccessLevel == null ? string.Empty : AccessLevel.PadRight(AccessLevelPad) + " ") + (ReturnType == null ? string.Empty : ReturnType.PadRight(ReturnTypePad) + " ") + Name + "(" + (Parameters == null ? string.Empty : string.Join(", ", Parameters.Select(p => p.ToString()))) + ");"); }