2010-12-18 16:33:29 +00:00
|
|
|
using System.Collections.Generic;
|
2011-02-26 04:44:01 +00:00
|
|
|
using Java.Lang;
|
|
|
|
using StringBuilder = System.Text.StringBuilder;
|
2010-12-18 16:33:29 +00:00
|
|
|
|
2010-12-27 04:18:10 +00:00
|
|
|
namespace MonoStockPortfolio.Framework
|
2010-12-18 16:33:29 +00:00
|
|
|
{
|
|
|
|
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();
|
|
|
|
}
|
2011-02-26 04:44:01 +00:00
|
|
|
|
|
|
|
public static ICharSequence ToJ(this string @this)
|
|
|
|
{
|
|
|
|
return new String(@this);
|
|
|
|
}
|
2010-12-18 16:33:29 +00:00
|
|
|
}
|
|
|
|
}
|