37 lines
889 B
C#
37 lines
889 B
C#
// Copyright (c) Ben A Adams. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using System.Text;
|
|
|
|
namespace System.Diagnostics
|
|
{
|
|
public class ResolvedParameter
|
|
{
|
|
public string Name { get; set; }
|
|
|
|
public string Type { get; set; }
|
|
|
|
public string Prefix { get; set; }
|
|
|
|
public override string ToString() => Append(new StringBuilder()).ToString();
|
|
|
|
internal StringBuilder Append(StringBuilder sb)
|
|
{
|
|
if (!string.IsNullOrEmpty(Prefix))
|
|
{
|
|
sb.Append(Prefix)
|
|
.Append(" ");
|
|
}
|
|
|
|
sb.Append(Type);
|
|
if (!string.IsNullOrEmpty(Name))
|
|
{
|
|
sb.Append(" ")
|
|
.Append(Name);
|
|
}
|
|
|
|
return sb;
|
|
}
|
|
}
|
|
}
|