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) + ";");
 }
Esempio n. 2
0
 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()))) + ");");
 }