mirror of
https://github.com/mgroves/MonodroidStockPortfolio.git
synced 2024-12-29 11:17:07 +00:00
24 lines
No EOL
592 B
C#
24 lines
No EOL
592 B
C#
using System.Collections.Generic;
|
|
using Java.Lang;
|
|
using StringBuilder = System.Text.StringBuilder;
|
|
|
|
namespace MonoStockPortfolio.Framework
|
|
{
|
|
public static class StringExtensions
|
|
{
|
|
public static string ToS(this IEnumerable<char> @this)
|
|
{
|
|
var sb = new StringBuilder();
|
|
foreach (char c in @this)
|
|
{
|
|
sb.Append(c);
|
|
}
|
|
return sb.ToString();
|
|
}
|
|
|
|
public static ICharSequence ToJ(this string @this)
|
|
{
|
|
return new String(@this);
|
|
}
|
|
}
|
|
} |