using System.Runtime.CompilerServices;
namespace Cysharp.Text
{
public static partial class ZString
{
/// Concatenates the string representation of some specified objects.
public static string Concat(T1 arg1)
{
if (typeof(T1) == typeof(string))
{
return (arg1 != null) ? Unsafe.As(arg1) : string.Empty;
}
var sb = new Utf16ValueStringBuilder(true);
try
{
if (typeof(T1) == typeof(string))
{
if(arg1 != null)
{
sb.Append(Unsafe.As(ref arg1));
}
}
else if (typeof(T1) == typeof(int))
{
sb.Append(Unsafe.As(ref arg1));
}
else
{
sb.Append(arg1);
}
return sb.ToString();
}
finally
{
sb.Dispose();
}
}
/// Concatenates the string representation of some specified objects.
public static string Concat(T1 arg1, T2 arg2)
{
var sb = new Utf16ValueStringBuilder(true);
try
{
if (typeof(T1) == typeof(string))
{
if(arg1 != null)
{
sb.Append(Unsafe.As(ref arg1));
}
}
else if (typeof(T1) == typeof(int))
{
sb.Append(Unsafe.As(ref arg1));
}
else
{
sb.Append(arg1);
}
if (typeof(T2) == typeof(string))
{
if(arg2 != null)
{
sb.Append(Unsafe.As(ref arg2));
}
}
else if (typeof(T2) == typeof(int))
{
sb.Append(Unsafe.As(ref arg2));
}
else
{
sb.Append(arg2);
}
return sb.ToString();
}
finally
{
sb.Dispose();
}
}
/// Concatenates the string representation of some specified objects.
public static string Concat(T1 arg1, T2 arg2, T3 arg3)
{
var sb = new Utf16ValueStringBuilder(true);
try
{
if (typeof(T1) == typeof(string))
{
if(arg1 != null)
{
sb.Append(Unsafe.As(ref arg1));
}
}
else if (typeof(T1) == typeof(int))
{
sb.Append(Unsafe.As(ref arg1));
}
else
{
sb.Append(arg1);
}
if (typeof(T2) == typeof(string))
{
if(arg2 != null)
{
sb.Append(Unsafe.As(ref arg2));
}
}
else if (typeof(T2) == typeof(int))
{
sb.Append(Unsafe.As(ref arg2));
}
else
{
sb.Append(arg2);
}
if (typeof(T3) == typeof(string))
{
if(arg3 != null)
{
sb.Append(Unsafe.As(ref arg3));
}
}
else if (typeof(T3) == typeof(int))
{
sb.Append(Unsafe.As(ref arg3));
}
else
{
sb.Append(arg3);
}
return sb.ToString();
}
finally
{
sb.Dispose();
}
}
/// Concatenates the string representation of some specified objects.
public static string Concat(T1 arg1, T2 arg2, T3 arg3, T4 arg4)
{
var sb = new Utf16ValueStringBuilder(true);
try
{
if (typeof(T1) == typeof(string))
{
if(arg1 != null)
{
sb.Append(Unsafe.As(ref arg1));
}
}
else if (typeof(T1) == typeof(int))
{
sb.Append(Unsafe.As(ref arg1));
}
else
{
sb.Append(arg1);
}
if (typeof(T2) == typeof(string))
{
if(arg2 != null)
{
sb.Append(Unsafe.As(ref arg2));
}
}
else if (typeof(T2) == typeof(int))
{
sb.Append(Unsafe.As(ref arg2));
}
else
{
sb.Append(arg2);
}
if (typeof(T3) == typeof(string))
{
if(arg3 != null)
{
sb.Append(Unsafe.As(ref arg3));
}
}
else if (typeof(T3) == typeof(int))
{
sb.Append(Unsafe.As(ref arg3));
}
else
{
sb.Append(arg3);
}
if (typeof(T4) == typeof(string))
{
if(arg4 != null)
{
sb.Append(Unsafe.As(ref arg4));
}
}
else if (typeof(T4) == typeof(int))
{
sb.Append(Unsafe.As(ref arg4));
}
else
{
sb.Append(arg4);
}
return sb.ToString();
}
finally
{
sb.Dispose();
}
}
/// Concatenates the string representation of some specified objects.
public static string Concat(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
{
var sb = new Utf16ValueStringBuilder(true);
try
{
if (typeof(T1) == typeof(string))
{
if(arg1 != null)
{
sb.Append(Unsafe.As(ref arg1));
}
}
else if (typeof(T1) == typeof(int))
{
sb.Append(Unsafe.As(ref arg1));
}
else
{
sb.Append(arg1);
}
if (typeof(T2) == typeof(string))
{
if(arg2 != null)
{
sb.Append(Unsafe.As(ref arg2));
}
}
else if (typeof(T2) == typeof(int))
{
sb.Append(Unsafe.As(ref arg2));
}
else
{
sb.Append(arg2);
}
if (typeof(T3) == typeof(string))
{
if(arg3 != null)
{
sb.Append(Unsafe.As(ref arg3));
}
}
else if (typeof(T3) == typeof(int))
{
sb.Append(Unsafe.As(ref arg3));
}
else
{
sb.Append(arg3);
}
if (typeof(T4) == typeof(string))
{
if(arg4 != null)
{
sb.Append(Unsafe.As(ref arg4));
}
}
else if (typeof(T4) == typeof(int))
{
sb.Append(Unsafe.As(ref arg4));
}
else
{
sb.Append(arg4);
}
if (typeof(T5) == typeof(string))
{
if(arg5 != null)
{
sb.Append(Unsafe.As(ref arg5));
}
}
else if (typeof(T5) == typeof(int))
{
sb.Append(Unsafe.As(ref arg5));
}
else
{
sb.Append(arg5);
}
return sb.ToString();
}
finally
{
sb.Dispose();
}
}
/// Concatenates the string representation of some specified objects.
public static string Concat(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
{
var sb = new Utf16ValueStringBuilder(true);
try
{
if (typeof(T1) == typeof(string))
{
if(arg1 != null)
{
sb.Append(Unsafe.As(ref arg1));
}
}
else if (typeof(T1) == typeof(int))
{
sb.Append(Unsafe.As(ref arg1));
}
else
{
sb.Append(arg1);
}
if (typeof(T2) == typeof(string))
{
if(arg2 != null)
{
sb.Append(Unsafe.As(ref arg2));
}
}
else if (typeof(T2) == typeof(int))
{
sb.Append(Unsafe.As(ref arg2));
}
else
{
sb.Append(arg2);
}
if (typeof(T3) == typeof(string))
{
if(arg3 != null)
{
sb.Append(Unsafe.As(ref arg3));
}
}
else if (typeof(T3) == typeof(int))
{
sb.Append(Unsafe.As(ref arg3));
}
else
{
sb.Append(arg3);
}
if (typeof(T4) == typeof(string))
{
if(arg4 != null)
{
sb.Append(Unsafe.As(ref arg4));
}
}
else if (typeof(T4) == typeof(int))
{
sb.Append(Unsafe.As(ref arg4));
}
else
{
sb.Append(arg4);
}
if (typeof(T5) == typeof(string))
{
if(arg5 != null)
{
sb.Append(Unsafe.As(ref arg5));
}
}
else if (typeof(T5) == typeof(int))
{
sb.Append(Unsafe.As(ref arg5));
}
else
{
sb.Append(arg5);
}
if (typeof(T6) == typeof(string))
{
if(arg6 != null)
{
sb.Append(Unsafe.As(ref arg6));
}
}
else if (typeof(T6) == typeof(int))
{
sb.Append(Unsafe.As(ref arg6));
}
else
{
sb.Append(arg6);
}
return sb.ToString();
}
finally
{
sb.Dispose();
}
}
/// Concatenates the string representation of some specified objects.
public static string Concat(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
{
var sb = new Utf16ValueStringBuilder(true);
try
{
if (typeof(T1) == typeof(string))
{
if(arg1 != null)
{
sb.Append(Unsafe.As(ref arg1));
}
}
else if (typeof(T1) == typeof(int))
{
sb.Append(Unsafe.As(ref arg1));
}
else
{
sb.Append(arg1);
}
if (typeof(T2) == typeof(string))
{
if(arg2 != null)
{
sb.Append(Unsafe.As(ref arg2));
}
}
else if (typeof(T2) == typeof(int))
{
sb.Append(Unsafe.As(ref arg2));
}
else
{
sb.Append(arg2);
}
if (typeof(T3) == typeof(string))
{
if(arg3 != null)
{
sb.Append(Unsafe.As(ref arg3));
}
}
else if (typeof(T3) == typeof(int))
{
sb.Append(Unsafe.As(ref arg3));
}
else
{
sb.Append(arg3);
}
if (typeof(T4) == typeof(string))
{
if(arg4 != null)
{
sb.Append(Unsafe.As(ref arg4));
}
}
else if (typeof(T4) == typeof(int))
{
sb.Append(Unsafe.As(ref arg4));
}
else
{
sb.Append(arg4);
}
if (typeof(T5) == typeof(string))
{
if(arg5 != null)
{
sb.Append(Unsafe.As(ref arg5));
}
}
else if (typeof(T5) == typeof(int))
{
sb.Append(Unsafe.As(ref arg5));
}
else
{
sb.Append(arg5);
}
if (typeof(T6) == typeof(string))
{
if(arg6 != null)
{
sb.Append(Unsafe.As(ref arg6));
}
}
else if (typeof(T6) == typeof(int))
{
sb.Append(Unsafe.As(ref arg6));
}
else
{
sb.Append(arg6);
}
if (typeof(T7) == typeof(string))
{
if(arg7 != null)
{
sb.Append(Unsafe.As(ref arg7));
}
}
else if (typeof(T7) == typeof(int))
{
sb.Append(Unsafe.As(ref arg7));
}
else
{
sb.Append(arg7);
}
return sb.ToString();
}
finally
{
sb.Dispose();
}
}
/// Concatenates the string representation of some specified objects.
public static string Concat(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
{
var sb = new Utf16ValueStringBuilder(true);
try
{
if (typeof(T1) == typeof(string))
{
if(arg1 != null)
{
sb.Append(Unsafe.As(ref arg1));
}
}
else if (typeof(T1) == typeof(int))
{
sb.Append(Unsafe.As(ref arg1));
}
else
{
sb.Append(arg1);
}
if (typeof(T2) == typeof(string))
{
if(arg2 != null)
{
sb.Append(Unsafe.As(ref arg2));
}
}
else if (typeof(T2) == typeof(int))
{
sb.Append(Unsafe.As(ref arg2));
}
else
{
sb.Append(arg2);
}
if (typeof(T3) == typeof(string))
{
if(arg3 != null)
{
sb.Append(Unsafe.As(ref arg3));
}
}
else if (typeof(T3) == typeof(int))
{
sb.Append(Unsafe.As(ref arg3));
}
else
{
sb.Append(arg3);
}
if (typeof(T4) == typeof(string))
{
if(arg4 != null)
{
sb.Append(Unsafe.As(ref arg4));
}
}
else if (typeof(T4) == typeof(int))
{
sb.Append(Unsafe.As(ref arg4));
}
else
{
sb.Append(arg4);
}
if (typeof(T5) == typeof(string))
{
if(arg5 != null)
{
sb.Append(Unsafe.As(ref arg5));
}
}
else if (typeof(T5) == typeof(int))
{
sb.Append(Unsafe.As(ref arg5));
}
else
{
sb.Append(arg5);
}
if (typeof(T6) == typeof(string))
{
if(arg6 != null)
{
sb.Append(Unsafe.As(ref arg6));
}
}
else if (typeof(T6) == typeof(int))
{
sb.Append(Unsafe.As(ref arg6));
}
else
{
sb.Append(arg6);
}
if (typeof(T7) == typeof(string))
{
if(arg7 != null)
{
sb.Append(Unsafe.As(ref arg7));
}
}
else if (typeof(T7) == typeof(int))
{
sb.Append(Unsafe.As(ref arg7));
}
else
{
sb.Append(arg7);
}
if (typeof(T8) == typeof(string))
{
if(arg8 != null)
{
sb.Append(Unsafe.As(ref arg8));
}
}
else if (typeof(T8) == typeof(int))
{
sb.Append(Unsafe.As(ref arg8));
}
else
{
sb.Append(arg8);
}
return sb.ToString();
}
finally
{
sb.Dispose();
}
}
/// Concatenates the string representation of some specified objects.
public static string Concat(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
{
var sb = new Utf16ValueStringBuilder(true);
try
{
if (typeof(T1) == typeof(string))
{
if(arg1 != null)
{
sb.Append(Unsafe.As(ref arg1));
}
}
else if (typeof(T1) == typeof(int))
{
sb.Append(Unsafe.As(ref arg1));
}
else
{
sb.Append(arg1);
}
if (typeof(T2) == typeof(string))
{
if(arg2 != null)
{
sb.Append(Unsafe.As(ref arg2));
}
}
else if (typeof(T2) == typeof(int))
{
sb.Append(Unsafe.As(ref arg2));
}
else
{
sb.Append(arg2);
}
if (typeof(T3) == typeof(string))
{
if(arg3 != null)
{
sb.Append(Unsafe.As(ref arg3));
}
}
else if (typeof(T3) == typeof(int))
{
sb.Append(Unsafe.As(ref arg3));
}
else
{
sb.Append(arg3);
}
if (typeof(T4) == typeof(string))
{
if(arg4 != null)
{
sb.Append(Unsafe.As(ref arg4));
}
}
else if (typeof(T4) == typeof(int))
{
sb.Append(Unsafe.As(ref arg4));
}
else
{
sb.Append(arg4);
}
if (typeof(T5) == typeof(string))
{
if(arg5 != null)
{
sb.Append(Unsafe.As(ref arg5));
}
}
else if (typeof(T5) == typeof(int))
{
sb.Append(Unsafe.As(ref arg5));
}
else
{
sb.Append(arg5);
}
if (typeof(T6) == typeof(string))
{
if(arg6 != null)
{
sb.Append(Unsafe.As(ref arg6));
}
}
else if (typeof(T6) == typeof(int))
{
sb.Append(Unsafe.As(ref arg6));
}
else
{
sb.Append(arg6);
}
if (typeof(T7) == typeof(string))
{
if(arg7 != null)
{
sb.Append(Unsafe.As(ref arg7));
}
}
else if (typeof(T7) == typeof(int))
{
sb.Append(Unsafe.As(ref arg7));
}
else
{
sb.Append(arg7);
}
if (typeof(T8) == typeof(string))
{
if(arg8 != null)
{
sb.Append(Unsafe.As(ref arg8));
}
}
else if (typeof(T8) == typeof(int))
{
sb.Append(Unsafe.As(ref arg8));
}
else
{
sb.Append(arg8);
}
if (typeof(T9) == typeof(string))
{
if(arg9 != null)
{
sb.Append(Unsafe.As(ref arg9));
}
}
else if (typeof(T9) == typeof(int))
{
sb.Append(Unsafe.As(ref arg9));
}
else
{
sb.Append(arg9);
}
return sb.ToString();
}
finally
{
sb.Dispose();
}
}
/// Concatenates the string representation of some specified objects.
public static string Concat(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
{
var sb = new Utf16ValueStringBuilder(true);
try
{
if (typeof(T1) == typeof(string))
{
if(arg1 != null)
{
sb.Append(Unsafe.As(ref arg1));
}
}
else if (typeof(T1) == typeof(int))
{
sb.Append(Unsafe.As(ref arg1));
}
else
{
sb.Append(arg1);
}
if (typeof(T2) == typeof(string))
{
if(arg2 != null)
{
sb.Append(Unsafe.As(ref arg2));
}
}
else if (typeof(T2) == typeof(int))
{
sb.Append(Unsafe.As(ref arg2));
}
else
{
sb.Append(arg2);
}
if (typeof(T3) == typeof(string))
{
if(arg3 != null)
{
sb.Append(Unsafe.As(ref arg3));
}
}
else if (typeof(T3) == typeof(int))
{
sb.Append(Unsafe.As(ref arg3));
}
else
{
sb.Append(arg3);
}
if (typeof(T4) == typeof(string))
{
if(arg4 != null)
{
sb.Append(Unsafe.As(ref arg4));
}
}
else if (typeof(T4) == typeof(int))
{
sb.Append(Unsafe.As(ref arg4));
}
else
{
sb.Append(arg4);
}
if (typeof(T5) == typeof(string))
{
if(arg5 != null)
{
sb.Append(Unsafe.As(ref arg5));
}
}
else if (typeof(T5) == typeof(int))
{
sb.Append(Unsafe.As(ref arg5));
}
else
{
sb.Append(arg5);
}
if (typeof(T6) == typeof(string))
{
if(arg6 != null)
{
sb.Append(Unsafe.As(ref arg6));
}
}
else if (typeof(T6) == typeof(int))
{
sb.Append(Unsafe.As(ref arg6));
}
else
{
sb.Append(arg6);
}
if (typeof(T7) == typeof(string))
{
if(arg7 != null)
{
sb.Append(Unsafe.As(ref arg7));
}
}
else if (typeof(T7) == typeof(int))
{
sb.Append(Unsafe.As(ref arg7));
}
else
{
sb.Append(arg7);
}
if (typeof(T8) == typeof(string))
{
if(arg8 != null)
{
sb.Append(Unsafe.As(ref arg8));
}
}
else if (typeof(T8) == typeof(int))
{
sb.Append(Unsafe.As(ref arg8));
}
else
{
sb.Append(arg8);
}
if (typeof(T9) == typeof(string))
{
if(arg9 != null)
{
sb.Append(Unsafe.As(ref arg9));
}
}
else if (typeof(T9) == typeof(int))
{
sb.Append(Unsafe.As(ref arg9));
}
else
{
sb.Append(arg9);
}
if (typeof(T10) == typeof(string))
{
if(arg10 != null)
{
sb.Append(Unsafe.As(ref arg10));
}
}
else if (typeof(T10) == typeof(int))
{
sb.Append(Unsafe.As(ref arg10));
}
else
{
sb.Append(arg10);
}
return sb.ToString();
}
finally
{
sb.Dispose();
}
}
/// Concatenates the string representation of some specified objects.
public static string Concat(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11)
{
var sb = new Utf16ValueStringBuilder(true);
try
{
if (typeof(T1) == typeof(string))
{
if(arg1 != null)
{
sb.Append(Unsafe.As(ref arg1));
}
}
else if (typeof(T1) == typeof(int))
{
sb.Append(Unsafe.As(ref arg1));
}
else
{
sb.Append(arg1);
}
if (typeof(T2) == typeof(string))
{
if(arg2 != null)
{
sb.Append(Unsafe.As(ref arg2));
}
}
else if (typeof(T2) == typeof(int))
{
sb.Append(Unsafe.As(ref arg2));
}
else
{
sb.Append(arg2);
}
if (typeof(T3) == typeof(string))
{
if(arg3 != null)
{
sb.Append(Unsafe.As(ref arg3));
}
}
else if (typeof(T3) == typeof(int))
{
sb.Append(Unsafe.As(ref arg3));
}
else
{
sb.Append(arg3);
}
if (typeof(T4) == typeof(string))
{
if(arg4 != null)
{
sb.Append(Unsafe.As(ref arg4));
}
}
else if (typeof(T4) == typeof(int))
{
sb.Append(Unsafe.As(ref arg4));
}
else
{
sb.Append(arg4);
}
if (typeof(T5) == typeof(string))
{
if(arg5 != null)
{
sb.Append(Unsafe.As(ref arg5));
}
}
else if (typeof(T5) == typeof(int))
{
sb.Append(Unsafe.As(ref arg5));
}
else
{
sb.Append(arg5);
}
if (typeof(T6) == typeof(string))
{
if(arg6 != null)
{
sb.Append(Unsafe.As(ref arg6));
}
}
else if (typeof(T6) == typeof(int))
{
sb.Append(Unsafe.As(ref arg6));
}
else
{
sb.Append(arg6);
}
if (typeof(T7) == typeof(string))
{
if(arg7 != null)
{
sb.Append(Unsafe.As(ref arg7));
}
}
else if (typeof(T7) == typeof(int))
{
sb.Append(Unsafe.As(ref arg7));
}
else
{
sb.Append(arg7);
}
if (typeof(T8) == typeof(string))
{
if(arg8 != null)
{
sb.Append(Unsafe.As(ref arg8));
}
}
else if (typeof(T8) == typeof(int))
{
sb.Append(Unsafe.As(ref arg8));
}
else
{
sb.Append(arg8);
}
if (typeof(T9) == typeof(string))
{
if(arg9 != null)
{
sb.Append(Unsafe.As(ref arg9));
}
}
else if (typeof(T9) == typeof(int))
{
sb.Append(Unsafe.As(ref arg9));
}
else
{
sb.Append(arg9);
}
if (typeof(T10) == typeof(string))
{
if(arg10 != null)
{
sb.Append(Unsafe.As(ref arg10));
}
}
else if (typeof(T10) == typeof(int))
{
sb.Append(Unsafe.As(ref arg10));
}
else
{
sb.Append(arg10);
}
if (typeof(T11) == typeof(string))
{
if(arg11 != null)
{
sb.Append(Unsafe.As(ref arg11));
}
}
else if (typeof(T11) == typeof(int))
{
sb.Append(Unsafe.As(ref arg11));
}
else
{
sb.Append(arg11);
}
return sb.ToString();
}
finally
{
sb.Dispose();
}
}
/// Concatenates the string representation of some specified objects.
public static string Concat(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12)
{
var sb = new Utf16ValueStringBuilder(true);
try
{
if (typeof(T1) == typeof(string))
{
if(arg1 != null)
{
sb.Append(Unsafe.As(ref arg1));
}
}
else if (typeof(T1) == typeof(int))
{
sb.Append(Unsafe.As(ref arg1));
}
else
{
sb.Append(arg1);
}
if (typeof(T2) == typeof(string))
{
if(arg2 != null)
{
sb.Append(Unsafe.As(ref arg2));
}
}
else if (typeof(T2) == typeof(int))
{
sb.Append(Unsafe.As(ref arg2));
}
else
{
sb.Append(arg2);
}
if (typeof(T3) == typeof(string))
{
if(arg3 != null)
{
sb.Append(Unsafe.As(ref arg3));
}
}
else if (typeof(T3) == typeof(int))
{
sb.Append(Unsafe.As(ref arg3));
}
else
{
sb.Append(arg3);
}
if (typeof(T4) == typeof(string))
{
if(arg4 != null)
{
sb.Append(Unsafe.As(ref arg4));
}
}
else if (typeof(T4) == typeof(int))
{
sb.Append(Unsafe.As(ref arg4));
}
else
{
sb.Append(arg4);
}
if (typeof(T5) == typeof(string))
{
if(arg5 != null)
{
sb.Append(Unsafe.As(ref arg5));
}
}
else if (typeof(T5) == typeof(int))
{
sb.Append(Unsafe.As(ref arg5));
}
else
{
sb.Append(arg5);
}
if (typeof(T6) == typeof(string))
{
if(arg6 != null)
{
sb.Append(Unsafe.As(ref arg6));
}
}
else if (typeof(T6) == typeof(int))
{
sb.Append(Unsafe.As(ref arg6));
}
else
{
sb.Append(arg6);
}
if (typeof(T7) == typeof(string))
{
if(arg7 != null)
{
sb.Append(Unsafe.As(ref arg7));
}
}
else if (typeof(T7) == typeof(int))
{
sb.Append(Unsafe.As(ref arg7));
}
else
{
sb.Append(arg7);
}
if (typeof(T8) == typeof(string))
{
if(arg8 != null)
{
sb.Append(Unsafe.As(ref arg8));
}
}
else if (typeof(T8) == typeof(int))
{
sb.Append(Unsafe.As(ref arg8));
}
else
{
sb.Append(arg8);
}
if (typeof(T9) == typeof(string))
{
if(arg9 != null)
{
sb.Append(Unsafe.As(ref arg9));
}
}
else if (typeof(T9) == typeof(int))
{
sb.Append(Unsafe.As(ref arg9));
}
else
{
sb.Append(arg9);
}
if (typeof(T10) == typeof(string))
{
if(arg10 != null)
{
sb.Append(Unsafe.As(ref arg10));
}
}
else if (typeof(T10) == typeof(int))
{
sb.Append(Unsafe.As(ref arg10));
}
else
{
sb.Append(arg10);
}
if (typeof(T11) == typeof(string))
{
if(arg11 != null)
{
sb.Append(Unsafe.As(ref arg11));
}
}
else if (typeof(T11) == typeof(int))
{
sb.Append(Unsafe.As(ref arg11));
}
else
{
sb.Append(arg11);
}
if (typeof(T12) == typeof(string))
{
if(arg12 != null)
{
sb.Append(Unsafe.As(ref arg12));
}
}
else if (typeof(T12) == typeof(int))
{
sb.Append(Unsafe.As(ref arg12));
}
else
{
sb.Append(arg12);
}
return sb.ToString();
}
finally
{
sb.Dispose();
}
}
/// Concatenates the string representation of some specified objects.
public static string Concat(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13)
{
var sb = new Utf16ValueStringBuilder(true);
try
{
if (typeof(T1) == typeof(string))
{
if(arg1 != null)
{
sb.Append(Unsafe.As(ref arg1));
}
}
else if (typeof(T1) == typeof(int))
{
sb.Append(Unsafe.As(ref arg1));
}
else
{
sb.Append(arg1);
}
if (typeof(T2) == typeof(string))
{
if(arg2 != null)
{
sb.Append(Unsafe.As(ref arg2));
}
}
else if (typeof(T2) == typeof(int))
{
sb.Append(Unsafe.As(ref arg2));
}
else
{
sb.Append(arg2);
}
if (typeof(T3) == typeof(string))
{
if(arg3 != null)
{
sb.Append(Unsafe.As(ref arg3));
}
}
else if (typeof(T3) == typeof(int))
{
sb.Append(Unsafe.As(ref arg3));
}
else
{
sb.Append(arg3);
}
if (typeof(T4) == typeof(string))
{
if(arg4 != null)
{
sb.Append(Unsafe.As(ref arg4));
}
}
else if (typeof(T4) == typeof(int))
{
sb.Append(Unsafe.As(ref arg4));
}
else
{
sb.Append(arg4);
}
if (typeof(T5) == typeof(string))
{
if(arg5 != null)
{
sb.Append(Unsafe.As(ref arg5));
}
}
else if (typeof(T5) == typeof(int))
{
sb.Append(Unsafe.As(ref arg5));
}
else
{
sb.Append(arg5);
}
if (typeof(T6) == typeof(string))
{
if(arg6 != null)
{
sb.Append(Unsafe.As(ref arg6));
}
}
else if (typeof(T6) == typeof(int))
{
sb.Append(Unsafe.As(ref arg6));
}
else
{
sb.Append(arg6);
}
if (typeof(T7) == typeof(string))
{
if(arg7 != null)
{
sb.Append(Unsafe.As(ref arg7));
}
}
else if (typeof(T7) == typeof(int))
{
sb.Append(Unsafe.As(ref arg7));
}
else
{
sb.Append(arg7);
}
if (typeof(T8) == typeof(string))
{
if(arg8 != null)
{
sb.Append(Unsafe.As(ref arg8));
}
}
else if (typeof(T8) == typeof(int))
{
sb.Append(Unsafe.As(ref arg8));
}
else
{
sb.Append(arg8);
}
if (typeof(T9) == typeof(string))
{
if(arg9 != null)
{
sb.Append(Unsafe.As(ref arg9));
}
}
else if (typeof(T9) == typeof(int))
{
sb.Append(Unsafe.As(ref arg9));
}
else
{
sb.Append(arg9);
}
if (typeof(T10) == typeof(string))
{
if(arg10 != null)
{
sb.Append(Unsafe.As(ref arg10));
}
}
else if (typeof(T10) == typeof(int))
{
sb.Append(Unsafe.As(ref arg10));
}
else
{
sb.Append(arg10);
}
if (typeof(T11) == typeof(string))
{
if(arg11 != null)
{
sb.Append(Unsafe.As(ref arg11));
}
}
else if (typeof(T11) == typeof(int))
{
sb.Append(Unsafe.As(ref arg11));
}
else
{
sb.Append(arg11);
}
if (typeof(T12) == typeof(string))
{
if(arg12 != null)
{
sb.Append(Unsafe.As(ref arg12));
}
}
else if (typeof(T12) == typeof(int))
{
sb.Append(Unsafe.As(ref arg12));
}
else
{
sb.Append(arg12);
}
if (typeof(T13) == typeof(string))
{
if(arg13 != null)
{
sb.Append(Unsafe.As(ref arg13));
}
}
else if (typeof(T13) == typeof(int))
{
sb.Append(Unsafe.As(ref arg13));
}
else
{
sb.Append(arg13);
}
return sb.ToString();
}
finally
{
sb.Dispose();
}
}
/// Concatenates the string representation of some specified objects.
public static string Concat(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13, T14 arg14)
{
var sb = new Utf16ValueStringBuilder(true);
try
{
if (typeof(T1) == typeof(string))
{
if(arg1 != null)
{
sb.Append(Unsafe.As(ref arg1));
}
}
else if (typeof(T1) == typeof(int))
{
sb.Append(Unsafe.As(ref arg1));
}
else
{
sb.Append(arg1);
}
if (typeof(T2) == typeof(string))
{
if(arg2 != null)
{
sb.Append(Unsafe.As(ref arg2));
}
}
else if (typeof(T2) == typeof(int))
{
sb.Append(Unsafe.As(ref arg2));
}
else
{
sb.Append(arg2);
}
if (typeof(T3) == typeof(string))
{
if(arg3 != null)
{
sb.Append(Unsafe.As(ref arg3));
}
}
else if (typeof(T3) == typeof(int))
{
sb.Append(Unsafe.As(ref arg3));
}
else
{
sb.Append(arg3);
}
if (typeof(T4) == typeof(string))
{
if(arg4 != null)
{
sb.Append(Unsafe.As(ref arg4));
}
}
else if (typeof(T4) == typeof(int))
{
sb.Append(Unsafe.As(ref arg4));
}
else
{
sb.Append(arg4);
}
if (typeof(T5) == typeof(string))
{
if(arg5 != null)
{
sb.Append(Unsafe.As(ref arg5));
}
}
else if (typeof(T5) == typeof(int))
{
sb.Append(Unsafe.As(ref arg5));
}
else
{
sb.Append(arg5);
}
if (typeof(T6) == typeof(string))
{
if(arg6 != null)
{
sb.Append(Unsafe.As(ref arg6));
}
}
else if (typeof(T6) == typeof(int))
{
sb.Append(Unsafe.As(ref arg6));
}
else
{
sb.Append(arg6);
}
if (typeof(T7) == typeof(string))
{
if(arg7 != null)
{
sb.Append(Unsafe.As(ref arg7));
}
}
else if (typeof(T7) == typeof(int))
{
sb.Append(Unsafe.As(ref arg7));
}
else
{
sb.Append(arg7);
}
if (typeof(T8) == typeof(string))
{
if(arg8 != null)
{
sb.Append(Unsafe.As(ref arg8));
}
}
else if (typeof(T8) == typeof(int))
{
sb.Append(Unsafe.As(ref arg8));
}
else
{
sb.Append(arg8);
}
if (typeof(T9) == typeof(string))
{
if(arg9 != null)
{
sb.Append(Unsafe.As(ref arg9));
}
}
else if (typeof(T9) == typeof(int))
{
sb.Append(Unsafe.As(ref arg9));
}
else
{
sb.Append(arg9);
}
if (typeof(T10) == typeof(string))
{
if(arg10 != null)
{
sb.Append(Unsafe.As(ref arg10));
}
}
else if (typeof(T10) == typeof(int))
{
sb.Append(Unsafe.As(ref arg10));
}
else
{
sb.Append(arg10);
}
if (typeof(T11) == typeof(string))
{
if(arg11 != null)
{
sb.Append(Unsafe.As(ref arg11));
}
}
else if (typeof(T11) == typeof(int))
{
sb.Append(Unsafe.As(ref arg11));
}
else
{
sb.Append(arg11);
}
if (typeof(T12) == typeof(string))
{
if(arg12 != null)
{
sb.Append(Unsafe.As(ref arg12));
}
}
else if (typeof(T12) == typeof(int))
{
sb.Append(Unsafe.As(ref arg12));
}
else
{
sb.Append(arg12);
}
if (typeof(T13) == typeof(string))
{
if(arg13 != null)
{
sb.Append(Unsafe.As(ref arg13));
}
}
else if (typeof(T13) == typeof(int))
{
sb.Append(Unsafe.As(ref arg13));
}
else
{
sb.Append(arg13);
}
if (typeof(T14) == typeof(string))
{
if(arg14 != null)
{
sb.Append(Unsafe.As(ref arg14));
}
}
else if (typeof(T14) == typeof(int))
{
sb.Append(Unsafe.As(ref arg14));
}
else
{
sb.Append(arg14);
}
return sb.ToString();
}
finally
{
sb.Dispose();
}
}
/// Concatenates the string representation of some specified objects.
public static string Concat(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13, T14 arg14, T15 arg15)
{
var sb = new Utf16ValueStringBuilder(true);
try
{
if (typeof(T1) == typeof(string))
{
if(arg1 != null)
{
sb.Append(Unsafe.As(ref arg1));
}
}
else if (typeof(T1) == typeof(int))
{
sb.Append(Unsafe.As(ref arg1));
}
else
{
sb.Append(arg1);
}
if (typeof(T2) == typeof(string))
{
if(arg2 != null)
{
sb.Append(Unsafe.As(ref arg2));
}
}
else if (typeof(T2) == typeof(int))
{
sb.Append(Unsafe.As(ref arg2));
}
else
{
sb.Append(arg2);
}
if (typeof(T3) == typeof(string))
{
if(arg3 != null)
{
sb.Append(Unsafe.As(ref arg3));
}
}
else if (typeof(T3) == typeof(int))
{
sb.Append(Unsafe.As(ref arg3));
}
else
{
sb.Append(arg3);
}
if (typeof(T4) == typeof(string))
{
if(arg4 != null)
{
sb.Append(Unsafe.As(ref arg4));
}
}
else if (typeof(T4) == typeof(int))
{
sb.Append(Unsafe.As(ref arg4));
}
else
{
sb.Append(arg4);
}
if (typeof(T5) == typeof(string))
{
if(arg5 != null)
{
sb.Append(Unsafe.As(ref arg5));
}
}
else if (typeof(T5) == typeof(int))
{
sb.Append(Unsafe.As(ref arg5));
}
else
{
sb.Append(arg5);
}
if (typeof(T6) == typeof(string))
{
if(arg6 != null)
{
sb.Append(Unsafe.As(ref arg6));
}
}
else if (typeof(T6) == typeof(int))
{
sb.Append(Unsafe.As(ref arg6));
}
else
{
sb.Append(arg6);
}
if (typeof(T7) == typeof(string))
{
if(arg7 != null)
{
sb.Append(Unsafe.As(ref arg7));
}
}
else if (typeof(T7) == typeof(int))
{
sb.Append(Unsafe.As(ref arg7));
}
else
{
sb.Append(arg7);
}
if (typeof(T8) == typeof(string))
{
if(arg8 != null)
{
sb.Append(Unsafe.As(ref arg8));
}
}
else if (typeof(T8) == typeof(int))
{
sb.Append(Unsafe.As(ref arg8));
}
else
{
sb.Append(arg8);
}
if (typeof(T9) == typeof(string))
{
if(arg9 != null)
{
sb.Append(Unsafe.As(ref arg9));
}
}
else if (typeof(T9) == typeof(int))
{
sb.Append(Unsafe.As(ref arg9));
}
else
{
sb.Append(arg9);
}
if (typeof(T10) == typeof(string))
{
if(arg10 != null)
{
sb.Append(Unsafe.As(ref arg10));
}
}
else if (typeof(T10) == typeof(int))
{
sb.Append(Unsafe.As(ref arg10));
}
else
{
sb.Append(arg10);
}
if (typeof(T11) == typeof(string))
{
if(arg11 != null)
{
sb.Append(Unsafe.As(ref arg11));
}
}
else if (typeof(T11) == typeof(int))
{
sb.Append(Unsafe.As(ref arg11));
}
else
{
sb.Append(arg11);
}
if (typeof(T12) == typeof(string))
{
if(arg12 != null)
{
sb.Append(Unsafe.As(ref arg12));
}
}
else if (typeof(T12) == typeof(int))
{
sb.Append(Unsafe.As(ref arg12));
}
else
{
sb.Append(arg12);
}
if (typeof(T13) == typeof(string))
{
if(arg13 != null)
{
sb.Append(Unsafe.As(ref arg13));
}
}
else if (typeof(T13) == typeof(int))
{
sb.Append(Unsafe.As(ref arg13));
}
else
{
sb.Append(arg13);
}
if (typeof(T14) == typeof(string))
{
if(arg14 != null)
{
sb.Append(Unsafe.As(ref arg14));
}
}
else if (typeof(T14) == typeof(int))
{
sb.Append(Unsafe.As(ref arg14));
}
else
{
sb.Append(arg14);
}
if (typeof(T15) == typeof(string))
{
if(arg15 != null)
{
sb.Append(Unsafe.As