2017-04-02 00:36:06 +00:00
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
namespace SharpCifs.Util.Sharpen
|
|
|
|
{
|
2017-07-08 03:12:21 +00:00
|
|
|
public class CharSequence
|
|
|
|
{
|
|
|
|
public static implicit operator CharSequence (string str)
|
|
|
|
{
|
|
|
|
return new StringCharSequence (str);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static implicit operator CharSequence (StringBuilder str)
|
|
|
|
{
|
|
|
|
return new StringCharSequence (str.ToString ());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class StringCharSequence: CharSequence
|
|
|
|
{
|
|
|
|
string _str;
|
|
|
|
|
|
|
|
public StringCharSequence (string str)
|
|
|
|
{
|
|
|
|
this._str = str;
|
|
|
|
}
|
|
|
|
|
|
|
|
public override string ToString ()
|
|
|
|
{
|
|
|
|
return _str;
|
|
|
|
}
|
|
|
|
}
|
2017-04-02 00:36:06 +00:00
|
|
|
}
|